Prevent Timer Callback Queuing

asked 2021-12-21 11:55:01 -0500

MaxZ gravatar image

ROS timer adds elements to the callback queue. In a single threaded (C++) node, when a timer callback execution time exceeds the timer period, the spinner would be flooded with timer callbacks. This will cause a degradation in node responsivity to other (subscriber) callbacks.

Is there a way to make a ROS node to hold only one timer's callback instance in a queue at a time?

edit retag flag offensive close merge delete