Browse Source

Add rviz arguments to navigation launch files

pull/11/head
David V. Lu 3 years ago
parent
commit
2153ab39b8
2 changed files with 6 additions and 2 deletions
  1. +3
    -1
      stretch_navigation/launch/mapping.launch
  2. +3
    -1
      stretch_navigation/launch/navigation.launch

+ 3
- 1
stretch_navigation/launch/mapping.launch View File

@ -1,4 +1,5 @@
<launch>
<arg name="rviz" default="true" />
<param name="/stretch_driver/broadcast_odom_tf" type="bool" value="true"/>
<param name="/stretch_driver/mode" type="string" value="navigation" />
@ -12,7 +13,8 @@
<remap from="/cmd_vel" to="/stretch/cmd_vel" />
</node>
<node name="rviz" pkg="rviz" type="rviz" output="log" args="-d $(find stretch_navigation)/rviz/mapping.rviz" />
<node name="rviz" pkg="rviz" type="rviz" output="log"
args="-d $(find stretch_navigation)/rviz/mapping.rviz" if="$(arg rviz)" />
<node pkg="gmapping" type="slam_gmapping" name="gmapping_record_map" output="log" />

+ 3
- 1
stretch_navigation/launch/navigation.launch View File

@ -1,4 +1,5 @@
<launch>
<arg name="rviz" default="true" />
<arg name="map_yaml" />
@ -21,6 +22,7 @@
<remap from="/cmd_vel" to="/stretch/cmd_vel" />
</node>
<node name="rviz" pkg="rviz" type="rviz" output="log" args="-d $(find stretch_navigation)/rviz/navigation.rviz" />
<node name="rviz" pkg="rviz" type="rviz" output="log"
args="-d $(find stretch_navigation)/rviz/navigation.rviz" if="$(arg rviz)"/>
</launch>

Loading…
Cancel
Save