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

RobotLink: Simplify material mode handling #1732

Merged

Conversation

rhaschke
Copy link
Contributor

rviz::RobotLink knows 3 material modes, showing:

  • original material of the mesh
  • a user-selected color
  • an error color (uniform white)

Switching between these modes requires iterating through all subentities of the link,
which might be rather time-consuming. Also, this was done in each update() cycle!

This commit simplifies the handling, performing the costly update only if really necessary.

@rhaschke rhaschke force-pushed the simplify-material-switching branch from 8169864 to 4f1ead7 Compare March 25, 2022 19:13
@rhaschke rhaschke changed the base branch from noetic-devel to melodic-devel March 25, 2022 19:14
@rhaschke
Copy link
Contributor Author

Closing and reopening to trigger CI.

@rhaschke rhaschke closed this Mar 25, 2022
@rhaschke rhaschke reopened this Mar 25, 2022
rviz::RobotLink knows 3 material modes, showing:
- original material of the mesh
- a user-selected color
- an error color (uniform white)

Switching between these modes requires iterating through all subentities
of the link, which might be rather time-consuming. Also, this was done in
each update() cycle!

This commit simplifies the handling, performing the costly update
only if really necessary.
@rhaschke rhaschke force-pushed the simplify-material-switching branch from 4f1ead7 to 2857811 Compare March 25, 2022 19:21
@rhaschke rhaschke merged commit 0217086 into ros-visualization:melodic-devel Mar 25, 2022
@rhaschke rhaschke deleted the simplify-material-switching branch March 25, 2022 19:45
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.

1 participant