Skip to content
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

allow converting from/to PoseWithCovarianceStamped #381

Merged

Conversation

ejalaa12
Copy link
Contributor

@ejalaa12 ejalaa12 commented Apr 11, 2023

🎉 New feature

Relates to PR #374.

Summary

ros_gz_bridge allows converting gz.msgs.PoseWithCovariance <-> geometry_msgs.msg.PoseWithCovariance.

However the gz.msgs.PoseWithCovariance also contains a header and stamp. So it could be converted to a geometry_msgs.msg.PoseWithCovarianceStamped.

This PR implements that conversion. It is now possible to convert either to/from:

geometry_msgs.msg.PoseWithCovariance
geometry_msgs.msg.PoseWithCovarianceStamped.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

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.

@ejalaa12 ejalaa12 requested a review from ahcorde as a code owner April 11, 2023 14:59
@ejalaa12
Copy link
Contributor Author

@adityapande-1995 here is the PR you proposed :)

Signed-off-by: Alaa El Jawad <ejalaa12@gmail.com>

fix typo 

Signed-off-by: Alaa El Jawad <ejalaa12@gmail.com>
@ejalaa12 ejalaa12 force-pushed the convert-pose-with-cov-stamped branch from 4f0b3ee to f4da30a Compare April 11, 2023 16:31
Signed-off-by: Alaa El Jawad <ejalaa12@gmail.com>
@azeey azeey self-requested a review April 17, 2023 18:54
@adityapande-1995 adityapande-1995 self-requested a review April 24, 2023 18:37
Copy link
Contributor

@adityapande-1995 adityapande-1995 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this ! Could you update the README file to reflect this change ? https://github.com/gazebosim/ros_gz/blob/ros2/ros_gz_bridge/README.md

Signed-off-by: Alaa El Jawad <ejalaa12@gmail.com>
@ejalaa12
Copy link
Contributor Author

Thanks for adding this ! Could you update the README file to reflect this change ? https://github.com/gazebosim/ros_gz/blob/ros2/ros_gz_bridge/README.md

Sure !
I just did it and pushed.

Btw, I went ahead and fixed the Table header alignement from | :---: | to | :--- | because this is what you seem to be using.

@adityapande-1995 adityapande-1995 merged commit 4e9cadc into gazebosim:ros2 May 1, 2023
@ejalaa12 ejalaa12 deleted the convert-pose-with-cov-stamped branch May 2, 2023 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants