ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

As I understand the documentation, your loop above does not cause busy-waiting and should not at all consume a lot of CPU time. callAvailable will block and wait for an event to arrive until timeout expires. Internally, callAvailable performs a timed_wait on a condition variable that gets triggered whenever a new callback becomes available.