-
Notifications
You must be signed in to change notification settings - Fork 530
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
Fix hardcoded services names in ROSAPI #992
Conversation
Wouldn't it basically work the same if we just used topics in a private namespace? (e.g. |
The services also need to be in a namespaces as we would have services collision if we run multiple node of rosapi |
IIRC putting the name of the service in private namespace should prepend the node's name as well as it namespace. For example, |
I've changed the modification, the rosapi services names were hardcoded. Now it should take into account the node name and namespace |
@FlorianLebecque This is not what I meant, just add |
Ok, yeah, I misunderstood. It should be ok now :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it and seems to work as expected. This breaks the current API though (if using a namespace) so if we want to backport it to Humble or Noetic this should be implemented as an opt-in feature. Jazzy is relatively new so we should be good with some breaking changes for a little while. @sea-bass What do you think?
I agree -- I think it's OK to have this go into Jazzy as is. |
Public API Changes
services name now have the namespace and node name as a prefix. If no namespace is defined, no change happens to the services
Description
Add missing namespace support for services in rosapi. Allowing more than one node running on the same network. This makes it easier to work with multi robot environment.