Which rate should we call spinOnce()
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()?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org |
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()?
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.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2021-11-07 20:35:30 -0500
Seen: 47 times
Last updated: Nov 08 '21