ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I'm using Qt GUI and a timer in a slot to call spinOnce() periodically. I would like to ask at which rate should I call this function spinOnce()?
At a minimum at the lowest rate you expect messages to come in / events to be scheduled -- if you care about delays.
Ideally at a much higher rate, as delaying processing the event queue (ie: calling spinOnce()
) will introduce artificial delays in your event processing.