Browse Source

Mapping and nav launch Rviz based on rosarg

bugfix/gazebo_rviz
hello-binit 3 years ago
committed by Binit Shah
parent
commit
ccbcc5cc89
2 changed files with 5 additions and 2 deletions
  1. +3
    -1
      stretch_navigation/launch/mapping.launch
  2. +2
    -1
      stretch_navigation/launch/navigation.launch

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

@ -1,5 +1,7 @@
<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" />
<include file="$(find stretch_core)/launch/stretch_driver.launch" pass_all_args="true"/>
@ -12,7 +14,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/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" />

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

@ -1,6 +1,7 @@
<launch>
<arg name="map_yaml" />
<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" />
@ -21,6 +22,6 @@
<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