Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queue Size of 1 #93

Open
josh0tt opened this issue Apr 12, 2021 · 0 comments
Open

Queue Size of 1 #93

josh0tt opened this issue Apr 12, 2021 · 0 comments

Comments

@josh0tt
Copy link

josh0tt commented Apr 12, 2021

With a queue size of 1 it appears that the messages are being stored in a buffer and the buffer will continue to fill up so instead of taking in the most recent message we begin reading in older messages first, even though newer ones are available.

From my understanding, that is not the intended behavior of ROS. In my case, I only really care about the latest measurement, so I had the queue size set to 1 so that I would never receive an old measurement if a newer one existed (as described here).

My current workaround is to add a check to see if the time that the message was received was greater than some threshold (meaning the message was too old) and if that is the case then I just ignore the message and read the next one. Not a long term general solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant