Fix Color::HSV() incorrect hue output#320
Conversation
Signed-off-by: youhy <haoyuan2019@outlook.com>
Signed-off-by: youhy <haoyuan2019@outlook.com>
Signed-off-by: youhy <haoyuan2019@outlook.com>
Codecov Report
@@ Coverage Diff @@
## ign-math6 #320 +/- ##
==========================================
Coverage 99.65% 99.65%
==========================================
Files 67 67
Lines 6359 6360 +1
==========================================
+ Hits 6337 6338 +1
Misses 22 22
Continue to review full report at Codecov.
|
chapulina
left a comment
There was a problem hiding this comment.
Thanks for the fix!
In general, we avoid changes in behavior in a stable version even if they're bug fixes, because downstream users may be compensating for it and may be broken by the change. But in this case, I think it's safe to assume that users aren't using this function since it returns wrong values, so fixing it should be good. I think we should add a note to the migration guide just in case.
Signed-off-by: youhy <haoyuan2019@outlook.com>
|
@chapulina Thanks for the feedback! I updated the migration.md but I am not entirely sure how to write this guide (which version are we migrating from & to, etc). Could you help me verify what I added in the guide is correct? Thanks for your time! |
Thanks, the text looks good to me. But since the fix will go into the next release, mind putting it under a new section
Thank you too! |
Signed-off-by: youhy <haoyuan2019@outlook.com>
|
This pull request has been mentioned on Gazebo Community. There might be relevant details there: https://community.gazebosim.org/t/new-ignition-releases-2022-03-01-citadel-edifice-fortress/1313/1 |
🦟 Bug fix
Summary
Why also change the test cases:
Description
Color::HSV()inColor.cchas an incorrect output hue (index 0 of returnVector3fobject)Example 1: Converting the RGB (0.5, 0.6, 0.7) to HSV.
Example 2: Converting the RGB (0.0, 0.0, 0.0) to HSV.
Examples can be verified by putting the following file in /examples
Incorrect Output on terminal
Correct Output on terminal
Checklist
codecheckpassed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-bymessages.