An Embodiment-Adaptive RL Pipeline for Robotics Locomotion with a Morphology Gap

by Jude Onyenze

Department of Mechanical Engineering, University of Texas at Dallas

The University of Texas at Dallas seal

Frames of Atlas (top) and DARwIn-OP (bottom) walking in Webots
Recorded frames of both robots walking in the Webots simulator. Top: Atlas, about 0.83 s between frames. Bottom: DARwIn-OP, 0.5 s between frames. The two sequences come from different runs.

One small controller, two very different robots

Training a learning-based controller for a new robot is getting harder to do without a large compute budget. We ask how far a small controller can get on a CPU alone.

We describe a single-file controller that uses only the Python standard library. It takes a humanoid in the Webots simulator from nothing to a walking gait: it calibrates joint sign conventions, standing height and lean, searches a parameterised central-pattern-generator (CPG) gait, hardens the gait against command noise, and optionally trains a TD3 residual policy on top. The same pipeline ran on the DARwIn-OP and the Boston Dynamics Atlas.

0 GPUsCPU only, standard-library Python
2.7×Atlas is taller than DARwIn-OP
104×peak leg torque, Atlas vs DARwIn-OP
3.06 mAtlas walked in 7.7 s (about 0.40 m/s)

The embodiment gap

What has to change when the body changes?

In the simulator Atlas stands 2.7 times higher at the root than the DARwIn-OP (0.921 m against 0.339 m). Its leg joints can exert about 104 times the peak torque seen in calibration (260 against 2.5 N·m), and its arm joints about 85 times (170 against 2 N·m). Even the hip sign convention differs. The gait periods the pipeline ended up using differ by only 1.4 times (0.64 s against 0.90 s).

Left: the two robots drawn to scale. Right: Atlas divided by DARwIn-OP on a log axis
Left: the two robots drawn with the same proportions, scaled by simulated root height (schematic). Right: Atlas divided by DARwIn-OP on a log axis. Torques are the peak values printed during calibration.

The pipeline

Every robot goes through the same stages. Hard robots take an extra curriculum.

  1. CalibrateRead the joint limits, enumerate per-leg joint-sign combinations, run a short standing trial for each, and scan crouch and lean to find a pose that stands.
  2. Search a CPG gaitHill-climb a parameterised gait of about 16 parameters, judging each candidate under small random command noise.
  3. Hard-robot curriculumWhen the ordinary search leaves a gait that falls, march in place first, then grow the stride through eight levels, each behind a pass-count gate.
  4. Polish and humanizeRaise the command noise step by step while the gait keeps up, then add human-like sway, arm swing and pelvis rotation.
  5. Residual learning (optional)Train a TD3 agent whose bounded correction (at most 0.06 rad per joint) is added to the CPG joint targets.
Pipeline diagram
The pipeline. Solid arrows: every robot. Dashed arrows: the hard-robot curriculum, entered when the ordinary search leaves a gait that falls or moves under 0.05 m.
The hard-robot curriculum
The curriculum for hard robots: a feedback-sign check, a march in place, eight stride levels each behind a pass-count gate, then the normal search, polish and humanize stages.

Videos

Screen recordings of the Webots 3D view, cropped to the simulation.

Atlas searched gait

DARwIn-OP saved gait

Keyboard control (Atlas)

The first 38 seconds of an 86-second recording. The saved CPG gait is driven from the keyboard: W/S for forward and back, Q/E for side steps.
The clips are from different runs, and the simulator playback speed shown in the recordings differs (about 4× for the DARwIn-OP clip and about 0.6× for the Atlas clip), so on-screen speed is not comparable between the two robots.

Results

Calibration found the right joint conventions on both robots

No joint signs were hand-tuned. On the Atlas the chosen sign combination scored −0.007 on the stand trial, against −0.48 for the nearest alternative and −7 to −9 for the rest. Both robots have a few near-miss combinations that also stand, so the score alone does not always single out one answer; the log adds a joint-limit hint to break ties.

