ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Please take a look at ros::topic::waitForMessage(..).
2 | No.2 Revision |
Please take a look at ros::topic::waitForMessage(..).
That would allow you to receive a single message without having to manage while
loops and variables yourself, but I'm not sure this is really the best way to go about this.