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

If publishes faster than calling SpinOnce, would CallBack Queue be filled up eventually?

asked 2012-10-22 20:58:12 -0500

Dumpsomer gravatar image

updated 2014-01-28 17:14:01 -0500

ngrennan gravatar image

If we have a publisher publishing at 40Hz, and the subscriber is calling SpinOnce at 20Hz, would our CallBack Queue be filled up eventually?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2012-10-22 21:19:00 -0500

Lorenz gravatar image

Depends on how long your callbacks run. But spinOnce does not just execute only one callback but it will empty the queue if possible and then return.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-10-22 20:58:12 -0500

Seen: 543 times

Last updated: Oct 22 '12