.. _ros-bag-label: ROS bag ======= .. note :: The official documentation for `rosbag `_ and `rqt_bag `_ are quite comprehensive. Please refer to them if you have any questions. `rosbag `_ is an excellent tool which allows you to record any topics you want during runtime. The recorded topics are saved to a bagfile. These bags can be easily inspected with a rqt_plugin called `rqt_bag `_ to plot the data. .. figure:: images/example_ros_bag.png :align: center Example of rqt_bag Recording bags ^^^^^^^^^^^^^^ There are many ways to record a rosbag: Using the RQT plugin, with the commandline, or adding it to the launchfile. Adding it to the launchfile is the least effort, and is done by starting the following node: .. code:: Use the option -a to record all topics. .. hint:: If you don't specify an output directory, the log files are located in the ros home folder (~/.ros)