Skip to main content

Compsognathus longipes (Robot)

The Rev B robot has a 1.5856 kg allocated mass, 12 leg servos, a fixed head, an unpowered fixed tail, and 41 state observations (the last three are the Phase C body-relative command segment, zero under command_mode = "none"). Since policy interface r4 (decision D-D59) none of them reads the world heading or a target: 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, and its two foot channels read each sole's force against the floor, not its touch sensors, so a sole resting on the other foot is not read as support. Its single head camera, IMU and joint encoders preserve the hardware design direction; the mass allocations still need validation against real parts.

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 20 s: a forward cruise at 0.02-0.04 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 (6 weights) 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 been shown to clear them: the tracking width (0.01 m/s) lies under the estimated lateral sway of a stepping gait on this plant, and no walking controller exists to measure it (decision D-D62 (16)). A moving command is scored on the trailing mean of the last 1.50 s, a stride estimated from the leg length at half the cruise speed (decision D-D64); on a pendulum model of the sway that fits the tolerance for only about one in seven plausible strides at the home support width, so the risk stays. 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 dimension41
Action dimension / actuators12
Generalized coordinates (nq)19
Generalized velocities (nv)18
Compiled dynamic model mass1.6 kg
Plant contract revisionsPolicy r4 · physics r2 · visual r2
Modelenvironments/compsognathus_longipes/robot/assets/compsognathus_longipes_robot.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)—Hold an upright stance with foot support11Mreward ≥ 1,800; full-horizon episodes ≥ 95.0%; unsupported duty ≤ 0.02; unsupported duty 95% upper bound ≤ 0.02; ≥ 40 episodes/evaluation; 3 consecutive passes
recovery — Recoveryrecover (deliverable)1 — StancePilot: recover an upright stance after calibrated horizontal pushes3Mrecovery success LCB95 ≥ 0.5; paired Δ vs each required frozen null LCB95 ≥ 0.1; re-entry ≤ 40 steps + 20-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 command3Mcruise 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 (stance_quality/v1): The stance checkpoint clears the stance_quality/v1 gate: the unsupported-duty 95% upper bound and the full-horizon episode fraction meet the configured bounds over 40-episode evaluations, with the reward rail as a collapse floor only. The duty and full-horizon statistics are 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.

Training​

Set SPECIES = "compsognathus_longipes" and EMBODIMENT = "robot" in the SB3 training notebook. Its manifest (configs/compsognathus_longipes/robot/stages.toml) declares three nodes, all published deliverables: stance (stance), recovery (recover, warm-started from stance) and locomotion (walk, warm-started from stance). The non-contact target-reach hunt that followed walk was removed by decision D-D59. The notebook trains one behavior a session (decision D-D79): BEHAVIOR = "stance", the default, trains the stance alone, and BEHAVIOR = "recover" or "walk" trains push recovery or the walk on a certified stance from this run or TRUNK_FROM, stopping before it writes anything when no stance can be reused (decision D-D35 for "recover"; before it the stance label, then "stand", meant that chain here; since decision D-D38 "stand" is refused with a pointer to "stance").

pip install -e ".[train]"

# View the model (requires a display; on macOS, use mjpython instead of python)
python -m environments.compsognathus_longipes.scripts.view_model --embodiment robot

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

# The advancing stages in manifest order; reuse an earlier run's certified stance, train walk here
python -m environments.shared.train --species compsognathus_longipes --embodiment robot \
curriculum --algorithm ppo --trunk-from logs/<earlier_run> --output-dir logs/<new_run>

Actions are residual joint-position commands around a preloaded standing pose. The control rate is 50 Hz and the default episode horizon is 20 seconds. Simulator state, the pelvis velocity among it, is a privileged MLP input; the RGB camera is available separately for rendering. These policies are not onboard camera controllers.

The initial configurations and short integration runs establish training compatibility. They do not establish learned walking, behavior convergence or hardware readiness. The zero-action standing baseline should be measured before tuning. Every node is judged on its own and its verdict written to gate_verdict.json beside the handoff checkpoint; a later run reuses it only under the reuse rule (a passed verdict, the same task digest and plant, chained by the parent's checkpoint digest) — see Behavior Recipes.

See the model README for validation commands, and the Rev B robot design record for mechanical assumptions and sensor details.