Skip to main content

T-Rex Model

This 85.5 kg simulation models a scaled adult Tyrannosaurus rex. Its hip stands 0.877 m above the floor at home. The tibia measures 91% of femur length. A broad posterior skull, two-fingered forelimbs and tapering tail follow the simulated skeleton. Each foot rests on a plantar pad and three independently hinged toes. The smaller first digit sits above the floor.

Since policy interface r14 the T-Rex's observation reads no world heading: the policy sees the direction of gravity in its own body frame and its velocity relative to the way it faces, so turning the whole scene changes nothing it observes. Since policy interface r17 (decision D-D59) it reads no prey either, as the prey has left the scene. T-Rex trains on Stable-Baselines3 only.

The walk. Since decision D-D62 the locomotion node follows a live command, the first stage that does; the stance and recovery run no command. Each walk episode draws one request at reset and holds it for its whole 10 s: a forward cruise at 0.525-1.05 m/s along a heading up to 15° (0.26 rad) off the spawn heading, or, in about 15% of episodes, an exactly zero command that asks the animal to stand still. A Gaussian tracking term on the commanded velocity and yaw rate (weight 2.5) replaces the forward, heading and sideways terms; on a zero command a stand block (26 weights, the standing lean, foot stagger and center-of-pressure terms among them) pays the stance's reward weights, so zero means stand still rather than march in place; and the commanded speeds ramp from a quarter of their end values to the full range over the first 2M training steps. The walk is judged after training on its command_tracking/v1 panel (the cruise family's survival and success bounds, the stand family's hold, and the biped gait clause with its flight cap), on the checkpoint the gate's own statistic chose on a separate selection panel. Its bars are provisional, and no controller has yet passed the committed panel (decision D-D62 (16)). Because a walk sways within its stride, a moving command is scored on the trailing mean of the last 1.12 s, about one stride (decision D-D64): at a command it matches (0.633 m/s) the reference walk reads tracking quality 0.84 (0.13 a step on its own), clears the in-tolerance fraction and the speed ratio, and fails the heading settle on every episode, on its scripted start: the gate's trailing window first reads in tolerance at about 2.5 s, after the 2.12 s allowance. The later follow nodes will widen this distribution as the walk's exact continuation.

Generated specifications

These values are generated from the environment and compiled MJCF model. “Dynamic mass” is a simulator property, not an anatomical weight estimate.

GaitBipedal
Observation dimension59
Action dimension / actuators15
Generalized coordinates (nq)28
Generalized velocities (nv)27
Compiled dynamic model mass85.5 kg
Plant contract revisionsPolicy r17 · physics r12 · visual r6
Modelenvironments/tyrannosaurus_rex/anatomical/assets/tyrannosaurus_rex_anatomical.xml

Current curriculum configuration

The Stable-Baselines3 budgets and early-advancement gates below come from the current TOML files and can differ from older published runs. A stage also ends when its configured budget is exhausted. The recipe column names the behavior a stage belongs to and whether its checkpoint is a published deliverable; the warm-start column names the stage it starts from.

