-
Notifications
You must be signed in to change notification settings - Fork 67
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
Pose3: deprecate + operator in favor of * #381
Conversation
Codecov Report
@@ Coverage Diff @@
## main #381 +/- ##
=======================================
Coverage 99.73% 99.73%
=======================================
Files 68 68
Lines 6314 6314
=======================================
Hits 6297 6297
Misses 17 17
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.
LGTM! Should we deprecate Pose3::operator-
and Pose3::operator-=
as well?
EXPECT_TRUE(pose == | ||
math::Pose3d(5.74534, 7.01053, 8.62899, 0.675732, 0.535753, 1.01174)); | ||
|
||
pose += pose; | ||
pose *= pose; |
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.
As we found in #372, it would be good to keep tests for deprecated functions.
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.
coverage restored in d9a6d4a
I wanted to address them separately, so I'll make a follow-up pull request about |
d9a6d4a
to
35bda79
Compare
The * operator matches the behavior of multiplying transform matrices, so it should be preferred over the addition operator, which is confusing. Part of gazebosim#60. Signed-off-by: Steve Peters <[email protected]>
Signed-off-by: Steve Peters <[email protected]>
35bda79
to
06fafd9
Compare
I think this is ready for review as downstream packages have already been fixed to use |
🎉 New feature
Part of #60.
Summary
The
*
operator matches the behavior of multiplying transform matrices, so it should be preferred over the addition operator, which is confusing. This will be a draft PR until the deprecation warnings have been fixed in downstream packages.Test it
Run the
UNIT_Pose_TEST
, which uses the*
operator instead of+
.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.