ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

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"

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