Legged locomotion is the control of walking and running robots, and the area where sim-to-real reinforcement learning reached shipping products such as SpotSource 12. ETH Zurich's ANYmal line went from simulation-trained policies on hardware in 2019Source 1 to a 2.2 km alpine hike in 2022Source 3.

A yellow and black Boston Dynamics Spot quadruped walks along a gravel path through a forest.
Spot, the Boston Dynamics quadruped, outdoors in 2023. Boston Dynamics ships its learned locomotion policy to Spot by software update and reports fewer falls on slick and irregular ground.
Photo: Jonte / Wikimedia Commons. Licence: CC BY-SA 4.0.
Gaits of a four-legged robot
Walking to hopping: fewer feet down, less steady, more bounce
Adjust more
foot on the ground

beat 4 / 4 Walk lifts one foot at a time, trot a diagonal pair, hop all four at once.

Schematic, not measured: authored gait timings.

One robot can walk, trot or hop by changing which feet move together.
How this was made

Each gait is an authored timing pattern, not measured robot footfalls. A foot stays on the ground for a fixed share of the stride, its duty factor: walk 0.75, trot 0.5, bound 0.45 and hop 0.35. Each foot lands at its own point in the stride, its phase offset: the walk lands back left, front left, back right, front right a quarter stride apart; the trot pairs front left with back right and front right with back left half a stride apart; the bound lands the front pair, then the back pair half a stride later; the hop, which robotics papers call a pronk, lands all four together.

In robotics papers the feet are written LF, RF, LH and RH: left front, right front, left hind and right hind. The fewest feet down at any moment of the stride: walk 3, trot 2, bound 0, hop 0.

Feet on the ground at four moments of the stride:

  • Walk: 10% front right, back left, back right; 48% front left, front right, back left; 60% front left, back left, back right; 98% front left, front right, back right.
  • Trot: 10% front left, back right; 48% front left, back right; 60% front right, back left; 98% front right, back left.
  • Bound: 10% front left, front right; 48% none; 60% back left, back right; 98% none.
  • Hop: 10% front left, front right, back left, back right; 48% none; 60% none; 98% none.

The drawing is a robot on a treadmill wired to a gait recorder. While a foot is on the ground its pen inks its lane on the moving paper, front left at the back of the strip and back right at the front, so the strip is a footfall chart: a long bar is a foot that stays down most of the stride. The counter on the control box shows how many feet are down. Each step the robot takes 2 strides in one gait and stops at one moment of its stride, walk at 88% with 3 feet down, trot at 25% with 2 feet down, hop at 68% with 0 feet down; the paper keeps all three gaits side by side for the last step. The treadmill and recorder are an illustration, not a test rig.

The robot leaves out the bound, which sits between the trot and the hop: the front pair lands, then the back pair, so two feet are down for most of the stride, with a short leap in between.

The steps, in order:

  1. Walking: the feet lift one at a time, so three always stay on the ground.
  2. Trotting: diagonal feet move in pairs, so two are always on the ground.
  3. Hopping: all four feet push off and land together, so at times none touch the ground.
  4. One robot can walk, trot or hop by changing which feet move together.
< 4 min
Flat-terrain training
Rudin abstract; single GPU, separate flat run
< 20 min
Uneven-terrain policy
4,096 robots; i9-11900k + RTX A6000
78 min
Alpine hike
Miki 2022: 2.2 km; planner 76 min
3.03 m/s
Sand running
Choi 2023, feet fully buried

The quadruped lineage

Hwangbo and colleagues replaced simulated actuation with a learned network for ANYmal's series-elastic actuators, which predicts joint torque from current and past joint-position errors and velocities; policies trained with ideal or analytical actuator models failed to take a single step without falling. A separate recovery policy flipped ANYmal upright from nine tested configurations, after the authors relaxed joint-velocity constraints following the first hardware attemptSource 1.

Actuator network
Simulated motors must respond like the real ones
The simulator's motor model
Lit crank: the simulated motorIdeal motor · 10% average gap · falls at its first step

Illustrative response; outcome cited

