How to debug a failed robot run
Debugging a failed robot run means reconstructing what the robot saw, what the model output and what the hardware did at the moment it failed, and comparing it with a run that worked. It needs cameras, joint states and model outputs recorded on one clock around the failure.
Why learned policies are hard to debug
A learned policy fails quietly. It does not throw an exception; it reaches a bit too far, hesitates, or grips the wrong spot. The cause can be the input (a frozen or moved camera, lighting, an object it has not seen), the model (low confidence, a slow inference), or the robot (a hot motor, a calibration offset). Without a recording, the failure is gone the moment it happens.
What to record
A flight recording of the seconds before and after the failure: every camera, joint state, the actions the model sent and the step the task was on. Per inference: timing, inputs, outputs and confidence. And the context: the checkpoint, the release and anything that changed recently.
How to debug it
Replay the failed episode next to a successful one, in sync, and find the first moment they differ. Check policy health signals at that moment: frozen cameras, inputs outside the training range, NaN actions, a slow model. Look at confidence: a policy that was unsure at the failure point usually needs more data there, and those frames (hard frames) are the ones to label next.
- Recording of the seconds before and after every failure
- Model inputs, outputs, timing and confidence per inference
- The checkpoint and release on the robot at the time
- Replay next to a good run, in sync
- Uncertain frames collected for the next round of data
PhysicalFleet records failed episodes from 10 seconds before to 5 seconds after, with cameras, joints and the plan, in standard MCAP files, and replays them next to a good one. The Python library traces every inference (timing, inputs, actions, confidence), and issues come with a probable cause and what to do. Remote terminal and saved buttons let you stop a robot, send it to its recovery pose and look around without going on site. See Debug.
See the Development workbenchWhy does my robot policy fail randomly?
Usually it isn't random: an input changed (camera, lighting, object position), an inference was slow, or the robot's state differed. Recording inputs, outputs and timing on every run shows which.
What should I record to debug a robot failure?
Every camera, joint state and action around the failure on one clock, plus per-inference timing, inputs, outputs and confidence, and the checkpoint the robot was running.
How do I find what data my policy needs next?
Look at where it fails and where it is unsure. Frames with low model confidence near failures are the most valuable ones to label and add to the dataset.
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