Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Have a look at the callback queue. http://wiki.ros.org/roscpp/Overview/Callbacks%20and%20Spinning http://docs.ros.org/api/roscpp/html/classros_1_1CallbackQueue.html

You could end your infinite loop when isEmpty() returns false.