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

Fix issue with high-frequency messages #950

Open
wants to merge 1 commit into
base: rolling
Choose a base branch
from

Conversation

AndreasR30
Copy link
Contributor

This pull request fixes an issue with frequent messages. As far as I understand, spin_some only processes the oldest messages in the queue. So when a message for a particular subscriber arrives more frequently than the update rate of rviz, then the queue gets longer and longer. See ros2/rclcpp#1156 for comparison between spin_some and spin_all.

I am not sure whether spin_all introduces disadvantages in some cases compared to spin_some...

Maybe @ivanpauno and @roger-strain have some opinions on this, as they proposed ros2/rclcpp#1156.

…process whole message queue of each subscriber
@AndreasR30 AndreasR30 requested a review from ahcorde as a code owner February 15, 2023 15:33
@mjcarroll mjcarroll self-requested a review March 2, 2023 14:47
@mjcarroll mjcarroll self-assigned this Mar 2, 2023
@ahcorde
Copy link
Contributor

ahcorde commented Jul 17, 2023

HI @ivanpauno and @roger-strain,

do you have opinion about this ? the contributor asked for your feedback.

@roger-strain
Copy link

In all honesty, the changes and discussion around this were so long ago that I'm not in that headspace anymore, so I'm not sure I can contribute any valuable feedback at this point, especially within the context of rviz.

@clalancette clalancette changed the base branch from ros2 to rolling October 31, 2024 12:11
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

Successfully merging this pull request may close these issues.

4 participants