-
Notifications
You must be signed in to change notification settings - Fork 65
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 namespace override #145
base: humble
Are you sure you want to change the base?
Conversation
Signed-off-by: Pablo Garrido <[email protected]>
Hey, I have this a go. Looks like it prefixes the dds topic, eg |
In which version of ROS 2 did you test? |
ah, yes, I should have said, sorry. I applied your commit to |
Can you test it on humble? I remember that when I tested it it was working properly... But probably it needs a rework. |
ok, I just built on humble. same behaviour. It places nodes nicely in namespaces, but not the topics. Publishers, seemingly because of the |
I just tested it on humble. The node name is properly prefixed, but all the topics and services remain without a namespace.
|
hmm, even with the I'm happy to look further into it if someone wants to point me in the right direction. |
|
||
auto remapped_topic_name = namespace_remapping_ + "/" + topic_name; | ||
|
||
this->add_datawriter(datawriter_guid, remapped_topic_name, type_name, |
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 think this is a mistake here? the remapping should only be in the overload of add_datawriter
below? This will double namespace it?
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.
probably it was intended for add_datareader
? Which neither overload has a remapping
Signed-off-by: Pablo Garrido [email protected]