StageRecipeWarm-start fromObjectiveSB3 configured budgetSB3 early-advancement gate
1 — Stancestance (deliverable)—Learn to stand and balance without falling11Mseeds clean at all six headings (whole scene turned -90, -45, 0, 45, 90, 180°) LCB95 ≥ 0.8 over ≥ 40 seeds (settle 200 steps); at every heading, clean stance episodes LCB95 ≥ 0.8 over the same seeds; an episode is clean when it reaches the horizon with min_all_feet_support ≥ 0.98, max_touchdown_rate ≤ 0.25, max_window_displacement_m ≤ 0.1, min_foot_load_share ≥ 0.4, max_actuator_saturation_fraction ≤ 0.1, max_settle_airborne_substeps ≤ 0, max_settle_peak_floor_force_bw ≤ 1.5, min_foot_load_share_windowed ≥ 0.35, max_foot_contact_fraction ≤ 0.02, max_phantom_support_fraction ≤ 0.05, max_nonfoot_load_fraction ≤ 0.02, max_settle_stance_width_change_m ≤ 0.08, max_sole_tilt_deg ≤ 2, max_sole_corner_lift_m ≤ 0.004, min_sole_contacts ≥ 1.5, max_episode_yaw_change_deg ≤ 25, max_settle_touchdowns ≤ 2, max_sole_cop_fore_aft ≤ 0.8; full-horizon episodes ≥ 95.0% at every heading; hop-or-fall episodes ≤ 1 at every heading; reward rail ≥ 2,260 at every heading; reward rail ≥ 0.6 × the statue's at the same heading; handoff chosen by the gated statistic on a separate selection grid; verdict from the six-heading stance_heading_report.json on that pair (post-stage; fail-closed when absent, never the yaw-zero panel)
recovery — Recoveryrecover (deliverable)1 — StanceHold the stance against scheduled external pushes and recover from each3Mrecovery success LCB95 ≥ 0.3; paired Δ vs each required frozen null LCB95 ≥ 0.2; re-entry ≤ 100 steps + 50-step dwell; ≥ 40 episodes/evaluation; handoff chosen by the gated statistic on a separate selection panel; verdict from the frozen gate_resolution.json (post-stage; fail-closed when absent or stale)
2 — Locomotionwalk (deliverable)1 — StanceWalk: follow a forward command with heading hold, and stand still on a zero command8Mcruise episodes (a non-zero reset command) success LCB95 ≥ 0.6 and survival LCB95 ≥ 0.8 over ≥ 20 episodes; a cruise episode succeeds when it reaches the horizon, settles its initial heading within 1 s + |error| / yaw_rate_max + the stage's tracking window ([commands] tracking_window_s, decision D-D64) and holds it 1 s, stays in tolerance on ≥ 60.0% of its steps after the settle (its velocity and yaw-rate errors read on that window's means), makes ≥ 0.5 × the commanded speed along the heading after 2 s and passes the gait clause; stand episodes (an exactly zero command) over ≥ 5: ≥ 60.0% hold the stop (it settles, and holds on ≥ 60.0% of the steps after 1 s) and ≤ 0 fall; gait clause (gait_limbs 2): min_alternation_index ≥ 0.75, max_simultaneous_fraction ≤ 0.15, max_hop_flight_fraction ≤ 0.15, min_lead_swaps_per_stride ≥ 1, max_foot_contact_fraction ≤ 0.02, max_phantom_support_fraction ≤ 0.05, max_flight_fraction ≤ 0.05; handoff chosen by the gated statistic on a separate selection panel; verdict from command_tracking_report.json on that pair (post-stage; fail-closed when absent)

Backend-specific task-success semantics

  • Stable-Baselines3 — Walk command tracking (command_tracking/v1): The walk checkpoint clears the command_tracking/v1 gate (walk profile, decision D-D61), judged post-stage on the handoff its gated statistic chose on a separate selection panel. The walk follows a forward cruise command, a speed in [0.5, 1] x the model's cruise speed at a heading within 0.26 rad of the spawn's, drawn at reset and held for the whole episode, and about 15% of its episodes are stand episodes, an exactly zero command for the whole episode (decision D-D62). On the cruise family the one-sided 95% lower bounds on survival and on success meet the configured bounds: a cruise episode succeeds when it reaches the horizon, settles its initial heading, stays in tolerance on the configured share of its steps after the settle, makes the configured fraction of the commanded speed along the heading and passes the biped gait clause with its flight cap; on the stand family the configured share holds the stop and no episode falls. The families' counts and bounds are exported to summary.json from the admitted command_tracking_report.json (decision D-D61), and the catalog headlines the cruise success bound and the stand success fraction once a result summary is listed.

