-
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
Added light intensity to light.proto #131
Conversation
Signed-off-by: ahcorde <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #131 +/- ##
=======================================
Coverage 84.78% 84.78%
=======================================
Files 7 7
Lines 828 828
=======================================
Hits 702 702
Misses 126 126 Continue to review full report at Codecov.
|
proto/ignition/msgs/light.proto
Outdated
@@ -55,6 +55,7 @@ message Light | |||
float spot_inner_angle = 13; | |||
float spot_outer_angle = 14; | |||
float spot_falloff = 15; | |||
float intensity = 18; |
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.
Can we put it in order below? Also, please document all new fields.
Signed-off-by: ahcorde <[email protected]>
@@ -61,4 +61,7 @@ message Light | |||
|
|||
/// \brief Unique id of light's parent | |||
uint32 parent_id = 17; | |||
|
|||
/// \brief light intensity | |||
float intensity = 18; |
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.
can we default this to 1.0
?
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.
Explicit default values are not allowed in proto3.
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.
@iche033 can we merge this then?
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.
maybe we can force this as a required field
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.
ok I see, lets leave it as is then.
Added light intensity field to light.proto. Related with this issue gazebosim/gz-rendering#232
Signed-off-by: ahcorde [email protected]