Color: Invariant for channels within [0, 1]
is not strictly enforced; implicity divison is weird
#200
Labels
Breaking change
Breaks API, ABI or behavior. Must target unstable version.
bug
Something isn't working
Environment
Description
Came across this during @jennuine's resolution of gazebosim/sdformat#193
Expected behavior:
Color
channel values are all strictly w/in[0, 1]
Actual behavior: Here's what @SeanCurtis-TRI found:
https://github.com/RobotLocomotion/drake/blob/v0.28.0/multibody/parsing/test/detail_scene_graph_test.cc#L861-L867
This is due to the following code:
https://github.com/ignitionrobotics/ign-math/blob/ad0118e689ba531c93df9c332e0c78a5dcd84e6e/src/Color.cc#L498-L511
Steps to reproduce
See code
Output
N/A
\cc @azeey
The text was updated successfully, but these errors were encountered: