What is an MCAP file? How to open, read and convert it
What an MCAP file is, how ROS 2 records it, and how to inspect, read in Python, convert from .db3, compress and recover MCAP files on real robots.
By Eitan Chudnovsky →What to watch in ROS 2 on every robot in a fleet (nodes, topic rates, diagnostics, TF, tracking error), the DDS traps, and why the monitor only listens.

On one robot, monitoring ROS 2 is easy. You SSH in, run ros2 node list, ros2 topic hz /camera/image_raw, look at rqt, and you know what's going on.
On twenty robots at four sites, behind cellular routers, that stops working. Nobody runs ros2 topic hz on twenty machines every morning. And the problems you care about don't show up when someone happens to be looking. They show up at 4 a.m. on robot 14, as a camera publishing at 11 Hz instead of 30.
The robots also changed. A ROS graph used to be a set of fixed programs passing messages. Now one of those nodes runs a learned model that decides from what the cameras see, many times a second. When the camera topic slows down, the model doesn't crash. It makes decisions from older images. The model gets updated, the site changes, and the robot is far from the team. So the ROS graph is not only plumbing anymore. It's the evidence of what the robot saw and did.
This post is how we think about monitoring ROS 2 across a fleet: what to watch, the DDS realities that bite, and how to tell which robot is the odd one out.
The short answer: On every robot, watch for missing nodes, the rate of every important topic against that robot's own normal, /diagnostics, error counts in /rosout, the age of TF transforms and, for arms, tracking error between planned and actual motion. The monitor should only listen, never publish. Then compare robots running the same graph, because the one that's different usually points straight at the problem.
Before what to watch, how to watch.
A monitor should never publish, never call services, never set parameters, and never become a node that something else depends on. That sounds obvious. In practice I see monitors that publish heartbeats into the robot's graph, monitors that call get_parameters on every node every few seconds, and monitors that subscribe to every camera topic with reliable QoS.
The best monitor is one the robot's graph barely notices.
Here is the list I'd put on every robot. Each item says why it matters, because a list of metrics without a reason becomes a dashboard nobody reads.
respawn=True in a launch file hides crashes very well. Count appearances.inactive exists in ros2 node list but doesn't work. Present is not the same as active.diagnostic_updater: motor temperatures, voltage, connection state, frequency checks. Most teams never look at it outside the lab./rosout, journald and container logs on one timeline.base_link to camera_link transform breaks perception silently in many stacks.For arms, this is the closest ROS gets to "is the robot doing what it was told?"
/joint_states. Report the tracking error and the max over each move.DDS has sharp edges, and a fleet finds all of them. These are the ones I see most.
ROS_DOMAIN_ID of 0 discover each other's topics. Robot A's planner can receive robot B's joint states. Give every robot its own domain ID, or restrict discovery to the local machine (ROS_AUTOMATIC_DISCOVERY_RANGE=LOCALHOST on recent distros, ROS_LOCALHOST_ONLY=1 on older ones) when the whole graph runs on one computer. Do this before the second robot arrives, not after./dev/shm or the IPC namespace, and discovery works, ros2 topic list shows everything, but large messages never arrive. Run ROS containers with host networking and host IPC, or turn shared memory transport off deliberately. And your monitor has to work the same way the robot does.RMW_IMPLEMENTATION explicitly in your launch environment, and keep it the same on every robot of a type.ros2 topic info -v first.Global thresholds don't work for a fleet, because no two robots are configured exactly alike. One has a different camera. One runs a slower compute board. One sits next to a window, and its camera rate drops every evening when the light changes.
What works is learning each robot's normal: per topic, per metric, ideally per hour of day. Then alert on sustained departures from that robot's own normal. That catches "robot 14's camera went from 30 to 11" without firing every evening on the robot by the window.
Give a baseline a few days to learn before you trust it, and re-learn it after a release that is supposed to change behavior.
The most useful view in fleet monitoring is a diff. Take eight robots running the same release on the same robot type. They should have the same nodes, the same topics and similar rates.
We wrote a whole post on this way of thinking: finding the robot that's different.
/diagnostics collected, STALE escalated./rosout counted per node and grouped by pattern.If you're still deciding how to build the stack underneath, start with the production software stack for AI-powered robots.
The PhysicalFleet agent observes ROS 1 and ROS 2 with nothing installed in your workspace: nodes, topics with rates, services, /rosout and diagnostics, on Fast DDS or Cyclone DDS, any domain, including robots running in containers. It never publishes. It also reads joint states, trajectories, controller feedback, TF and wrench, and measures planned vs actual tracking error. Each robot gets its own learned baseline, and fleet insights flag a robot that's missing a node or topic, an outlier against its peers, and config differences between robots that should be the same. More on the observability page.
If you run ROS 2 on more than a handful of robots, I'd love to hear what breaks first for you.
Because DDS discovery is open by default, and robots on the same LAN with the default ROS_DOMAIN_ID of 0 discover each other's nodes. Robot A's planner can end up receiving robot B's joint states. Give each robot its own domain ID, or limit discovery to the local machine when the whole graph runs on one computer, and do it before the second robot arrives.
Fast DDS uses shared memory between processes on the same host. If the containers don't share /dev/shm or the IPC namespace, discovery still works and the topics show up, but large messages like images never arrive. Run ROS containers with host networking and host IPC, or turn the shared memory transport off on purpose.
Check QoS first, with ros2 topic info -v. A subscriber that asks for reliable delivery from a best-effort publisher gets nothing, and the default logs show no error. If QoS matches, look at whether the publisher is actually alive and whether containers are sharing memory correctly.
It means the diagnostic stopped updating. That's often more serious than ERROR, because ERROR means the driver is alive and telling you something is wrong, while STALE means the thing that would tell you is gone. Escalate it instead of treating it as quiet.
Either can work. What matters is picking one and pinning it, with RMW_IMPLEMENTATION set explicitly and the same on every robot of a type. The two mostly interoperate, but mixed RMW implementations across a fleet cause bugs that only show up at one site.

What an MCAP file is, how ROS 2 records it, and how to inspect, read in Python, convert from .db3, compress and recover MCAP files on real robots.
By Eitan Chudnovsky →
Why a ROS 2 node can look alive while its topic goes quiet, how to catch it by hand and in code, and how to alert on silence across a robot fleet.
By Amit Ezer →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