Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add service node #28

Closed
daveconger opened this issue Apr 3, 2013 · 3 comments
Closed

Add service node #28

daveconger opened this issue Apr 3, 2013 · 3 comments
Assignees
Labels

Comments

@daveconger
Copy link

It would be nice if roslibjs had a way to create service nodes in addition to being able to call them.

It appears this may be dependent on rosbridge, but is there any possibility of this in the future?

@rctoris
Copy link
Contributor

rctoris commented Apr 3, 2013

Currently the ROSBRIDGE 2.0 protocol does not support the advertisement of services. The current protocol itself can be found at http://kforge.ros.org/rosbridge/trac/raw-attachment/wiki/WikiStart/rosbridge%20protocol%20specification.pdf

The problem really lies in the way rosbridge is currently thought of. Since it is really based on a server/client model, having clients act as a 'service' to a ROS system begins to get tricky. For topics and messages, there is a many-to-many relationship. Many nodes/clients can subscribe to a particular topic (e.g., /rosout) and many nodes/clients can also publish to the same topic (e.g., /cmd_vel). Services, on the other hand, have a many-to-one relationship. For example, if I am a node and I advertise /do_something, many nodes/clients can make a request to /do_something. However, no other nodes/clients can advertise /do_something since then you would not know where to forward the request. In a simple case, if rosbridge server only had one client, this problem does not matter. However, if you have multiple clients, you have to have a way of ensuring this does not get violated.

@rctoris
Copy link
Contributor

rctoris commented Apr 4, 2013

Moving discussion to https://github.com/RobotWebTools/rosbridge_suite to get some more discussion going! 👍

@rctoris
Copy link
Contributor

rctoris commented Apr 4, 2013

Moved to RobotWebTools/rosbridge_suite#34

@rctoris rctoris closed this as completed Apr 4, 2013
@ghost ghost assigned rctoris May 7, 2013
k-aguete pushed a commit to k-aguete/roslibjs that referenced this issue Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants