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

Odometry publisher: also publish Pose_V (TF) #1534

Merged
merged 3 commits into from
Jun 17, 2022

Conversation

chapulina
Copy link
Contributor

🎉 New feature

Summary

The OdometryPublisher plugin already publishes msgs::Odometry, but it's also useful for it to publish msgs::Pose_V, which can be bridged to the /tf topic in ROS.

I used /mode/<name>/pose as the default so that it would match the PosePublisher. But note that this is different from the DiffDrive's default, which is /model/<name>/tf.

Test it

  • Run the example and then the command suggested below
  • Run the added test
  • Add the plugin to a ROS-enabled model, bridge the /mode/<name>/pose topic to /tf, and check the transforms with ROS

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.

🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸

Signed-off-by: Louise Poubel <[email protected]>
@chapulina chapulina added enhancement New feature or request MBARI buoy Sponsored by MBARI buoy sim project: https://github.com/osrf/buoy_sim labels Jun 14, 2022
@chapulina chapulina requested a review from quarkytale June 14, 2022 00:04
@chapulina chapulina added the 🏯 fortress Ignition Fortress label Jun 14, 2022
@mjcarroll
Copy link
Contributor

Signed-off-by: Louise Poubel <[email protected]>
@chapulina
Copy link
Contributor Author

Looks like the test may be timing out in CI

Ouch I changed the implementation halfway but forgot to update the test. It should be fixed now.

@codecov
Copy link

codecov bot commented Jun 16, 2022

Codecov Report

Merging #1534 (11a68be) into ign-gazebo6 (b753afe) will increase coverage by 2.51%.
The diff coverage is 90.00%.

@@               Coverage Diff               @@
##           ign-gazebo6    #1534      +/-   ##
===============================================
+ Coverage        61.52%   64.04%   +2.51%     
===============================================
  Files              361      316      -45     
  Lines            27733    25478    -2255     
===============================================
- Hits             17063    16317     -746     
+ Misses           10670     9161    -1509     
Impacted Files Coverage Δ
src/systems/diff_drive/DiffDrive.hh 100.00% <ø> (ø)
...rc/systems/odometry_publisher/OdometryPublisher.hh 100.00% <ø> (ø)
...rc/systems/odometry_publisher/OdometryPublisher.cc 87.87% <90.00%> (-0.50%) ⬇️
...ion_capabilities/qrc_VisualizationCapabilities.cpp
...-gui_autogen/EWIEGA46WW/moc_AboutDialogHandler.cpp
src/gui/plugins/spawn/qrc_Spawn.cpp
src/gui/plugins/plot_3d/qrc_Plot3D.cpp
src/msgs/peer_control.pb.cc
...c/gui/plugins/scene_manager/qrc_GzSceneManager.cpp
src/msgs/performer_affinity.pb.cc
... and 38 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b8c09b6...11a68be. Read the comment docs.

Copy link
Contributor

@quarkytale quarkytale left a comment

Choose a reason for hiding this comment

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

Works for me!

@chapulina chapulina merged commit 481c513 into ign-gazebo6 Jun 17, 2022
@chapulina chapulina deleted the chapulina/6/odom_tf branch June 17, 2022 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 🏯 fortress Ignition Fortress MBARI buoy Sponsored by MBARI buoy sim project: https://github.com/osrf/buoy_sim
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants