Closed mganglb closed 4 years ago
This shouldn't be necessary; all ROS nodes can be namespaced on the command-line. See https://index.ros.org/doc/ros2/Tutorials/Node-arguments/ for examples. I'm going to close this out, but feel free to re-open or keep commenting if you think this is still a problem for you.
Well, then it seems to be a general Problem in ROS2, that the subscriber dont get correctly namespaced. ty for your respond.
I see. It was actually a bug in the ros2-devel branch where I was putting a /
on the front of the topic. Sorry about that, it should be fixed now.
@mganglb Since /robot_description
begins with a slash it's considered a global topic.
If you would like the namespace to apply to it, then first remap it to a relative topic robot_description
.
ros2 run joint_state_publisher joint_state_publisher --ros-args -r __ns:=/foo/bar -r /robot_description:=robot_description
@clalancette this did the trick @sloretz ty for the additional information
Hello, i a added on my fork support for the node-namespace.
The changes are minimal. around line 220.
regards