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 →Fixed thresholds miss most problems on AI robots. How learned baselines, peer comparison and config differences find the one robot that's off, and why.

Picture forty arms on four lines. Same hardware, same model, same release. Every dashboard is green. No alert has fired in a week.
One of them takes 900 ms per inference. The other thirty-nine take about 250.
Nobody noticed, because 900 ms is under the 1-second alert threshold someone set when the fleet ran an older, slower model. The arm still finishes its picks. It's just slow, and it drops a few more parts per shift than the rest. The customer will notice before you do.
That's the kind of problem I expect most in AI-powered fleets. A robot that still works, just differently from the others.
The short answer: Compare each robot with its own normal for that hour of the day, and with peers running the same model right now. When one stands out, check how its setup differs from its peers: camera resolution, checkpoint, weights, compute device, versions. Fixed thresholds miss most of this, because model problems drift instead of crossing a line.
At Upswift, most of the devices our customers ran were deterministic. A coffee roaster ran a profile. If something was wrong, it usually crossed a clear line: the disk filled, the process crashed, the temperature went over a limit.
Robots running learned policies are living minds. They decide from what they see, many times a second. The model changes with every checkpoint you ship. The world around each robot changes by the hour. And each robot is far from your team. Problems rarely cross a line. They drift.
Thresholds are still useful for hard limits. Disk at 95%. Temperature at 85 °C. Keep those. But for model behavior, they fail in predictable ways:
You end up with alerts that are either noisy or silent. Both train your team to stop looking.
Instead of "is this number above X?", ask two questions:
They catch different problems. Together, they catch most of what thresholds miss.
A baseline is the learned normal range of one metric on one robot. Here's how I'd build one.
Then flag a metric when it's far from normal by two measures at once: many deviations away (I'd start around five), and a meaningful relative difference (around 30%). The second condition matters for quiet metrics. If a value is usually very stable, a tiny change can be many deviations away and still mean nothing.
A good finding reads like a sentence a person would say: "arm-305: /camera/image rate down to 12 Hz, usually 30 Hz at this hour."
The rest of the fleet is the best baseline you have. It's live, it shares the same conditions, and it updates itself every time you ship.
The hard part is choosing peers.
The finding looks like: "arm-302: inference time 937 ms vs 249 ms on its 10 peers (3.8x)."
That sentence is already more useful than a hundred green dashboards. But it only tells you what. The next part tells you why.
When one robot behaves differently from its peers, its setup is usually different too. Somebody changed something on that robot and forgot. A camera was replaced with a different model. A container came up without GPU access and fell back to CPU.
So for every robot, record the facts that shape model behavior, and compare them across peers:
model_v3.pt can contain anything.Then flag what most peers, say 70% or more, agree on and this robot doesn't: "arm-307: observation.images.camera_1 is 1x3x240x320 while 10 of its 10 peers have 1x3x480x640."
The best part is putting the two together. When a robot is a peer outlier on inference time, attach the setup differences you found: "its compute is cpu while 10 of its 10 peers have cuda." Now the finding has a probable cause, and the person reading it knows where to look.
Some differences are absences. A robot that's missing something its whole group has:
None of these are threshold problems. There's no number to cross. You only see them by comparing with peers. If you run ROS, my post on monitoring ROS 2 across a fleet goes deeper on what to watch in the graph.
Sometimes the odd one is a whole group. Split the fleet by a setting and look for a clear gap:
"Devices with checkpoint pi05-v2 have 34% lower inference time than with pi05-v1 (5 vs 6 devices)." That's the kind of fact you'd otherwise only find by accident, months later.
After a release, someone always asks if it made things better. The naive answer compares the week before with the week after. That's wrong more often than you'd think. Maybe the after week had a lighter shift. Maybe a site was closed for a holiday. Maybe it was hotter.
The better answer is difference-in-differences:
The robots you didn't update absorb everything that isn't the release: the weather, the holiday, the lighter shift. Require at least three updated robots, a few controls, and an effect clearly larger than the noise before you claim anything.
That's also why I don't like updating everyone at once, even when it feels safe. If every robot updates, you have no controls, and you'll never know what the release really did. The same comparison, run between phases, is what a health gate uses to stop a bad rollout. Amit covers that in phased rollouts and automatic rollback.
And compare the model's metrics along with the computer's: inference time, control-loop rate, action saturation, errors, task success. If you don't collect those yet, start with how to monitor a robot policy in production.
PhysicalFleet learns a normal range for each metric on each robot by hour of day, and compares every robot with peers running the same policy, topic or process. It flags config differences like camera resolution, checkpoint, weights or compute device, missing ROS nodes, topics, cameras and models, version effects, and release impact against robots that weren't updated. Each one is a single sentence with the probable cause. More on our Debug page.
If you're running a fleet and have found your own odd one out in a strange way, I'd love to hear the story.
Normal is different on every robot, it changes with every release, and it changes during the day. Models also degrade gradually instead of crashing, so a policy that's 20% slower never crosses a line drawn six months ago. Keep fixed thresholds for hard limits like disk and temperature, and use baselines and peer comparison for model behavior.
Ask two questions: is this robot different from its own normal at this hour, and is it different from the peers running the same thing right now? Flag it only when the gap is large both in deviations and in relative terms. Then attach the setup differences you find, like a lower camera resolution or a model on CPU instead of CUDA, so the finding comes with a probable cause.
Because one spike, like a 5-second inference during a restart, drags the mean and inflates the standard deviation for days. The median and the median absolute deviation barely move. That keeps baselines stable on noisy metrics where occasional outliers are normal.
About a day before it's worth anything, and around three weeks before weekday patterns like quiet Sundays show up. A rolling window of about two weeks is a good default. Until there's enough data, report that it's still learning instead of raising alerts.
Peers should run the same policy, topic or process, and for system metrics like CPU and temperature they should also run on the same hardware. Leave the robot out of its own peer group and compare it with the median of the others. With fewer than three peers, you can't say which one is odd.

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