A policy trained with ideal simulated motors fell at ANYmal's first step; a learned motor model let it walk.
How this was made
ANYmal's joints are series-elastic: a spring sits between the motor and the leg, so a commanded move arrives late and overshoots. Hwangbo and colleagues trained an actuator network that predicts each joint's torque from its recent position errors and velocities, using data from exciting the real legs and pushing the robot by hand, and used it in place of the motors in simulation. Policies trained with ideal or analytical actuator models failed to take a single step without falling.
The bench is illustrative. The left drive turns its crank through a spring, like the real joint; the right one is the simulator's twin, with a rigid coupling and the learned model as a cartridge in its bay. The response curves on the recorder show the shape of a springy motor, not ANYmal's measured response; running, the bench is slowed for the eye. The outcome under each model is the paper's.

With the ideal, instant motor model, the simulated motor differs from the real one by 10% of the move on average in this illustrative response, against 1% with the learned model; Hwangbo and colleagues report that a policy trained with an ideal motor model fails to take a single step on the real ANYmal without falling.

How far the simulated motor is from the real one
motor model in simulationaverage gap to the real motor (% of the move)on the real robot
Ideal, instant10falls at its first step
Learned from real legs1walks

Lee and colleagues trained a privileged RL teacher to supervise the actions and latent features of a temporal convolutional student, which reads two seconds of proprioceptive history, plus the command and current state, with no terrain map. Trained on rigid procedural terrain, ANYmal-B and ANYmal-C controllers crossed mud, snow, rubble and vegetation without environment-specific tuning, though a robot commanded off a cliff will walk off itSource 2. RMA, a base policy plus an adaptation module, deployed on the A1 robot without any fine-tuningSource 14; the sim-to-real module covers the distillation mechanics.

Miki and colleagues fed elevation-map height samples and proprioception to a GRU belief encoder whose learned attention gate controls how much exteroception enters; the student imitates a privileged teacher and falls back on proprioception when sensors mislead. The Etzel hike covered 2.2 km and 120 m of climb in 78 minutes against a planner's 76, with no falls but stops to reattach a shoe and swap batteries, and the authors list possible falls at occluded cliffs or stepping stonesSource 3.

Rudin and colleagues trained flat-terrain walking in under four minutes on one workstation GPU. Their deployment policy used 4,096 ANYmal robots, batches of 98,304 transitions (24 steps per robot) and 1,500 updates in under twenty minutes, with a game-inspired terrain curriculum that promotes robots that cross a tile, demotes those that fall short and loops hardest-level solvers back to a random levelSource 4. The released legged_gym repository (October 2021) is the Isaac Gym environment used to train ANYmal on rough terrainSource 5.

Terrain curriculum
Robots that cope get harder ground; strugglers get easier
easy groundterrain difficulty, level 1 to 8hard groundRound 4: 13 moved up, 2 moved downfilled moved up, rings moved down, small stayed

Illustrative robots; rules cited

Robots that cross their patch move to harder ground; those covering under half move back.
How this was made
Rudin and colleagues trained thousands of ANYmal robots at once on a grid of terrain patches of rising difficulty. A robot that walks across its patch is promoted to the next level; one that covers less than half the distance it was commanded to walk is demoted; one that solves the hardest level is sent back to a random level, so the population never collapses onto the top.
Here 20 illustrative robots, with seeded skills that grow each round, follow those three rules over 8 levels. The skills, luck and outcomes are invented for the drawing; only the rules come from the paper.

After round 4, the 20 illustrative robots train on levels 2 to 4 of 8; this round 13 crossed their patch and moved up, 2 covered under half the commanded distance and moved down, and 0 solved the hardest level and were sent back to a random one.

Where the robots train after each round
roundmoved upmoved downsent backhighest level
19002
28102
315003
413204
Round 4: 13 moved up, 2 moved down.
A red and grey ANYmal quadruped robot stands on a metal grate walkway inside an industrial facility, surrounded by pipes and machinery.
ANYmal, the ANYbotics quadruped behind the ETH Zurich locomotion lineage, on an industrial inspection floor. The actuator-network and terrain-curriculum results above all ran on this platform.
Photo: ANYbotics / Wikimedia Commons. Licence: CC BY-SA 4.0.

