-
Notifications
You must be signed in to change notification settings - Fork 70
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
👩🌾 Prevent -0 with out stream operator #206
Conversation
Codecov Report
@@ Coverage Diff @@
## main #206 +/- ##
==========================================
+ Coverage 98.53% 99.21% +0.67%
==========================================
Files 61 65 +4
Lines 6001 6094 +93
==========================================
+ Hits 5913 6046 +133
+ Misses 88 48 -40
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.
I added a test case in e3c7b81 that fails on ign-math6
: printing a Pose3::Zero
object results in 0 0 0 0 -0 0
. With this branch we can expect all 0
values
there are some behavior changes by setting precision to 6 for all our output streams, though it does make them more consistent
Thank you for the test case. I'm on he fence here about whether it's a good idea to get this PR in. Consistency is good, but behavior change, even if it's almost harmless, can be disruptive for users who have been handling the current behaviour. I can target this at |
I just want to point out that the use of |
Ouch that's good to know. I think we should retarget this to |
Signed-off-by: Louise Poubel <[email protected]> Signed-off-by: Steve Peters <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
humm I don't know what's happening on CI:
|
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.
Minor suggestion for the Migration document. Looks good to me. I was trying to measure the impact on performance of changes by playing with time
command but my results are pretty inconsistent. Given that it will only affect to the output I'm not that worried.
Signed-off-by: Louise Poubel <[email protected]>
That's a good idea. This may actually impact Gazebo, because the stream operators are used for serialization, and that happens often. So let's keep an eye on that 👁️ |
Caused by gazebosim/gz-math#206 Signed-off-by: Steve Peters <[email protected]>
* Address ign-math7 deprecations Signed-off-by: Louise Poubel <[email protected]> * Expext 0 instead of -0 in tests Caused by gazebosim/gz-math#206 * macos workflow: try to checkout ci_matching_branch * macOS workflow: remove swig to fix ignition-math7 build Signed-off-by: Steve Peters <[email protected]> Co-authored-by: Steve Peters <[email protected]>
🦟 Bug fix
Fixes #161
Summary
Implemented @azeey 's suggestion to check for zeroes and explicitly output
0
to avoid-0
.I also had to add a const version of
Color::operator[]
so it could be used by the operator.Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge
🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸
https://github.com/osrf/buildfarmer/issues/181