Per-deliverable success semantics

  • stance (1 — Stance) · Stable-Baselines3 — Stance quality at six headings (stance_quality_heading/v1): The stance checkpoint clears the stance_quality_heading/v1 gate (the six-heading certificate, decision D-D32), judged post-stage on the handoff pair: the 40 certification-panel seeds are rolled with the whole scene turned -90, -45, 0, 45, 90 and 180 degrees; at every heading the stance_quality/v2 decision on floor truth (horizon reached, no hop or impact in the settle window, both feet down and loaded, flat pads, no actuator held at its limit) passes against the statue rolled at that heading, and the one-sided 95% lower bound on the share of seeds clean at every heading meets the configured bound, with the reward rails as collapse floors only. The clean-seed count and its bound are recorded in gate_verdict.json but not exported to summary.json until a later phase (decision D-A9, deferred by D-B15), so the catalog names them with no value.
  • recover (recovery — Recovery) · Stable-Baselines3 — Recovery under pushes (recovery_quality/v1): The recovery checkpoint clears the recovery_quality/v1 gate, judged post-stage against the run's frozen gate_resolution.json: recovery-success LCB95 and the paired delta against each required frozen null meet the frozen thresholds, with re-entry inside the configured step budget and dwell. The statistics are not exported to summary.json until a later phase (decision D-A9, deferred by D-B15).
  • walk (2 — Locomotion) · Stable-Baselines3 — Walk command tracking (command_tracking/v1): The walk checkpoint clears the command_tracking/v1 gate (walk profile, decision D-D61), judged post-stage on the handoff its gated statistic chose on a separate selection panel. The walk follows a forward cruise command, a speed in [0.5, 1] x the model's cruise speed at a heading within 0.26 rad of the spawn's, drawn at reset and held for the whole episode, and about 15% of its episodes are stand episodes, an exactly zero command for the whole episode (decision D-D62). On the cruise family the one-sided 95% lower bounds on survival and on success meet the configured bounds: a cruise episode succeeds when it reaches the horizon, settles its initial heading, stays in tolerance on the configured share of its steps after the settle, makes the configured fraction of the commanded speed along the heading and passes the biped gait clause with its flight cap; on the stand family the configured share holds the stop and no episode falls. The families' counts and bounds are exported to summary.json from the admitted command_tracking_report.json (decision D-D61), and the catalog headlines the cruise success bound and the stand success fraction once a result summary is listed.

Published run summaries

These are historical experiment records. A result is not evidence for the current model revision unless its provenance is explicitly marked current and verified.

No run summary has been published for this model.

Curriculum​

