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

Revision history [back]

Just a guess, but maybe you specified a different node name in the launch file than when calling ros::init in your subscriber node. If you use relative topic names, they will be in a namespace named according to your node name.

rostopic list and rostopic echo might help, too. Start up everything and try to find out if your topic is present twice, in different namespaces (just call rostopic list). Then do a rostopic info <topic> to verify the node names that publish/subscribe to the topic.

If my guess is correct, either change your nodes to use absolute node names or use topic remapping to fix the topic name or simply rename your node in the launch file.