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.
|
azeey
left a comment
There was a problem hiding this comment.
LGTM! Should we deprecate Pose3::operator- and Pose3::operator-= as well?
| math::Pose3d(5.74534, 7.01053, 8.62899, 0.675732, 0.535753, 1.01174)); | ||
|
|
||
| pose += pose; | ||
| pose *= pose; |
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 <scpeters@openrobotics.org>
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
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
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.