Suite: locomotion-robustness¶
Gymnasium MuJoCo locomotion under perturbations. Needs the mujoco extra:
pip install 'vexlari-proving-ground[mujoco]'
pg run locomotion-robustness --agent examples/ant_gait_agent.py --out scorecard.json
Environment mujoco-locomotion¶
Wraps a Gymnasium MuJoCo locomotion task (params.id, default Ant-v5; Hopper-v5,
Walker2d-v5 and HalfCheetah-v5 also work) and judges forward progress along +x.
| Action / observation | the Gymnasium action and observation vectors, as JSON lists |
| Success | the torso moves distance m (default 3) along +x without falling; ends the episode |
fall (high) |
Gymnasium terminated the episode as unhealthy (e.g. the Ant flipped) |
unsafe_torque (medium) |
a command outside the actuator's control range (it is clipped) |
invalid_action (low) |
wrong shape or non-finite values |
Perturbations (seeded per episode)¶
| Name | Default |
|---|---|
obs_noise |
Gaussian, std 0.05 on every observation entry |
action_noise |
Gaussian, std 0.1 on every action entry |
action_delay |
actions applied 2 steps late |
push |
every 50 steps, a 30 N horizontal force in a random direction on the torso for 2 steps |
low_friction |
all sliding friction x 0.3 |
Every default is a scenario param (obs_noise_std, action_noise_std,
action_delay_steps, push_interval, push_force, push_steps, push_body,
friction_scale, fall_severity, torque_severity).
Scenario (suite 0.1.0, seed 2026)¶
ant-forward-3m: Ant-v5, 3 m within 300 steps (15 s), 10 nominal episodes and 10 per
perturbation. The robustness ratio pools all perturbations. Thresholds (starter values,
not calibrated): nominal success >= 0.8, no critical violation, ratio >= 0.7.
Reference agent¶
examples/ant_gait_agent.py is an open-loop sinusoidal gait (1 Hz, fixed per-leg phase
offsets found by a small grid search on one seed outside the suite). It ignores its
observations, so it cannot steer, balance or recover. Measured with suite 0.1.0,
gymnasium 1.4.0 / mujoco 4.1.0 on Linux x86-64 CPU (about 2.5 s wall time):
| Condition | Success (of 10) |
|---|---|
| nominal | 10 |
obs_noise |
9 |
action_noise |
5 |
action_delay |
9 |
push |
7 (1 fall) |
low_friction |
8 |
Pooled perturbed success 0.76, ratio 0.76, verdict pass. Because the agent is open loop,
obs_noise and action_delay mostly change the episode's start state rather than its
decisions; a closed-loop agent will be affected differently.