-
Notifications
You must be signed in to change notification settings - Fork 75
Fix Color::HSV() incorrect hue output #320
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
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.
|
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.
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.cc
has an incorrect output hue (index 0 of returnVector3f
object)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
codecheck
passed (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-by
messages.