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

Revision history [back]

This should be a ros::spinOnce(); instead of ros::spin();

ros::spin() is spinning continuously and thus you should only receive the very first message.

Check out the wiki for more info.