ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The difference appear when using namespaces. If I am using a node with namespace "robot1" and subscribe to the topic "/my_topic" it will subscribe to this topic. But if I subscribe to the topic "my_topic" the node will subscribe to the topic "/robot1/my_topic"
2 | No.2 Revision |
The difference appear when using namespaces. If I am using a node with namespace "robot1" and subscribe to the topic "/my_topic" it will subscribe to this topic.
But if I subscribe to the topic "my_topic" the node will subscribe to the topic "/robot1/my_topic""/robot1/my_topic".
You can add namespaces when launch a node from a launch file by using the group tag for example