Skip to content

Remember original color of objects in planning scene - #2549

Merged
sjahr merged 1 commit into
mainfrom
remember-planning-scene-obj-color
Nov 28, 2023
Merged

sjahr merged 1 commit into
mainfrom
remember-planning-scene-obj-color

Conversation

@sea-bass

Copy link
Copy Markdown
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
@codecov

codecov Bot commented Nov 24, 2023 •

Copy link
Copy Markdown

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.

@sjahr sjahr left a comment

Copy link
Copy Markdown
Contributor

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

@MarqRazz MarqRazz left a comment

Copy link
Copy Markdown
Contributor

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
@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