Repository navigation
tf2_geometry_msgs: Fixing covariance transformation in doTransform<PoseWithCovarianceStamped, TransformStamped> - #430
Merged
Conversation
added 2 commits
June 7, 2021 19:04
* The transform operation has been performed with the row-major form of the covariance matrix. * tf2 matrix types were used for easier matrix multiplication. Signed-off-by: Abrar Rahman Protyasha <[email protected]>
* The previous test was doing a wrong covariance check, i.e. out.covariance = in.covariance. * The updated test checks against the correctly transformed covariance matrix. Signed-off-by: Abrar Rahman Protyasha <[email protected]>
sloretz
reviewed
Jun 8, 2021
sloretz
left a comment
Contributor
There was a problem hiding this comment.
The math LGTM (I only checked that it matches the ROS 1 code)
aprotyas
commented
Jun 8, 2021
Previously, `transformCovariance`'s transform argument was of type `geometry_msgs::msg::Transform`, which is not a "general" transform type, but rather a message type. As such, that argument type has been changed to `tf2::Transform`, so that the user can convert from whatever transform type they have to a tf Transform. Also: * Moved location of a forward declaration to be closer to its use. * Applied `ament_uncrustify` changes for maximum line length, changing the `transformCovariance` signature ine. * Reflected change in `transformCovariance` function signature in doxygen documentation. Signed-off-by: Abrar Rahman Protyasha <[email protected]>
Member
Author
clalancette
requested changes
Jun 11, 2021
clalancette
left a comment
Contributor
There was a problem hiding this comment.
One minor thing to fix, then this looks good to me.
Leading tabs prevented the function parameters from lining up, both in the Github UI and in Vim. Converting all tabs to spaces fixes said issue. Signed-off-by: Abrar Rahman Protyasha <[email protected]>
Member
Author
|
@Mergifyio backport galactic foxy |
mergify Bot
pushed a commit
that referenced
this pull request
Dec 21, 2021
…<PoseWithCovarianceStamped, TransformStamped>` (#430) Fixes #372. * Implement covariance transformation (cpp). * Fixed `TfGeometry/FrameWithCovariance` test. The updated test checks against the correctly transformed covariance matrix. Signed-off-by: Abrar Rahman Protyasha <[email protected]> (cherry picked from commit ae30f0b) # Conflicts: # tf2_geometry_msgs/include/tf2_geometry_msgs/tf2_geometry_msgs.hpp
mergify Bot
pushed a commit
that referenced
this pull request
Dec 21, 2021
…<PoseWithCovarianceStamped, TransformStamped>` (#430) Fixes #372. * Implement covariance transformation (cpp). * Fixed `TfGeometry/FrameWithCovariance` test. The updated test checks against the correctly transformed covariance matrix. Signed-off-by: Abrar Rahman Protyasha <[email protected]> (cherry picked from commit ae30f0b) # Conflicts: # tf2_geometry_msgs/include/tf2_geometry_msgs/tf2_geometry_msgs.hpp
Contributor
✅ Backports have been createdDetails
|
aprotyas
pushed a commit
that referenced
this pull request
Dec 21, 2021
…<PoseWithCovarianceStamped, TransformStamped>` (#430) Fixes #372. * Implement covariance transformation (cpp). * Fixed `TfGeometry/FrameWithCovariance` test. The updated test checks against the correctly transformed covariance matrix. Signed-off-by: Abrar Rahman Protyasha <[email protected]> (cherry picked from commit ae30f0b)
aprotyas
pushed a commit
that referenced
this pull request
Dec 21, 2021
…<PoseWithCovarianceStamped, TransformStamped>` (#430) Fixes #372. * Implement covariance transformation (cpp). * Fixed `TfGeometry/FrameWithCovariance` test. The updated test checks against the correctly transformed covariance matrix. Signed-off-by: Abrar Rahman Protyasha <[email protected]> (cherry picked from commit ae30f0b)
aprotyas
pushed a commit
that referenced
this pull request
Dec 23, 2021
…<PoseWithCovarianceStamped, TransformStamped>` (#430) (#488) Fixes #372. * Implement covariance transformation (cpp). * Fixed `TfGeometry/FrameWithCovariance` test. The updated test checks against the correctly transformed covariance matrix. Signed-off-by: Abrar Rahman Protyasha <[email protected]> (cherry picked from commit ae30f0b)
aprotyas
pushed a commit
that referenced
this pull request
Dec 23, 2021
…<PoseWithCovarianceStamped, TransformStamped>` (#430) (#489) Fixes #372. * Implement covariance transformation (cpp). * Fixed `TfGeometry/FrameWithCovariance` test. The updated test checks against the correctly transformed covariance matrix. Signed-off-by: Abrar Rahman Protyasha <[email protected]> (cherry picked from commit ae30f0b)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously, the covariance matrix of a
PoseWithCovarianceStampedmessage was incorrectly transformed. This PR:transformCovariancemethod to address the covariance transformation.TfGeometry/FrameWithCovarianceunit test to check for the expected transformed covariance.Fixes #372