Is there any method like spin which can be used in client?

asked 2015-08-28 06:21:07 -0500

bazzisniper gravatar image

updated 2015-08-28 06:23:01 -0500

I saw this listener example in gazebo.

In this example after setting up gazebo client and transport node, it just wait in the waiting loop with sleep method.

while (true)
   gazebo::common::Time::MSleep(10);

I want to know if there is a alternate method of MSleep(10) which in charge of waiting incoming message through transport library.

For example spin/spinOnce are counterparts of it in ROS.

Thank you

edit retag flag offensive close merge delete