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

[Garden] Fix bridging Gz to ROS2 topics #520

Merged
merged 1 commit into from
Sep 29, 2022
Merged

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Sep 28, 2022

Signed-off-by: Ian Chen ichen@openrobotics.org

Follow up to #519, this PR fixes the ROS2 topics for the wamv. The problem was that the ros_ign_bridge is still using the ignition.msgs.* msg types instead of gz.msgs (see msg type table README.md) , presumably to keep compability with Fortress.

All ROS2 topics should be working except the thruster cmd topic. It requires this gazebosim/gz-sim#1681 to be forward ported from Fortress to Garden

The thrusters joint pos topic should work.

ros2 topic pub': ros2 topic pub --once wamv/thrusters/right/pos std_msgs/msg/Float64 'data: -1

I removed more topic bridges that are not needed / used:

  • /wamv/imu/data - commented out as there is no imu sensor on the wamv yet
  • /wamv/rx and /wamv/tx - commented out as RFComms is not being used yet
  • /vrx/score, /vrx/run_clock, /vrx/phase: removed as these are also MBZIRC-specific. From looking at the vrx technical guide, I think there is a /vrx/task/info topic with custom message type that captures these status data instead.

Signed-off-by: Ian Chen <ichen@openrobotics.org>
Copy link
Contributor

@caguero caguero 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! Should we also bridge the vrx task message. It's a msgs::Param. We should be able to use the ros_gz_interfaces/ParamVec.

@iche033
Copy link
Contributor Author

iche033 commented Sep 29, 2022

Works for me! Should we also bridge the vrx task message. It's a msgs::Param. We should be able to use the ros_gz_interfaces/ParamVec.

yeah, I can work on that in a separate PR

@iche033 iche033 merged commit 9d10486 into gazebosim Sep 29, 2022
@caguero
Copy link
Contributor

caguero commented Oct 4, 2022

Part of #514 .

@caguero caguero deleted the iche033/fix_bridges branch January 5, 2023 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants