Ask Your Question
2

Do subscribers work on a FIFO queue?

asked 2011-07-08 17:50:41 -0500

Julius gravatar image

Do the queues used in ros::Subscriber behave like FIFO queues?

In particular, if I use a message_filters::Synchronizer that, in approximately equal time increments, invokes a callback function for a subscribed topic with queue size 1000. Will the queue items (passed to the callback) be processed in FIFO order?

edit retag flag offensive close merge delete

Comments

Empirical evidence says: yes
Julius gravatar imageJulius ( 2011-07-09 07:30:03 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
3

answered 2011-07-09 07:59:12 -0500

tfoote gravatar image

Yes they are FIFO on order of receipt. The closed documentation I'm aware of is in the roscpp overview

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2011-07-08 17:50:41 -0500

Seen: 620 times

Last updated: Jul 09 '11