What is MCAP?
MCAP is an open-source file format for multimodal log data, storing camera images, sensor readings, ROS messages and logs as timestamped streams in a single file. It is widely used in robotics for recording and playback.
How it works
An MCAP file holds channels, one per data stream, and each channel carries timestamped messages. The format does not care how messages are serialized: ROS 1 and ROS 2 messages, Protobuf, JSON and FlatBuffers can all live in the same file. The schemas that describe the messages are stored in the file too, so a recording can be read later without the original code.
Messages are grouped into chunks that can be compressed, and an optional index at the end of the file lets readers jump to a time range or a single channel without reading everything. The format is built for appending, so a recorder can write continuously, and a file cut off by a crash can usually still be read up to where writing stopped.
Why robotics uses it
A robot produces many kinds of data at different rates: images at camera frame rate, joint states hundreds of times a second, logs whenever something happens. MCAP keeps all of it in one file on one timeline, which is what you need to replay an incident or build a training dataset.
It is the default storage format for bag recordings in recent ROS 2 releases, and there are open-source reader and writer libraries in several programming languages. Because the specification is open, data recorded by one tool can be opened by others.
What to watch for
MCAP stores whatever you write into it. Camera streams make large files, so pick frame rates and compression with disk and upload budgets in mind. Keep schemas with the data, and timestamp messages from a consistent clock so streams line up during replay.
How PhysicalFleet handles it
PhysicalFleet writes its flight recordings as MCAP files, holding metrics, logs, events, ROS logs and camera frames from the window around an incident. Because MCAP is open, the same files can be opened in other MCAP-compatible tools as well as replayed in PhysicalFleet.
Is MCAP only for ROS?
No. MCAP works with any serialization format and is used outside ROS as well. It is popular in ROS 2 because it is the default bag storage format there.
What is the difference between MCAP and a rosbag?
Rosbag is the ROS recording tool and its file formats. In ROS 2, rosbag2 writes MCAP by default in recent releases, so a modern ROS 2 bag is often an MCAP file.
Can MCAP files be compressed?
Yes. Messages are stored in chunks that can be compressed, commonly with zstd or LZ4, while the index still allows fast seeking.
From the lab bench. To the entire fleet.
Connect your first machine in minutes, develop it in the lab and run your whole fleet in production from one place.
Free for up to 3 machines · Then pay as you go