TECHNIAHQROBOT / INDEPENDENT ROBOTICS REPORTINGENGLISH EDITION / 20 November 2026
Articles

Real-to-Sim-to-Real in Robotics

Learn what robot logs can identify, how to compare trajectories and how PACE and ASAP use physical data in two different correction methods.

The starting point names the loop

Real-to-sim-to-real starts with physical measurements, uses them to revise a simulator or controller, then returns to hardware. Sim-to-real-to-sim starts with a controller developed virtually and returns to the model after physical evaluation. A continuing project can contain both sequences.

Conceptual loop from simulation to controller, physical robot, sensor logs, parameter estimation and updated simulation.
Original conceptual workflow. It explains the order of work; it does not depict a measured experiment or prove that the fitted parameters are correct. Open the diagram for a larger view.

Calibration and control optimization answer different questions. Calibration asks which model response matches recorded behavior. Control optimization asks which actions achieve a task in the model. A controller can compensate for a model error without revealing the underlying physical parameter.

Record the command as well as the response

Suggested log inventory; availability depends on the robot
Log channelWhy it helpsInterpretation issue
Joint position and velocityCompare target tracking, reversal and oscillationEncoder zero, filtering and time alignment
Motor current or reported torqueStudy effort limits and load responseCurrent-derived torque is not a calibrated output-torque measurement
IMU acceleration and angular velocityCompare body rotation and vibrationMounting frame, gravity convention and bias
Foot contact or force estimateAlign touchdown and load transferMeasured, inferred and simulated contacts differ
Camera or motion-capture poseObserve body or object trajectoriesCalibration, occlusion and timestamp uncertainty
Control command and reception timesRecover the actual applied target and delayA sent packet is not proof of its execution time

Include units, coordinate frames, calibration files, firmware version and the exact controller. Synchronize clocks or estimate their offset before comparing curves. A logging delay can look like a slow actuator; fitting the motor to compensate for the logger would give the wrong correction.

Remote commands introduce another part of this timing chain. Read the teleoperation timing guide

Fit parameters the data can distinguish

Choose a parameter vector before fitting. Candidates include link mass and inertia, effective motor armature, viscous damping, dry friction, target delay, controller gains and contact properties. They are not interchangeable measurements. A single motion may admit several parameter combinations with nearly the same output.

Use bounded excitation suited to the apparatus and its safety constraints. Slow reversals can reveal a different part of the response from fast motion. A leg moving in the air can inform actuator dynamics but cannot identify the friction of its foot against a floor. Changing every parameter at once can hide that lack of information.

Replay recorded commands into the model from a matched initial state. Minimize a stated discrepancy and keep another set of trajectories out of the fit. The held-out set should include motion frequencies or loads that matter to the eventual task. Physically implausible parameter values are a reason to inspect the model and data, not an automatic calibration success.

PACE identifies actuator-related parameters

ETH Zurich’s PACE study calibrated the quadrupeds Tytan, ANYmal and Minimal. The base was fixed and legs moved without ground contact. Commands were replayed in simulation; CMA-ES minimized mean-squared joint-position error across 4,096 parallel environments. [1]

The fitted quantities were per-joint effective armature/inertia, viscous damping, Coulomb friction and joint bias, plus a global delay. Full-robot data were logged at 400 Hz; typical excitation lasted 20–40 seconds. ANYmal and Tytan both fitted a 7.5 ms delay. In-air validation preceded physical locomotion comparisons. [1]

This is a quadruped calibration study, not a humanoid trial. Its in-air procedure does not identify floor friction. Effective fitted inertia may absorb firmware compensation or link-model error; it is not a direct weighing of each link. The authors also caution that fitting PD gains can create nonunique solutions. [1]

ASAP learns a correction for a G1

Carnegie Mellon University and NVIDIA’s ASAP work used G1 trajectories with base pose and velocity, joint positions and velocities, and actions from motion capture and onboard sensing. A learned residual action model changed the simulated response, after which the main policy was fine-tuned. The residual was absent from final hardware deployment. [2]

Physical correction used four ankle degrees of freedom. The authors report 100 collected clips, 30 tracking-policy runs per task and ten minutes of locomotion data; these describe different collection units and must not be added into one trial count. Table V reports physical kick global mean per-joint position error decreasing from 61.2 to 50.2 mm. [2]

This is learned dynamics correction, not evidence that every mass or friction coefficient was identified. The paper reports overheating and damage to two robots during data collection. Its simulator-to-simulator success rates are separate from its physical tracking measurements. [2]