ANYmal Parkour's high-level policy selects walking, jumping, climbing and crouching skills, crossing obstacles at up to two meters per secondSource 15. With a cheap granular-media model in the training loop, Choi and colleagues' Raibo ran on beach sand at 3.03 m/s with feet fully buriedSource 6.

A gait is a timing pattern

A gait is a footfall-timing pattern: each leg's phase offset in the stride and its duty factor β\beta, the fraction of the cycle on the ground. Walk These Ways commands a gait as three timing offsets between foot pairs plus a stepping frequency: (0.5, 0, 0) trots, (0, 0.5, 0) bounds and (0, 0, 0) pronksSource 16. Push the dog and the humanoid in the figure below to see why fewer feet on the ground make balance harder.

Why are two legs harder than four?
Every body has a balance point, where its weight is centred. The dot marks it on a robot dog and a humanoid.
Every body has a balance point, where its weight is centred. The dot marks it on a robot dog and a humanoid.
Four feet give a robot a wide patch to balance over and two feet a tiny one, so a pushed humanoid must step.
How this was made
The steps in words
  1. Every body has a balance point, where its weight is centred. The dot marks it on a robot dog and a humanoid.
  2. The shaded patch spans the feet on the ground. While the spot straight below the dot stays inside it, the robot stays up.
  3. Both robots get the same push, and both balance points move the same distance forward.
  4. When walking, only some feet touch the ground. The patch shrinks, the spot often falls outside it, and each new step catches the fall.
  5. This patch is called the support polygon. Balance changes fast: one robot dog adjusts its legs 200 times a second to stay up.
A card of twelve sequential silhouette photographs of a horse and rider at a gallop, taken by Eadweard Muybridge in 1878, with printed text beneath the frames.
Eadweard Muybridge's 1878 sequence of a galloping horse caught all four hooves off the ground. A gait is such a footfall timing pattern; Walk These Ways commands it to a robot as phase offsets between foot pairs.
Photo: Eadweard Muybridge / Wikimedia Commons. Licence: Public domain.

In the MIT Cheetah 2 design, Park, Wensing and Kim plan stance time from stride length and speed, Tst=L/vdT_{st} = L/v_d, keep swing duration fixed, and modulate duty cycle by vertical impulse scaling. Stride length grows with speed only up to 3 m/s, so this is one controller's schedule. Roll instability ended the 6.4 m/s top-speed treadmill run, and at the highest speeds the robot partly leaned on the side wall. The minimum cost of transport, 0.47, came at 4 m/sSource 7.

Margolis and colleagues report record agility for the MIT Mini Cheetah with a learned controller, sustaining speeds up to 3.9 m/sSource 17, and periodic reward composition yields standing, walking, hopping, running and skipping on CassieSource 18.

From quadrupeds to humanoids

On Unitree's H1, H2O turns RGB-camera human pose estimates into real-time whole-body teleoperation: it fits and retargets AMASS motions, filters those a privileged imitator cannot track, and trains a tracking policy with domain randomization that outputs 19 joint-position targets to a PD controller. The robot side also uses motion capture for linear velocitySource 8.

On the G1 with fixed wrists, ASAP trains an ankle delta-action model from real rollouts, freezes it in simulation for fine-tuning, and deploys the policy without it. Its quantitative hardware comparison against Vanilla covers only kicking and LeBron's "Silencer"Source 9.

A causal transformer over proprioceptive history gave humanoids a fully learned controller that deployed zero-shotSource 19. Cassie's dual-history controller ran a 400-meter dashSource 20, a miniature soccer humanoid walked 181% faster and turned 302% faster than a scripted baselineSource 21, and Hiking in the Wild maps raw depth and proprioception to joint actions without external state estimation, at up to 2.5 m/sSource 22.

