Zealot G1 locomotion
Legs-only locomotion policies for the Unitree G1, trained in zealot on the nexus GPU physics engine. 12 leg actions from a stacked-5-deep observation frame; the upper body is PD-held, so these compose with an arm teleoperator.
Two observation widths ship here. v19/v21 are 45-dim. v24 is 48-dim: the
same 45 slots in the same order, plus body-frame base angular velocity
(gyroscope) appended as slots 45-47. The LeRobot controller sniffs the width
from actor.w_0 and feeds the right frame, so both load without a flag — but
they are not interchangeable weights.
v30 (2026-08-28) — g1_v30_final50k / current g1_walk_latest
First release of the 79-dim observation generation: the frame adds the 13 PD-held upper-body joint TARGETS and their finite-diff velocities (slots 53..79), so the legs anticipate arm motion instead of merely absorbing it. Trained 50k iters on the mirror-tiled terrain strips (laterally endless — no flat ground within an episode's reach) with LAFAN1 arm-clip playback as a moving-mass disturbance, under the reworked reward (bent-knee economics, touchdown-impact cost, lateral pose penalty incl. ankle roll) and the layered fault system (post-reset grace, 2-step transient debounce, per-episode forgiveness budget; slams/dwell/falls terminate).
Terrain curriculum 13.0 (max row 19) at 50k; 20 s MuJoCo sim2sim clean, including with an arm clip playing; zero terminations in an 18 s level-12 rollout. Needs a 79-dim-aware consumer (zealot master; the web demos support it since the obs-shader extension).
Run with the LeRobot controller:
ZEALOT_POLICY_FILE=g1_v19_iter2740.safetensors \
lerobot-... --robot.type=unitree_g1 --robot.controller=ZealotLocomotionController
The controller (ZealotLocomotionController) fetches from this repo by default.
Checkpoints
| file | iter | obs | notes |
|---|---|---|---|
g1_v19_iter2740.safetensors | 2,740 | 45 | stable fall-free walking in MuJoCo, Genesis and Isaac |
g1_v21_iter4560.safetensors | 4,560 | 45 | the checkpoint actually flown on hardware |
g1_v21_iter21k.safetensors | 21,000 | 45 | longer-trained v21 |
g1_v24_iter32780.safetensors | 32,780 | 48 | speed tracking to 0.8 m/s, fall-free in all four engines; cannot turn |
g1_v26_iter42290.safetensors | 42,290 | 48 | best of the campaign — turns 75% of commanded, fall-free in all four engines, v21 speed bars |
v26 (48-dim, gyro) — recommended
The first checkpoint in this campaign that turns on command. v24 could not: a +0.4 and a -0.4 yaw command produced the same near-zero rotation in every engine. The fix was the width of the angular tracking kernel, not the observation — at sigma 0.1 against a +/-0.6 rad/s command range, a policy sitting at the measured 0.06 rad/s scored exp(-(0.4-0.06)^2/0.1^2) = 1e-5 on a 0.4 command, i.e. no gradient to climb. Widening to 0.3 gave it a slope.
Turning, nexus (source engine), commanded 0.4 rad/s: +0.30 rad/s (75%). Cross-engine yaw differential (yaw+ minus yaw-), all positive and correctly signed: MuJoCo +0.18, Genesis +0.30, Isaac +0.09 — versus v24's best reading of +0.12 / +0.17 / +0.05 and a campaign-mean that was indistinguishable from zero.
Speed, MuJoCo, 15 s clips, signed body-frame forward velocity:
| command | v26 | v21 bar |
|---|---|---|
| stand | +0.01 | +0.01 |
| 0.2 m/s | +0.22 | +0.22 |
| 0.4 m/s | +0.38 | +0.36 |
| 0.8 m/s | +0.69 | +0.70 |
2 falls in 28 runs across nexus / MuJoCo / Genesis / Isaac at 7 commands. Trained on a 15 deg pyramid slope (v24 used 7 deg) with the terrain curriculum settling at the same level, so it handles twice the grade at equal difficulty. Posture: 0.83 m standing, ~20 deg stand knee off the endstop, cost of transport ~0.8 walking.
Known limitations
- 0.8 m/s is extrapolation. Training sampled vx in [-0.5, 0.5]; the 0.8 column above is outside the trained range for v26 and for every earlier checkpoint, including the v21 bars it is compared against.
- Foot clearance ~80 mm. Fine on rough terrain, not enough to step over a discrete obstacle taller than that.
- Arms. v26 trained with the upper body held at the model rest pose, which for this MJCF is a 73 deg elbow bend — forearms OUT IN FRONT, not down. The harnesses and the deploy controller hold elbow = 1.28 rad (arms along the body). Measured cost of the mismatch on v26: +0.013 m/s (MuJoCo), +0.058 (Genesis), +0.042 (Isaac) — small, but it is a real systematic offset, and later checkpoints train with the arms down.
v24 (48-dim, gyro)
Trained at a 0.82 m base-height target with the gyro in the actor observation, a widened +/-0.6 rad/s yaw command range, and 25% arc-biased command sampling. Compared with v21 it tracks forward speed properly instead of collapsing to a single gait, and it plants the sole flat rather than riding a joint limit.
Cross-engine sim2sim, 15 s clips, signed body-frame forward velocity, one checkpoint (iter 23,560) across all four engines -- 28 of 28 runs fall-free:
| command | nexus (source) | Isaac (PhysX) | MuJoCo | Genesis |
|---|---|---|---|---|
| stand | +0.18 | +0.11 | -0.05 | +0.13 |
| 0.2 m/s | +0.39 | +0.21 | +0.13 | +0.32 |
| 0.4 m/s | +0.53 | +0.29 | +0.28 | +0.48 |
| 0.8 m/s | +0.96 | +0.47 | +0.60 | +0.70 |
At iter 32,780 MuJoCo reaches v21's bars: +0.17 / +0.35 / +0.66 for commands 0.2 / 0.4 / 0.8 (v21: +0.22 / +0.36 / +0.70), zero falls.
Foot posture, measured from foot-box corner heights (not inferred from the ankle angle): the sole is flat. Standing, mean foot pitch -0.9 deg with 96-100% of stance frames within 5 deg and no frame past 10 deg toe-down; walking at 0.4 m/s, +0.1 deg mean, 92-96% flat.
Source-engine posture at iter 32,780: base height 0.816 m standing, stand knee 31.7 deg, swing knee 40.0 deg, 0% of frames near the knee limit, cost of transport 0.92.
Validated (v19)
Cross-engine sim2sim, 10 s clips, signed body-frame forward velocity:
| command | MuJoCo | Genesis | Isaac (PhysX) |
|---|---|---|---|
| 0.2 m/s | +0.80 (0 falls) | +0.82 (0) | +0.67 (0) |
| 0.4 m/s | +0.86 (0) | +0.85 (0) | +0.80 (0) |
| 0.8 m/s | +0.85 (0) | +0.71 (0) | +0.82 (1 fall) |
Also verified end-to-end in LeRobot's own G1 MuJoCo simulation over DDS: 11.4 m in 10 s, upright, 556 control steps at 50 Hz.
Limitations — v24
- Turning does not work. A +0.4 rad/s command and a -0.4 rad/s command produce near-identical yaw in every engine tested, including the source engine. The angular-tracking reward stayed at ~4% of total for the whole run, so the policy was never paid to turn. Do not command yaw and expect rotation. (v22 demonstrated the gyro can deliver turning, at +0.38 on a +0.4 command; v24 did not reproduce it.)
- Standing is a slow creep, not a stop. ~0.18 m/s in the source engine at a zero command; Isaac and MuJoCo read lower but non-zero. Releasing the stick does not stop this policy -- phase duration is the stop.
- Speed transfers at roughly 50-70% of source. nexus reads +0.96 at a 0.8 command where the foreign engines read +0.47 to +0.70. Size hardware expectations from the foreign engines, not from nexus.
- Stance is narrow. Minimum foot separation ran 8-9 cm over several evaluations (0% actual crossing). Foot clearance sits at ~90 mm against a 110 mm target.
- Mid-run checkpoint (32,780 of 50,000). Gantry-suspend first.
Limitations — v19
- Speed control: every forward command between 0.2 and 0.8 m/s produces ~0.8 m/s — the command range collapsed to a single gait (a reward-economy artifact; the gait-clock term earned 47% of positive reward and saturated).
- Turning: commanded 0.5 rad/s yields ~0.08. The training range was only ±0.2 rad/s, so anything larger is extrapolation.
- Standing: drifts ~0.45 m/s with occasional falls in foreign engines. Walking is what this checkpoint delivers.
- Early checkpoint (2,740 of 50,000 planned). Not a deployment candidate — first hardware bring-up should be gantry-suspended.
Contract
obs45 = [last_action(12, lag-2), cmd(4), q−default(12), qdot_finite_diff(12), projected_gravity(3), sin/cos(2πφ)], ×5 history. Welford normalizer ships
inside the checkpoint.
obs48 (v24) = the identical 45 slots in the identical order, then
base_ang_vel(3) in the body frame at slots 45-47 — straight from the
IMU gyroscope, no rotation applied. (Getting this frame wrong is silent and
expensive: rotating it by −yaw as if it were world-frame made every gyro-era
policy spin and fall in MuJoCo while the source engine looked clean.)
action_scale is 0.5 for EVERY checkpoint here (v19, v21, v24).
Target = clamp(default_pos + 0.5·action, joint range).
Correction. An earlier revision of this card said v24 used 0.25. That was wrong. The base
unitree_g1()robot spec in the trainer does say 0.25, but every G1 generation trains withBIPED_ROBOT=g1_29dof_agile, which chains throughunitree_g1_agile()— and that overwrites every joint with 0.5 as one of its AGILE deltas. Running these weights at 0.25 halves every commanded joint excursion, which on hardware is a policy that cannot hold itself up. If you pulled this card before 2026-08-02, re-check your value.
PD gains are part of the contract: hip 100/2.5, knee 200/5, ankle 40/2.0 (the v19 "ankle package" — unitree_rl_gym's deploy ankle pair, which deliberately breaks AGILE actuator parity). Running these weights at other gains is running a different robot.
Joint velocity must be finite-differenced from successive position readings,
not taken from the encoder's dq: the policy never saw encoder velocity, and at
50 Hz the two differ by more than 1 rad/s when the stance dithers.