1 Bag Introduction

1.1 Bag Introduction

  ros2 bag is a command line tool for logging data about topics in the system. It accumulates data passed on any number of topics and saves it in a database.

1.2 Installation

sudo apt-get install ros-galactic-ros2bag ros-galactic-rosbag2-storage-default-plugins

1.3 Use

1.3.1 Saving records

ros2 bag record <topic_name>

1.3.2 Save to specified file

ros2 bag -o <file_name> <topic_name_1> <topic_name_2>

1.3.3 View log file

ros2 bag info <bag_file_name>

1.3.4 Reproducing records

ros2 bag play <bag_file_name>

results matching ""

    No results matching ""