Skip to content

Commit

Permalink
Merge branch 'ros2' into caguero/imu_demo_v2
Browse files Browse the repository at this point in the history
  • Loading branch information
caguero authored Dec 13, 2024
2 parents 727023b + 8bfdad1 commit c29aa09
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 64 deletions.
2 changes: 1 addition & 1 deletion ros_gz_sim_demos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Publishes magnetic field readings.

Publishes satellite navigation readings, only available in Fortress on.

ros2 launch ros_gz_sim_demos navsat.launch.py
ros2 launch ros_gz_sim_demos navsat.launch.xml

![](images/navsat_demo.png)

Expand Down
6 changes: 6 additions & 0 deletions ros_gz_sim_demos/config/navsat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Navsat configuration.
- topic_name: "/navsat"
ros_type_name: "sensor_msgs/msg/NavSatFix"
gz_type_name: "gz.msgs.NavSat"
lazy: true
direction: GZ_TO_ROS
63 changes: 0 additions & 63 deletions ros_gz_sim_demos/launch/navsat.launch.py

This file was deleted.

12 changes: 12 additions & 0 deletions ros_gz_sim_demos/launch/navsat.launch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<launch>
<gz_server
world_sdf_file="spherical_coordinates.sdf"
use_composition="True"
create_own_container="True" />
<ros_gz_bridge
bridge_name="ros_gz_bridge"
config_file="$(find-pkg-share ros_gz_sim_demos)/config/navsat.yaml"
use_composition="True" />
<node pkg="rqt_topic" exec="rqt_topic" args="-t" />
<executable cmd="gz sim -g" />
</launch>

0 comments on commit c29aa09

Please sign in to comment.