ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
To launch all together you have simply to include all the launch files into a single launch file. (Take a look to this ).
Regarding the rosbag check this answer, the xml syntax for rosbag record -a
is: <node pkg="rosbag" type="record" name="recorder" output="screen" args="-a"/>
(in "args" you can put all the arguments for that command)
So the whole launch file to launch all you need is:
<launch>
<include file="$(find turtlebot_gazebo)/launch/turtlebot_world.launch"/>
<include file="$(find turtlebot_gazebo)/launch/gmapping_demo.launch"/>
<include file="$(find turtlebot_rviz_launchers)/launch/view_robot.launch"/>
<include file="$(find turtlebot_teleop)/launch/keyboard_t.launch"/>
<!--
The rosbag will be saved in the ~./ros folder
-->
<node pkg="rosbag" type="record" name="recorder" output="screen" args="-a"/>
</launch>
Now you can launch it from the terminal as a normal launch file.