TECHNIAHQROBOT / INDEPENDENT ROBOTICS REPORTINGENGLISH EDITION / 20 November 2026
Articles

How Sim-to-Real Works in Humanoid Robotics

Follow the model, policy and hardware checks behind sim-to-real locomotion, with a measured OP3 walking study and explicit limits.

Transfer a controller, not an animation

In sim-to-real locomotion, engineers design or learn a controller using a simulated body, then test that controller on a physical robot. At each control update it receives observations and produces commands. The physical motors and ground must respond closely enough for the next observation to remain useful.

Consider a left foot lifting while the right foot supports the body. In simulation, the policy has learned how ankle and hip commands affect the next landing. A slippery floor or delayed motor response changes that relationship. Replaying the same joint targets does not recreate the same forces.

For the mechanics of support and foot placement, Read how one walking step is controlled. This guide focuses on transferring the controller that coordinates them.

Build a model that can be checked

Model choicePhysical question it must answer
URDF or MJCF descriptionAre the links, axes and joint order correct? MJCF also describes engine-specific simulation elements.
Joint limitsWhich positions and velocities are allowed, and what happens near a stop?
Mass and inertiaHow much effort changes a link’s translation and rotation?
Actuator dynamicsHow do targets, gains, torque limits and delay become joint effort?
Joint frictionWhat resistance appears during slow movement and reversal?
Ground contactWhere does a foot touch, what load can it support and when does it slip?
Sensor modelWhat are the observation frame, noise, bias, sample interval and delay?
Physics timestepHow often are the mechanical state and contact constraints updated?

[Source ↗] [Source ↗]

Keep visual geometry separate from collision and inertial geometry. A detailed foot mesh can still use an approximate contact shape. For a controller that relies on toe or heel contact, that approximation belongs in the experiment record.

The MuJoCo tutorial makes these fields concrete. Inspect an actual G1 model and its recorded joint response

Train the observation-to-action mapping

An observation might contain body rotation, gyro readings, joint positions and velocities, a requested walking velocity and recent actions. A simulator also knows quantities that a physical robot may not measure. Giving the deployed actor perfect base velocity without an estimator would hide a transfer requirement.

The action space must match the controller architecture. Joint-position offsets followed by PD drives are different from torque commands. An offset vector needs a joint order, a scale and a reference pose. The observation normalization used during training must travel with the policy checkpoint.

Reinforcement learning repeatedly collects trajectories, scores them and updates policy parameters. Velocity tracking can reward useful movement; penalties can discourage extreme joint motion or foot slip. Resets expose different starting states. A fall termination limits an episode, while a timeout truncates a still-valid trajectory. Reward design does not itself prove a safe motion.

For the learning methods themselves, Compare reinforcement learning with imitation. The walking tutorial defines a specific policy and evaluation workflow.

Build a walking experiment with separate evaluation trials

Vary the conditions for a reason

Illustrative training choices, not a universal parameter recipe
VariationPossible mismatch addressedWhat to retain in the record
Link mass or payloadUncertain body parameters or carried loadWhich links changed and whether the range is physically plausible
Foot frictionDifferent shoe and floor interactionBoth the coefficient range and the contact model
Observation or command delaySampling, networking or motor response lagDelay units, distribution and where it enters the loop
Actuator propertiesDifferent response, damping or available effortParameter bounds and the saturation rule
Pushes and surface changesDisturbance recovery and foot placementTiming, direction and whether a push is a force or a state change

Randomization asks one controller to work across a distribution of models. It does not measure the physical distribution. Excessively broad ranges can make the task impossible; narrow ones can miss the hardware. Keep held-out conditions that were not used for tuning, and report their outcomes separately.

A walking result with its denominator

Google DeepMind’s 2024 study trained 20-joint ROBOTIS OP3 miniature humanoids in MuJoCo, using dynamics randomization and perturbations. Policies issued joint-position targets at 40 Hz. Physical observations combined proprioception with external motion capture. [1]

Haarnoja and colleagues, Table 1 and supplementary walking protocol
Physical walking measurementLearned policyScripted baseline
Episodes per controller1010
Episode duration10 s10 s
Speed measurement intervalSeconds 2–7Seconds 2–7
Mean speed0.57 m/s0.20 m/s
Standard error0.003 m/s0.005 m/s

[1]

