-
Notifications
You must be signed in to change notification settings - Fork 47
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
scene.proto: add shadow_caster_material_name #179
scene.proto: add shadow_caster_material_name #179
Conversation
Motivated by gazebosim/gazebo-classic#3048. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Codecov Report
@@ Coverage Diff @@
## main #179 +/- ##
=======================================
Coverage 84.56% 84.56%
=======================================
Files 7 7
Lines 855 855
=======================================
Hits 723 723
Misses 132 132 Continue to review full report at Codecov.
|
one suggestion is to use a script for shadow caster:
This allows users to specify a path to the material script in case it's not in the resource paths already. |
@WilliamLewww does that make sense to you? |
I think in this case, the string name would refer to the shadow caster material name and the string url would refer to the file that contains the material (just in case the material file is not in a default path) right? |
yeah, perhaps we should rename |
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
added the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if it would be a good idea to use it here, but I'll just point out that we already have a Material::Script
message here:
proto/ignition/msgs/scene.proto
Outdated
@@ -51,4 +57,7 @@ message Scene | |||
|
|||
/// \brief Show/hide world origin indicator. | |||
bool origin_visual = 12; | |||
|
|||
/// \brief Name of shadow caster material. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// \brief Name of shadow caster material. | |
/// \brief Shadow caster material script. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
applied in scpeters@e418f2f
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
I've switched to using the existing |
The suggested changes have been made, I think that everyone is onboard with the current implementation. I'll merge this but speak up if you don't agree, we still have until the end of code freeze to revert it if needed. |
🎉 New feature
Motivated by gazebosim/gazebo-classic#3048.
Summary
We added a custom SDFormat parameter in gazebosim/gazebo-classic#3048 to allow specifying the name of a custom shadow caster material for a scene. Given that gazebo classic communicates scene information from the server to the client over a transport interface, it would have been convenient to add this field to the
scene.proto
message, but this would have broken ABI. As such, we added a separate ignition-transport service for this parameter.Before ABI freezes for fortress, I thought I would submit this change, in case we decide to use the parameter in ignition in the future.
cc @iche033 @WilliamLewww
Test it
It's not used yet; this is just in anticipation of a future use of this parameter.
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge