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

Initialize default shadow caster name in Scene #3067

Merged
merged 1 commit into from
Aug 17, 2021

Conversation

scpeters
Copy link
Member

Since #3048, we can now specify the name of a shadow caster material to be used in a scene. This is parsed from the SDFormat world file by gazebo::physics::World and exposed to gazebo::rendering::Scene by an ion-transport service. If the service call fails, however, the Scene does not have a valid name for the shadow caster material. This sets the default value for the shadow caster material name in the Scene to match the default value in World.cc.

The shadow caster name in the Scene is empty if the ignition
transport service call fails, so initialize it to the default
value.

Follow up to gazebosim#3048.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
@scpeters scpeters requested a review from WilliamLewww August 17, 2021 18:13
@scpeters scpeters merged commit d8907fd into gazebosim:gazebo11 Aug 17, 2021
@scpeters scpeters deleted the init_scene_shadow_caster_name branch August 17, 2021 23:04
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.

2 participants