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

Remember original color of objects in planning scene #2549

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

sea-bass
Copy link
Contributor

This PR adds a mechanism for the planning scene to remember objects' original colors when first added, which helps restore colors to the original when attaching/detaching in RViz.

See the video below. Prior to this PR, the blue object would have turned green when being placed.

planning_scene_object_color_10x.mp4

@sea-bass sea-bass requested a review from MarqRazz November 24, 2023 03:28
@sea-bass sea-bass self-assigned this Nov 24, 2023
Copy link

codecov bot commented Nov 24, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f5d8afd) 50.86% compared to head (60bc14f) 50.52%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2549      +/-   ##
==========================================
- Coverage   50.86%   50.52%   -0.33%     
==========================================
  Files         388      387       -1     
  Lines       32260    32099     -161     
==========================================
- Hits        16405    16216     -189     
- Misses      15855    15883      +28     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@sjahr sjahr left a comment

Choose a reason for hiding this comment

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

Looks good, but it would be nice if you could add a bit more descriptions to make it easier to understand in the future

@sea-bass sea-bass force-pushed the remember-planning-scene-obj-color branch from d62f1ca to 41bb82b Compare November 27, 2023 20:55
@sea-bass sea-bass requested a review from sjahr November 27, 2023 20:56
@sea-bass sea-bass force-pushed the remember-planning-scene-obj-color branch from 41bb82b to 60bc14f Compare November 27, 2023 20:57
Copy link
Contributor

@MarqRazz MarqRazz 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 this change locally and it works as expected. Thanks for adding this feature @sea-bass 🥇

@sjahr sjahr merged commit 7e83fe6 into main Nov 28, 2023
15 checks passed
@sjahr sjahr deleted the remember-planning-scene-obj-color branch November 28, 2023 13:35
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.

3 participants