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

Revision history [back]

Neat idea! I believe all you need to do is uncomment your second-to-last line and turn it into ros::spinOnce(). In other words, the line:

//ros::spin();

should be:

ros::spinOnce();

That works for me!

--patrick