ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Btw see #q27655 for what I believe is a duplicate.
2 | No.2 Revision |
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.