-
Notifications
You must be signed in to change notification settings - Fork 565
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
Use attached object colors as is in Rviz plugin #3274
Use attached object colors as is in Rviz plugin #3274
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious under which circumstances this bug manifested itself. I never noticed a fully-white attached body.
Anyway, given that fact, that nobody noticed that issue yet, we can safely use the original color.
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #3274 +/- ##
==========================================
- Coverage 45.98% 45.58% -0.39%
==========================================
Files 716 716
Lines 62395 62372 -23
Branches 7544 7542 -2
==========================================
- Hits 28683 28426 -257
- Misses 33545 33780 +235
+ Partials 167 166 -1 ☔ View full report in Codecov by Sentry. |
I think we were previously seeing this problem, but had a workaround to avoid it (see e.g. https://robotics.stackexchange.com/questions/113543/how-can-attached-collision-objects-be-recoloured-in-rviz2). It's relatively hard to change the colour of an attached collision object away from default, so I'm not surprised not many people ran into this behaviour. |
Now, I'm even more surprised: as MoveIt1 used the same code, I'm wondering why it didn't display the attached object as white. |
Fixes #3273 Co-authored-by: Sebastian Castro <[email protected]> (cherry picked from commit 870b23d)
Fixes #3273 Co-authored-by: Sebastian Castro <[email protected]> (cherry picked from commit 870b23d)
(cherry picked from commit 870b23d) Co-authored-by: Aleksey Nogin <[email protected]>
The behaviour we saw before our workaround was that attached collision objects would be the default colour until recoloured, at which point they would be white for any valid colour input. Our workaround is to have a separate node listening to moveit's planning scene, recolouring all the objects, and republishing to rviz. Hopefully that won't be needed after we start using this PR. |
(cherry picked from commit 870b23d) Co-authored-by: Aleksey Nogin <[email protected]>
Description
Fixes #3273. As explained in #3273, there is some weird code from 2013 that messes up the colors of attached objects in rviz, overriding the colors provided via the planning scene interface with potentially out of range values. This removes the erroneous code and just passes the colors as is.
Checklist