Skip to content

PoseWithCovarianceStamped transform doesn't transform covariance part #372

Closed

Description

@ksuszka

Bug report

Required Info:

  • Operating System:
    • Ubuntu 20.04, but it doesn't really matter
  • Installation type:
    • source code analysis
  • Version or commit hash:
  • DDS implementation:
    • N/A
  • Client library (if applicable):
    • rclcpp

Steps to reproduce issue


Expected behavior

doTransform on PoseWithCovarianceStamped should also transform covariance.

Actual behavior

doTransform on PoseWithCovarianceStamped copies covariance without transforming it.

Additional information

The culprit seems to be line

t_out.pose.covariance = t_in.pose.covariance;

It seems that this functionality is implemented in ROS1 version https://github.com/ros/geometry2/blob/c73b5939723db078c9bbe18523230ad54f859682/tf2_geometry_msgs/include/tf2_geometry_msgs/tf2_geometry_msgs.h#L927

Activity

  1. clalancette commented on Feb 2, 2021

    @clalancette
    Contributor

    Yep, agreed. A pull request to port that functionality over from the ROS 1 version would be welcome.

  2. added
    help wanted
    on Feb 2, 2021
  3. aprotyas commented on Jun 7, 2021

    @aprotyas
    Member

    On that note, do_transform_pose_with_covariance_stamped in tf2_geometry_msgs.py does not transform the covariance either. Same pattern.

    res.pose.covariance = pose.pose.covariance

    Since I'm working on this issue, should I fold above changes into the same PR? @clalancette

  4. clalancette commented on Jun 7, 2021

    @clalancette
    Contributor

    Since I'm working on this issue, should I fold above changes into the same PR? @clalancette

    It's worthwhile to fix it both places, but I'll suggest two separate PRs, one for C++ and one for Python.

  5. added a commit that references this issue on Jun 11, 2021
    ae30f0b
  6. msmcconnell commented on Dec 21, 2021

    @msmcconnell

    @clalancette Is there any chance the fix for this in #430 gets backported to Foxy?

  7. clalancette commented on Dec 21, 2021

    @clalancette
    Contributor

    @clalancette Is there any chance the fix for this in #430 gets backported to Foxy?

    I think that is viable; it doesn't change API or ABI. Mind opening a backport PR?

  8. added 2 commits that reference this issue on Dec 21, 2021
    bf7e4da
    6ff1d20
  9. aprotyas commented on Dec 21, 2021

    @aprotyas
    Member

    @clalancette Is there any chance the fix for this in #430 gets backported to Foxy?

    I think that is viable; it doesn't change API or ABI. Mind opening a backport PR?

    I've opened #488 and #489 through mergify.

  10. added 2 commits that reference this issue on Dec 21, 2021
    a28ae8b
    f84d636
  11. msmcconnell commented on Dec 21, 2021

    @msmcconnell

    Thanks for putting those up @aprotyas ! Hope they can make it in soon.

  12. added 2 commits that reference this issue on Dec 23, 2021
    5abe0e7
    47a703e
  13. aprotyas commented on Dec 23, 2021

    @aprotyas
    Member

    FYI: both backports have landed.

  14. msmcconnell commented on Dec 27, 2021

    @msmcconnell

    @aprotyas Awesome thanks for doing that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions