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

Btw see #q27655 for what I believe is a duplicate.

ros::spinOnce() should be inside your while loop. That function allows ROS time to process incoming events.

Note that logging after ros::ok() returns false is not at all guaranteed to work iirc. A printf(..) might be better.

Btw see #q27655 for what I believe is a duplicate.