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

Revision history [back]

click to hide/show revision 1
initial version

Publishers and subscribers take a bit of time to setup. I have faced with a situation where my publisher publishes before the subscriber is up and running. Make sure all your subscribers are up and running with something like the following

ros::Rate loop(0.5)
loop.sleep()

and then try publishing.