Compare trajectories with declared metrics

Measurement definitions to choose before collecting a comparison
MetricDefinition to recordWhat can make it misleading
Joint tracking errorRMSE of joint angle differences, in rad, over aligned samplesDifferent zero offsets or omitted joints
Body orientation errorRelative rotation angle between orientationsSubtracting raw Euler angles across wrap boundaries
Contact timing errorDifference between corresponding touchdown events, in sDifferent contact thresholds or clocks
Position and velocity errorCommon-frame displacement and speed differencesDrift or mismatched frame origins
Falls per trialCount under a defined fall criterion and denominatorRemoving aborted or assisted runs
Task completionCompleted tasks divided by all eligible attemptsChanging the completion rule after observing the results

Inspect curves as well as averages. A small mean error can conceal a short torque saturation event or a late foot contact that causes the next step to fail. Keep trial duration, speed command, payload and surface in the same record as the metric.

Update, evaluate and return to hardware

  • Save the old model and fit result with their hashes so the change can be reversed and compared.
  • Test the revised simulator against held-out physical logs before retraining.
  • Adjust the controller only after identifying whether the remaining error is in dynamics, observations or the task definition.
  • Evaluate the old and new controllers on identical simulated commands and seeds, including conditions outside the fitting set.
  • For physical trials, specify supervision, operating limits, intervention rules and a stop response before motion.
  • Stop a trial when its declared fault or limit criteria are met; retain that trial in the record.

A fitted model expires as evidence when relevant hardware, firmware or operating conditions change. Replacing a gearbox or changing a control filter can alter the response even when the visible robot and model filename stay the same.

Review the physical risk and conformity distinctions

Use a consistent trial record for the next evaluation. Download the empty trial log template

Why matching motor dynamics may still fail on hardware

A robotics developer reported policies that performed well in simulation but failed on physical Asimov legs. In that account the difference included CAN packet timing, IMU processing and embedded control-loop behavior. The model of a motor's inertia and friction cannot account for packet delay if the simulator assumes every command arrives at exactly the scheduled time. [3]

To isolate this problem, record command-send time, motor acknowledgement, feedback time and IMU sample time in the same clock domain. Reproduce the exact firmware sequence with varying transport delay and compare the physical joint trajectory. Fix timestamp alignment before changing the reward function or physics contact friction. [3]

A minimal actuator identification sequence

Another builder described testing a small prescribed sinusoidal gait on the real robot, tuning actuator parameters in simulation and then retraining the learned controller. A safer lab adaptation is to mount or support the limb, begin with a low-amplitude reference within joint limits and compare measured versus simulated position and current at the same timestamps. [Source ↗]

Fit only parameters the observed signal can distinguish. A repeatable delay should be measured from timestamps; a velocity-dependent torque loss needs velocity sweeps; and a mass mismatch needs mechanical or dynamic identification. Report the held-out reference trajectory after fitting so that a low training error is not mistaken for a validated controller. [Source ↗]

How to install the software mentioned on this page

Choose only the tools required for your project. The commands below describe development and simulation setup, not proof of compatibility with a specific physical robot. Match the versions in the original project and test offline before connecting hardware.

MuJoCo Windows, macOS, Linux

Create a Python virtual environment and install the official Python package. On macOS use mjpython for the interactive viewer when required.

Installation / setup commands

python -m pip install mujoco

Verify the installation

python -c "import mujoco; print(mujoco.__version__)"

Official instructions: https://mujoco.readthedocs.io/en/stable/python.html

Sources and verification

  1. PACE parameter calibration from measured trajectoriesBjelonic, Tischhauser and Hutter / ETH Zurich · Read 8 October 2026

    September 2025. Quadruped study. In-air calibration does not identify ground friction.

  2. ASAP physical trajectory collection and dynamics correctionHe and colleagues / Carnegie Mellon University and NVIDIA · Read 8 October 2026

    Sections III and IV, Table V and the limitations section. Version 3, April 2025.

  3. Asimov builder explains sim-to-real failures caused by I2C, CAN and controller timingr/robotics project account · Read 12 November 2026

    Claimed engineering experience; independent reproduction is not established.

Article history

Added a sourced engineering guide with version-specific references, practical resources and explicit evidence limits.

Added source-checked technical answers to concrete questions discussed in robotics forums and project issue trackers; separated proposed diagnostics from published measurements.