The T-Rex manifest (configs/tyrannosaurus_rex/anatomical/stages.toml, schema mesozoic.stage-manifest/v2) declares three nodes and three recipes — stance, recover and walk — every one of them a published deliverable:

  1. stance (recipe stance; root, historical stage 1) — settle from a randomized spawn and hold a stable upright pose; gated on physical stance quality, not reward, because a zero-action "statue" earns nearly all the reward the undisturbed task pays. Since physics r8 the gate is stance_quality/v2: every episode of a 40-episode panel is judged on the floor's force under each foot (no hop at reset, both feet planted, pads flat and not stood on an edge, no actuator held at its limit, no turning away), and the stance certifies when at least 37 of 40 are clean and at most one hops for the whole episode or falls. Since 2026-10-11 (decision D-D32) the gate is the six-heading certificate stance_quality_heading/v1: the same panel is rolled with the whole scene turned −90°, −45°, 0°, 45°, 90° and 180°, every heading must pass that decision, and at least 37 of the 40 seeds must be clean at all six, so a stance that stands only at the heading it trained at fails. Since the maintainer's stance-landing decision of 2026-11-06 the stance trains the r10 "LTSB" recipe: mirror-symmetric PPO, a standing lateral-lean bonus, the leg target centred on the statue's settled pose, and penalties on the feet's front-to-back stagger and on each foot's centre of pressure leaving a band along the foot (mirror symmetry).
  2. recovery (recipe recover; warm_start_from = "stance"; no legacy number, addressed by id) — the same task plus scheduled external pushes (159.7 N for 0.20 s on the current plant, derived from the plant's own mass and stance geometry), warm-started from the certified stance checkpoint. Only a disturbance can certify active balance control; the recovery_quality/v1 gate judges per-shove recovery against frozen null baselines. It was frozen on 2026-08-28 with measured thresholds; the verdict comes from the stage directory's gate_resolution.json, written by freeze_recovery_gate.py.
  3. locomotion (recipe walk; warm_start_from = "stance", historical stage 2) — forward walking/running. Its edge is declared stance today; the plan is to re-declare it as recovery by a manifest edit once a recovery run passes the frozen gate (plan assumption A2) — nothing re-parents it on its own.

The head-contact "bite" hunt that followed locomotion (behavior, recipe hunt, historical stage 3) was removed by decision D-D59, so the chain ends at walk and BEHAVIOR = "hunt" is refused naming "walk". Its reward, termination and constructor arguments are gone from the environment, and since physics r12 and policy interface r17 (the same decision) so are the prey sphere, its observation channels and the 0.2 kg head-contact box the bite read.

Each recipe label names one node: the notebook's BEHAVIOR = "stance" trains the stance node alone, and BEHAVIOR = "recover" trains recovery on a certified stance (reused from this run or through TRUNK_FROM; one behavior a session, decision D-D79, so a session with no stance to reuse stops before it writes anything) and enforces the recovery verdict. Until decision D-D35 (2026-10-16) the recovery node was labelled stand too, so "stand" meant that stance-then-recovery chain here; since decision D-D38 (2026-10-18) the stance node's label is stance, its own id, and "stand" is refused with a pointer to "stance". Integer stage references keep their historical meaning everywhere (stage 2 remains locomotion). The catalog table above shows each node's recipe and warm-start parent, and the video cards below are keyed by stage id. See Behavior Recipes.

Anatomy​

The 2.88 m surface follows the broad ribcage, neck and five tail bodies as the animal moves. The three proximal tail bodies articulate, while the distal pair moves together. The pelvis settles about 0.7 degrees nose-down. The head and neck servos control carriage and the short arms carry two visible fingers apiece.

The femur and tibia measure 0.368 m and 0.335 m. At home the knee has a 135° interior angle and the ankle stands about 0.228 m above the floor. Digit III projects farthest, digit IV turns slightly farther outward than digit II turns inward, and the small medial hallux sits above the weight-bearing toes. Each foot's load signal combines the plantar pad and three digital touch sensors.

Previous and revised T. rex at the same scale, with closer views of the three weight-bearing toes

Diagnostic Metrics​

After each training stage the eval command reports:

MetricDescription
mean_forward_velocityAverage forward speed (m/s)
mean_pelvis_heightUpright stability (m)
mean_heading_alignmentcos θ between the body's heading and its forward reference ∈ [-1, 1]: the commanded heading on the walk, the spawn heading on a stage without a command

Reference walk​

The reference controller uses the model's 15 actuators. The two views show the same 16-second simulation on level ground. The force readouts beneath the feet are in body weights. In the final 12 seconds the animal averaged 0.638 m/s and made 23 alternating touchdowns. Both feet shared support for 21.5% of that interval.

Measured touchdown locations and left and right foot forces during the reference walk

The track is broad for its step length. Successive landings were a median 0.33 m apart forward and 0.27 m across. The plantar pads carried 82% of the vertical impulse and the three forward toes shared 18%.

Historical training videos​

These PPO recordings show earlier model revisions.

Published videos for Tyrannosaurus rex (Anatomical), where available. Artifact provenance is shown on each stage.

STAGE 1
stance · deliverable

Stance

Learn to stand and balance without falling

PPO · Stable-Baselines3 artifact · historical model · unverified · backend version not recorded. It is not evidence for the current model or stage config.

STAGE RECOVERY
recover · deliverable

Recovery

Hold the stance against scheduled external pushes and recover from each

STAGE 2
walk · deliverable

Locomotion

Walk: follow a forward command with heading hold, and stand still on a zero command

PPO · Stable-Baselines3 artifact · historical model · unverified · backend version not recorded. It is not evidence for the current model or stage config.

Usage​

# From the repository root. View the model (requires a display)
python -m environments.tyrannosaurus_rex.scripts.view_model --embodiment anatomical

# Measure standing balance or the reference walk on the level floor
python -m environments.tyrannosaurus_rex.scripts.audit_motion --mode stand --seconds 20 --warmup 9
python -m environments.tyrannosaurus_rex.scripts.audit_motion --mode walk --seconds 30 --warmup 4

# Reproduce the filmed 16-second reference walk and its foot-contact measurements
python -m environments.tyrannosaurus_rex.scripts.audit_motion --mode walk --seconds 16 --warmup 4 --noise 0.05 --seeds 0

# Train the stance node using its current TOML-configured budget
python -m environments.shared.train --species tyrannosaurus_rex --embodiment anatomical train --stage 1

# The advancing stages (stance, locomotion) in manifest order
python -m environments.shared.train --species tyrannosaurus_rex --embodiment anatomical curriculum --algorithm ppo

# Reuse an earlier run's certified stance; train walk in a fresh directory
python -m environments.shared.train --species tyrannosaurus_rex --embodiment anatomical curriculum --algorithm ppo \
--trunk-from logs/<earlier_run> --output-dir logs/<new_run>

# The recovery node, entering from a certified stance handoff (PPO-only): the pair
# 01_stance/models/handoff_choice.json names
python -m environments.shared.train --species tyrannosaurus_rex --embodiment anatomical train --stage recovery \
--algorithm ppo --load logs/<run>/01_stance/models/<handoff>.zip \
--load-mode initialize_next_stage

See Behavior Recipes for the notebook workflow.