Browse Source

Merge pull request #11 from PickNikRobotics/launch_args

Add rviz arguments to navigation launch files
pull/16/head
hello-binit 3 years ago
committed by GitHub
parent
commit
4a08a6c422
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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