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 #1826: jitter in Map display updates #1828

Merged
merged 1 commit into from
May 15, 2024

Conversation

rhaschke
Copy link
Contributor

The queued connection update introduced in #1793 caused the map display to first update the pose of the map and then the map itself (in the next update cycle). The resulting jittering can be perfectly seen when throttling the rviz frame rate.

Updates to the visualization should be handled in update() only. Thus, now, if a map update is received, a flag is set to perform the costly map update. If that flag is not set, only the transform is updated.

Fixes #1826

The queued connection update introduced in ros-visualization#1793 caused the map display
to first update the pose of the map and then the map itself (in the next update cycle).
This can be perfectly seen when throttling the rviz frame rate.

Updates to the visualization should be handled in update() only.
Thus, now, if a map update is received, a flag is set to perform the costly map update.
If that flag is not set, only the transform is updated.
Copy link

@MichaelGrupp MichaelGrupp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested again all the cases that were shown in the ticket with this patch and can confirm that this fixes the issue. Also code-wise: LGTM

Thanks a lot for the fast fix!!

@rhaschke rhaschke merged commit 7e65fd2 into ros-visualization:noetic-devel May 15, 2024
7 of 9 checks passed
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.

Map Display jumps due to Qt::QueuedConnection
2 participants