-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathturtlebot_gmapping.launch
28 lines (20 loc) · 1005 Bytes
/
turtlebot_gmapping.launch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0"?>
<launch>
<param name="use_sim_time" value="false"/>
<arg name="record" default="False" doc="Record results in a bag file"/>
<arg name="play" default="False" doc="Play recorded bag file"/>
<arg name="bagfile" default="" doc="Play recorded bag file"/>
<node name="rviz" pkg="rviz" type="rviz" args="-d $(find turtlebot3_slam)/rviz/turtlebot3_slam.rviz" />
<group unless="$(arg play)">
<include file="$(find turtlebot3_teleop)/launch/turtlebot3_teleop_key.launch"/>
<include file="$(find turtlebot3_slam)/launch/turtlebot3_slam.launch"/>
</group>
<group if="$(arg play)">
<node pkg="rosbag" type="play" name="rosbag_play" args="$(env HOME)/catkin_ws/src/thesis/$(arg bagfile) /cmd_vel:=/cmd_vel_dev_null"/>
<param name="use_sim_time" value="true"/>
</group>
<group if="$(arg record)">
<node pkg="rosbag" type="record" name="rosbag_record" args="record -a -o $(env HOME)/catkin_ws/src/thesis/bagfiles/"/>
<param name="use_sim_time" value="false"/>
</group>
</launch>