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

Support shininess value for each Visual in a Model #3235

Merged
merged 3 commits into from
Jul 1, 2022

Conversation

scpeters
Copy link
Member

As noted in #3232, only a single shininess value is currently supported for each model. This pull request expands the functionality of the ignition service interface so that the shininess of each Visual in a Model can be queried independently. This works by storing the shininess values by the scoped visual name. It also replaces the per-model ignition services with a single /shininess service.

It is technically a change to the transport interface, but since this is such a new feature and improved by the current changes, I think it is an acceptable behavior change.

Fixes #3232.

scpeters added 3 commits June 29, 2022 21:00
This adds a method to refactor access to the world
shininess map, to ensure that map entries aren't
added during access by using at() isntead of [].
Also add a mutex to protect the shininess map and
fix a doc-string.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
This moves the parsing of shininess values from
World::LoadModel to Link::UpdateVisualMsg and
stores the values by scoped Visual name rather
than by Model name. The per-model gz services
are also replaced by a single /shininess
service.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Copy link

@jacobperron jacobperron left a comment

Choose a reason for hiding this comment

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

LGTM

@scpeters scpeters merged commit 3e3e019 into gazebo11 Jul 1, 2022
@scpeters scpeters deleted the scpeters/shininess_per_visual branch July 1, 2022 21:23
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.

Feature Request: support different shininess values for multiple visuals in a model
2 participants