ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
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.