
Robot policy evaluation is the evidence-gathering stage that decides whether a trained policy is safe and reliable enough to run on hardware. It answers more than “did the robot complete the task?” by measuring repeatability, failure modes, recovery, tracking error and the amount of human intervention required.
A useful evaluation starts before a policy reaches the robot: verify the file contract, run held-out simulation scenarios and preserve the exact policy version and test configuration. Hardware time is expensive and potentially unsafe, so it should test a policy that has already survived cheaper gates.
Measure task performance and safety separately, then report both per scenario. One aggregate score hides whether a policy is consistently mediocre, occasionally excellent or unsafe in a known condition.
| Metric | What it captures | Example reporting format |
|---|---|---|
| Task success | Completed the intended behaviour | Successful episodes / attempted episodes |
| Fall rate | Lost upright or controlled operation | Falls per 10 minutes |
| Recovery success | Recovered after a disturbance | Successful recoveries / disturbances |
| Tracking error | Missed commanded speed, pose or path | Mean and worst-case error |
| Human interventions | Required operator rescue | Interventions per episode |
| Time to success | Efficiency of the successful runs | Median and slowest completion |
| Safety stops | Triggered limits or emergency stop | Stops by trigger reason |
| Repeatability | Variation across seeds and starts | Spread across identical trials |
Define acceptance thresholds for the task before seeing the final results. A narrow walking-policy experiment and a long-running research demo have different tolerances, so universal numbers would create false confidence.
Use a staged ladder from cheap, reversible checks to supervised physical trials. Stop at the first stage that fails; a stronger result later does not cancel an earlier safety failure.
Check observation shape, action shape, model identifier, API version, normalizer and file provenance. An ONNX file that loads is not necessarily the policy that was trained.
Run the exact training task and a small set of held-out seeds. Confirm that the exported policy performs like the checkpoint it came from. This catches export and preprocessing errors before they reach hardware.
Change terrain, friction, mass, command timing and disturbances one category at a time. Preserve the scenario list so two policies can be compared on the same evaluation set.
Run the controller with the deployment runtime where possible. A 50 Hz policy, for example, should be exercised with the same observation layout, timing assumptions and action conversion used onboard.
Put the robot on a stand or restraint. Check startup, policy load, joint direction, limit handling, stop behaviour and deadman or emergency controls before free-floor movement.
Start with short episodes, a clear area and an operator able to stop the robot. Increase duration and scenario diversity only after repeated clean runs.
There is no universal trial count. The right sample depends on failure cost, policy variance and the size of the operating envelope. A useful screening rule is to preselect scenarios, run enough episodes to observe repeated failures rather than one fluke, and report confidence limits alongside success rates.
Never replace the scenario suite with a single long run. A ten-minute success can hide a failure that occurs only from a particular starting orientation or surface.
Keep separate scores for simulation, realistic simulation, bench tests and physical tests. Report the delta rather than claiming one overall transfer score.
The sim-to-real robotics guide explains the modelling and randomization side. Evaluation closes the loop by proving whether those choices improved real behaviour.
A compact report should let another engineer reproduce the result:
Avoid combining policies with different normalizers, action mappings or hardware settings into one chart. Those are different experiments, even if the task description is the same.
Microduck exports policies to ONNX and runs them on a 50 Hz onboard loop. The official manifest records the robot model, API version, observation/action widths and whether a policy is episodic or perpetual. The runtime rejects incompatible shapes before replacing the active policy.
The policy guide covers manifest fields, simulation-first testing and reset commands. The training guide covers evaluation and export, while the software architecture explains where safety sits relative to the motor bus.
No evaluation result should be inferred from the existence of a policy file. The policy must be replayed at the correct shape and control rate, then tested through the hardware ladder.
What is robot policy evaluation? It is the process of measuring whether a trained controller completes its task safely, repeatably and under stated operating conditions.
Is simulation evaluation enough? No. Simulation is the first gate. Hardware transfer needs bench and supervised physical validation.
What metrics matter most? Task success, safety stops, falls, recovery, intervention rate and repeatability. Tracking error matters when the task includes velocity, pose or trajectory commands.
How many episodes should I run? Use a predefined scenario suite and enough episodes to expose repeated failures and estimate uncertainty. The required count depends on risk and task variance.
How do I compare two policies fairly? Use the same seeds, scenes, starting states, hardware setup and measurement code. Report per-scenario outcomes as well as aggregates.
What should happen after a physical failure? Stop the experiment, preserve logs, categorise the failure and reproduce it in simulation or in a safer bench setup before changing the policy.