[Documentation] [TitleIndex] [WordIndex

This page describes the ROS bag format, which is a logging format for storing ROS messages in files. Files using this format are called bags, and have the file extension .bag. Bags are recorded, played back, and generally manipulated by tools in the rosbag and rqt_bag packages.

Versioning

The ROS bag format has changed over time. This document describes all formats that have ever been officially supported.

There is no guarantee of compatibility between different versions. Newly created bags are always recorded at the current version. While we make every effort to support playback of older bags, in some cases user intervention may be required to update an old bag for playback.

Bag files begin with a newline-terminated string of the form:

#ROSBAG VX.Y

where X and Y are the major and minor version numbers. (Past versions have used a #ROSRECORD or #ROSLOG prefix.)

After this line, the details vary by version.

Formats


2024-10-26 12:14