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

Boost::threads is commonly used, but the others should work as well. Info on callbacks in roscpp is at http://www.ros.org/wiki/roscpp/Overview/Callbacks%20and%20Spinning. For your case, spinning off a thread that calls the moos loop, then calling ros::spin in the main thread, sounds like it will work.

click to hide/show revision 2
automatic link detection included the "."

Boost::threads is commonly used, but the others should work as well. Info on callbacks in roscpp is at http://www.ros.org/wiki/roscpp/Overview/Callbacks%20and%20Spinning. http://www.ros.org/wiki/roscpp/Overview/Callbacks%20and%20Spinning. For your case, spinning off a thread that calls the moos loop, then calling ros::spin in the main thread, sounds like it will work.