Skip to content

Commit

Permalink
Add pose publisher ground truth example
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
  • Loading branch information
azeey committed Feb 21, 2024
1 parent 633ce72 commit 8a56f02
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/worlds/rolling_shapes.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@
</material>
</visual>
</link>
<plugin
filename="gz-sim-pose-publisher-system"
name="gz::sim::systems::PosePublisher">
<use_pose_vector_msg>true</use_pose_vector_msg>
<publish_nested_model_pose>true</publish_nested_model_pose>
</plugin>
</model>

<model name="capsule">
Expand Down
10 changes: 10 additions & 0 deletions examples/worlds/tf_bridge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Run with
#
# ros2 run ros_gz_bridge parameter_bridge --ros-args -p config_file:=tf_bridge.yaml
#
# Set just topic name, applies to both
- ros_topic_name: "/tf"
gz_topic_name: "model/sphere/pose"
ros_type_name: "tf2_msgs/msg/TFMessage"
gz_type_name: "gz.msgs.Pose_V"
direction: GZ_TO_ROS

0 comments on commit 8a56f02

Please sign in to comment.