ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You must push down the nodes publishing odometry data into their own namespaces.

It sounds to me that you have two turtlebots. Let's call them turtle1 and turtle2. They are both publishing odometry data to the same topic. Let's call that topic "odom" in the global namespace /odom. What you want is each turtlebot to publish on that topic in its own namespace. /turtle1/odom and /turtle2/odom, respectively.

So in your launch file do something to the effect of:

 <node ns="turtle1" name="odom_pub_turtle1" pkg="your_package" type="your_node" />
 <node ns="turtle2" name="odom_pub_turtle1" pkg="your_package" type="your_node" />