Stand scores of all 16 joint-sign combinations on each robot, and noise tolerance of saved gaits
(a, b) Stand scores of all 16 joint-sign combinations on each robot, ranked (chosen one circled). (c) The largest command noise each saved or found gait survived. The Atlas tolerance varied between runs from ±0.002 to ±0.0075 rad, against ±0.006 to ±0.015 rad for the DARwIn-OP.

The curriculum produced a stable Atlas gait

A curriculum of march in place, then stride creep, then search produced an Atlas gait that covered 3.06 m in 7.7 s (about 0.40 m/s, 23.7 cm steps). It stayed up in 3 of 3 runs under ±0.003 rad command noise, after 296 candidate gaits (at least 38 simulated minutes; wall-clock time was not logged).

Distance of the best Atlas gait so far against candidates evaluated
Distance of the best Atlas gait so far against cumulative candidates evaluated (third run). Shaded bands are pipeline stages.

The residual RL stage did not help

The TD3 residual did not improve on the tuned gait on either robot. In a three-hour Atlas run the forward gait stayed up in 19 of 137 forward episodes, all in the first 44 episodes of the run. We report this as a negative result and discuss likely causes in the paper.

The Atlas residual run by gait direction
The Atlas residual run by gait direction. Left: episodes run and episodes that stayed up. Right: mean distance per episode.

What had to be set per robot

The Atlas needed a per-robot profile, search ranges and a hard-robot mode, so we call the method embodiment-adaptive rather than robot-agnostic.

Scope

All results are from the Webots simulator on two robots. We do not claim the approach transfers to hardware or to other simulators.

Abstract

Our motivation is cost and access. As GPU prices rise and AI models grow larger and more computationally intensive, training a reinforcement-learning or other learning agent for a new task is becoming harder for anyone without a large compute budget. We ask how far a small controller can get on a CPU alone. We describe a single-file learning controller that uses only the Python standard library, runs on a CPU or on almost any device, and takes a humanoid in the Webots simulator from nothing to a walking gait: it calibrates joint sign conventions, standing height and lean, searches a parameterised central-pattern-generator (CPG) gait, hardens the gait against command noise, and optionally trains a TD3 residual policy on top. We applied the same pipeline to two robots with a large morphology gap, the DARwIn-OP and the Boston Dynamics Atlas. Calibration found the correct joint conventions on both robots without hand-tuning; on the Atlas the chosen sign combination scored −0.007 against −0.48 for the nearest alternative and −7 to −9 for the rest. A curriculum (march in place, then stride creep, then search) produced an Atlas gait that covered 3.06 m in 7.7 s (about 0.40 m/s, 23.7 cm steps) and stayed up in 3 of 3 runs under ±0.003 rad command noise, after 296 candidate gaits (at least 38 simulated minutes; wall-clock time was not logged). The Atlas needed a per-robot profile, search ranges and a hard-robot mode, so we call the method embodiment-adaptive. The TD3 residual did not help on either robot: in a three-hour Atlas run the forward gait stayed up in 19 of 137 forward episodes, all in the first 44 episodes of the run. We report this as a negative result and discuss likely causes.

Code

The controller is pure Python (standard library only) and needs no GPU. It targets Webots R2025a. Setup and settings are in the repository README.

BibTeX

@misc{onyenze2026embodiment,
  author = {Onyenze, Jude},
  title  = {An Embodiment-Adaptive RL Pipeline for Robotics Locomotion with a Morphology Gap},
  year   = {2026},
  doi    = {10.31224/8874},
  url    = {https://doi.org/10.31224/8874},
  note   = {engrXiv preprint. Code: https://github.com/MrO9/An-Embodiment-Adaptive-RL-Pipeline-for-Robotics-Locomotion-with-a-Morphology-Gap}
}