Skip to content

The first exam for code agents in the physical world: frozen robot tasks from many benchmark suites, each answered with a program and verified in a separate sandbox. Runs on Harbor.

3.5 KB
Raw Blame

mujoco_playground_spot_joystick_gait_tracking-privileged

Benchmark MuJoCo Playground
Mode privileged
Twin mujoco_playground_spot_joystick_gait_tracking-standard
Simulator / robot mujoco / boston-dynamics-spot
Family / instance mujoco_playground/SpotJoystickGaitTracking / seed 0
Oracle full
Agent time budget 1800 s; tokens: protocol default (docs/protocol/running.md "Official runs")
Base image ghcr.io/mll-lab-nu/efe:mujoco-0.1.3

Task

MuJoCo Playground SpotJoystickGaitTracking (Boston Dynamics Spot), rebuilt in plain MuJoCo from Playground's scene files: Make Boston Dynamics Spot follow the joystick command schedule for the whole 20 s episode with the commanded gait (the feet's swing pattern, frequency and height) without falling over. For 20 s the robot gets a joystick command schedule (5 segments: planar velocity and yaw rate in its own frame) and must track it without falling over. Its feet must follow a pace gait. The deliverable is one replayable trajectory of joint position targets (/app/output/trajectory.npz, (T, 12), T = 1000 (the whole schedule)).

Difficulty

Velocity tracking for 20 s: the agent has to make a 12-joint quadruped walk (a gait, not one motion) and steer it through the schedule's changes of speed, direction and turning rate, and an open-loop trajectory of 1000 steps only works if it is computed against the simulator. On top of the velocity commands the feet have to follow a commanded gait: which feet swing together, at a fixed frequency and to a commanded height.

Reference solution

A policy trained here on Playground's SpotJoystickGaitTracking reward (PPO on the CPU; the training code is not in the image), with the command added to its observation (SpotJoystickGaitTrackingCmd: Playground's observation leaves the command out, so a policy trained on it marches in place and cannot track the joystick its reward asks for), its targets recorded: worst segment errors 0.183 m/s and 0.136 rad/s, foot height 0.038 m. Replayed by solution/solve.sh (solution/oracle.npy, 1000 rows); the rows are float32-exact, so the standard twin's client executes the same targets. Re-verified: two fresh-process replays succeed and end in the same state.

Verification

tests/grade.py in a separate sandbox without network: two replays, each in a fresh process, from the verifier's own copy of the instance (tests/instance.json; the start state is checked against its hash on every load); pass iff both succeed and end in the same state (deterministic). Oracle: success, worst segment errors 0.183 m/s and 0.136 rad/s. nop: no trajectory, reward 0.

Resources

Caps per container (PROTOCOL §6).

Container CPUs Memory Processes GPU memory Disk
main (the agent's) 4 10 GiB 2048 no GPU 10 GiB
verifier 4 8 GiB no cap no GPU no cap
  • GPU: not needed.

Details

Upstream MuJoCo Playground @ 4057c14 (Apache-2.0): locomotion/spot/xmls/scene_mjx_feetonly_flat_terrain.xml; MuJoCo Menagerie @ 1b86ece (boston_dynamics_spot); simulated in MuJoCo 3.3.7 on the CPU
Instance Playground's reset with jax.random.PRNGKey(0) and Playground's command process over the 1000 steps; chosen (seed 0; the first candidate)
Actions 12 joint position targets per control step (0.02 s of simulated time); kp = 400 N m/rad, joint damping 10 N m s/rad, plus the actuators' own damping of 20 N m s/rad
Resources 4 CPUs, no GPU (CPU physics, EGL or OSMesa rendering)