Joshua Aurand, Marco Hutter and colleagues at Disney Research Zurich and ETH Zurich (October 2026) built Walk Like This, which sets walking style from a reference clip and speed from a joystick: a diffusion model generates the styled motion and an RL policy tracks itSource 31. In simulation, a tracker trained on generated motion fell 0.001 times per minute while following the diffusion output, against 1.104 for one trained on the original motion capture, at the cost of larger tracking errorsSource 31. On a Unitree G1 the authors report about 4 hours of zero-shot deployment across styles without a failureSource 31.

Cassie, a bipedal robot with backward-bending legs and no upper body, walks along a forest path while a researcher follows with a handheld controller.
Cassie, the bipedal robot built at Oregon State University, walking in a research forest in 2017. Learned controllers later ran Cassie through a 400-meter dash and composed periodic rewards into standing, walking, hopping, running and skipping.
Photo: Oregon State University / Wikimedia Commons. Licence: CC BY-SA 2.0.

Jeon and colleagues compared rewards for a simulated 18-DoF MIT Humanoid running with arms fixed and ten leg joints controlled, holding PPO-ClipSource 23 and IsaacGym fixed. Ten runs per case converged to similar performance within 1,000 iterations, potential-based shaping was less sensitive across a 0.1 to 10 times weight sweep, and the practical variant set the shaping discount to 1 against PPO's 0.99, which the authors say sacrifices policy invarianceSource 10.

Industrial adoption

Boston Dynamics says Spot's earlier controller evaluated dozens of MPC horizons with distinct step-trajectory references in under a millisecond and picked the highest-scoring output. Its 2024 account adds a learned policy, keeps the model-based controller for what it does well and drops the parallel MPC instances. Spot now falls less, the company reports, including on extremely slick or irregular surfaces, without a numerical fall rate, and a separate research architecture climbs boxes over 70 cmSource 12.

Boston Dynamics benchmarks policies in simulation, then on an internal Spot robustness fleet running 24/7 for over 2,000 cumulative hours a week; falls reproducible in simulation are recreated for training or evaluationSource 12.

On 19 March 2025 the RAI Institute described an Atlas policy that tracks retargeted human motion, each maneuver built from about 150 million simulator runs and transferred zero-shotSource 11. Boston Dynamics later said Atlas practiced "for millions of hours in simulations in parallel", with only rotary actuators that are easier to represent in simulationSource 24.

In August 2025, Boston Dynamics and Toyota Research Institute reported Large Behavior Models on Atlas: a 450M-parameter diffusion transformer trained with flow matching on curated teleoperated demonstrations from hardware and simulation. It controls the full robot at 30 Hz, predicting 48 actions (1.6 seconds) per inference and most often executing 24 (0.8 seconds at 1x speed), and the neural policies share its control interface with an MPC-based teleoperation systemSource 13. Boston Dynamics unveiled the product version of Atlas at CES on 5 January 2026 and committed its 2026 fleets to Hyundai and Google DeepMindSource 30.

Agility reports that Digit's whole-body control model, an LSTM with fewer than one million parameters, trains in Isaac Sim for decades of simulated time over three or four days and transfers zero-shotSource 25. Figure reports that its S0 whole-body policy, now conditioned on camera perception, traverses real-world stairsSource 26.

Limits of the lineage

Contact-rich manipulation is harder to simulate: Acosta and colleagues call dynamic contact the computational bottleneck for most simulationsSource 27, and the locomotion-manipulation comparison explains why. Eureka's LLM-written rewards beat human experts on 83% of 29 environmentsSource 28, and DrEureka writes both reward functions and domain-randomization distributions, getting a quadruped to walk atop a yoga ballSource 29.

Lukas Amiet, Marco Hutter, Cesar Cadena and colleagues at ETH Zurich (October 2026) had an ANYmal D quadruped solve a Rubik's Cube with its feet; the cube is 0.4 m on a side and weighs 4.6 kg, and the robot flips it or pins it with one foot while the other pushes a layer roundSource 32. Skills trained with privileged RL and distilled into policies that read onboard depth and proprioception completed all three attempted hardware solves without intervention, each about 30 steps over 8 to 9 minutesSource 32. In separate skill trials both flips succeeded 15 of 15 times, while the counterclockwise layer turn succeeded 13 of 15 times and the clockwise turn 10 of 15Source 32.