These are measured task means, not product top speeds. The separate turning comparison reran failed attempts until ten successes; the learned policy fell in three of thirteen attempts. The study’s limits include miniature scale, motion capture, joint wear, recalibration and sensitivity to battery charge. It does not establish full-size workplace readiness. [1]

The authors provide Open the authors’ released data and notebooks. Those notebooks were not executed for this guide.

A larger robot raises different model questions

UC Berkeley researchers trained a history-based Transformer controller for Agility Robotics Digit in randomized Isaac Gym environments. Their model approximated closed-chain rods with stiff virtual springs. That is a concrete example of adapting training around an engine’s mechanical representation. [2]

The paper’s comparative ten-run success rates on slopes, steps and unstable ground are simulator evaluations. Physical unstable-plank trials were omitted because of damage risk. A hardware video and a simulated trial table should not be merged into a claimed physical success rate. [2]

For another full-size platform, Read the Atlas hardware analysis. Its specifications are separate from either research result here.

Check the interface before energizing a robot

  • Match the policy to the exact robot variant, sensor layout, actuator mode and firmware.
  • Check joint order, signs, units, quaternion convention, target offsets and limits with recorded data first.
  • Measure the actual observation and command timing. Define handling for stale samples and missed updates.
  • Verify available effort and temperature limits through the manufacturer’s documented interface.
  • Use supervised, controlled trials with a defined test area, fault response and stop criteria appropriate to the machine.
  • Record every attempt, including interventions, aborted runs and recovery, before widening the task.

These are engineering checks, not a complete commissioning or conformity procedure. Simulation can expose faults cheaply, but it cannot verify an untested stop circuit, an incorrect cable connection or a battery fault on a physical unit.

Read the machine safety and conformity guide

Keep the remaining gap visible

An ideal rigid link does not reproduce structural flex. A friction coefficient does not fully describe a worn sole. Motor heating can reduce available effort after the first few minutes, while sensor bias or calibration drift changes the observations. Network delay and camera processing add timing differences that may not appear in a basic mechanics model.

When the robot diverges, compare aligned logs before changing rewards at random. Determine whether the mismatch is in sensing, the actuator response, contact or the policy’s decision. A good fit on one motion should be tested on another.

Follow the return loop from physical logs to a revised simulation

Which simulator mismatch should you test first?

Research developers report failures when a locomotion or manipulation policy crosses from simulation to hardware. Begin by identifying the failure's first observable stage: incorrect camera frame, different actuator response, late command, unexpected contact force or wrong object pose. A vague statement that the policy did not transfer gives little direction for repair. [Source ↗] [3]

For a joint-control comparison, run the same commanded low-risk trajectory in the simulation and on a secured robot, then align measured angles and velocities by timestamp. For a vision problem, compare image exposure, camera intrinsics and pose errors. Change one discrepancy at a time before re-training. [Source ↗]

Why a lower physics timestep does not always solve instability

If a robot falls or explodes numerically, first inspect mass scale, collision meshes, initial interpenetration, motor limits and actuator targets. The official MuJoCo modeling reference lists these as checks before contact solver tuning. A tighter timestep increases computational cost and cannot correct an incorrect joint axis. [Source ↗] [3]

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

NVIDIA Isaac Gym (legacy) Legacy Linux environment

This is the older Isaac Gym release, not Isaac Lab. Obtain the original package if available and recreate the Python, CUDA and driver versions specified by the archived project. For new projects consider Isaac Lab. Do not install an unrelated package with a similar name.

Verify the installation

Run the simulator's included example after checking its release notes.

Official instructions: https://developer.nvidia.com/isaac-gym

Sources and verification

  1. Learning Agile Soccer Skills for a Bipedal Robot with Deep Reinforcement LearningHaarnoja and colleagues / Google DeepMind · Read 8 October 2026

    Science Robotics, 2024. Table 1 and supplementary walking protocol distinguish physical measurements from simulation.

  2. Real-world humanoid locomotion with reinforcement learningRadosavovic and colleagues / UC Berkeley · Read 8 October 2026

    Science Robotics, 2024. Comparative ten-run success rates are simulated, not a physical trial denominator.

  3. MuJoCo issue: unexpected foot contacts and unstable simulationsMuJoCo project issue discussion · Read 12 November 2026

    One user's observed failure; not a universal benchmark.

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.