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.
MuJoCo Playground · Go1Getup — frozen episode
Task: The Unitree Go1 has fallen over. Make it get up and stand upright at its standing height.
You control the Unitree Go1 quadruped in one episode of MuJoCo Playground's Go1Getup environment, rebuilt in plain
MuJoCo 3.3.7 from Playground's own scene files (Apache-2.0, commit 4057c14) and the robot from MuJoCo Menagerie. The
episode is frozen: it starts the same way after every reset (Playground's reset with seed 5), and you may reset
as often as you like. Your deliverable is one open-loop trajectory, not a general policy.
The episode
Playground's reset dropped the robot from 0.5 m in a random orientation with random joint angles and a random base velocity, then let it settle for 0.5 s with its joints held: at t = 0 it lies with its trunk tilted 110 deg from upright. You have 300 control steps (6 s).
Success
Success iff the trajectory (at most 300 rows) ends with 25 control steps in a row (0.5 s) after each of which the trunk is upright, tilted at most 10 deg (the angle between the IMU frame's z axis and world z), and the IMU is at least 0.22 m above the floor (the Go1 stands at 0.255-0.26 m; lying down is below 0.15 m). End the trajectory once that holds. s.check() reports the last tilt, height and success.
Deliverable
/app/output/trajectory.npz with actions: float64 (T, 12), one row per control step (0.02 s): absolute targets of
the 12 joint position actuators, in s.joint_names order (FR, FL, RR, RL legs, each hip (abduction), thigh (hip pitch), calf (knee)), in radians; 1 <= T <= 300. Values
outside the actuator ranges (s.lower, s.upper) are clipped. s.save_trajectory(rows) writes it. Also leave the
script that produced it at /app/output/gen.py. Save a working trajectory as soon as you have one and overwrite it as
you improve it: whatever is in /app/output/ when your time is up is graded. The tooling logs your sessions and
resets (cost accounting, not graded).
Tooling (installed; python from any directory)
from rcb_quadruped import Session
s = Session("/app/instance.json") # the frozen episode at t = 0 (checked against the instance's state hash)
s.joint_names; s.lower; s.upper # the actuator order and ranges (rad)
s.home # Playground's standing pose (its `home` keyframe), in that order
s.step(row) # one control step: 12 joint targets, 5 physics steps of 0.004 s; returns s.check()
s.check() # the task's check on the steps so far (see Success)
s.state() # qpos, qvel, IMU (local_linvel, gyro, gravity, accelerometer, pose), feet, contacts
s.sensor(name); s.gravity() # one MuJoCo sensor; gravity's direction in the IMU frame
s.model, s.data # the live MuJoCo model and data (read them; changing them is not part of the replay)
s.render(cam); s.cameras # uint8 (240, 320, 3) from cameras that follow the robot: `track`, `side`, `back`, `top` (they follow the robot)
s.reset() # back to t = 0
s.replay(rows) # reset, run the rows, return the check and the final state's hash
s.render_video(rows, "/app/output/try.mp4")
s.save_trajectory(rows, "/app/output/trajectory.npz")
The grader runs exactly this CLI in two fresh processes, so run it to check yourself:
python /opt/tools/rcb_quadruped.py replay --instance /app/instance.json --traj /app/output/trajectory.npz
Conventions
- Joint position actuators (PD): kp = 35 N m/rad, joint damping 0.5 N m s/rad, as Playground's environment sets them; the physics step is 0.004 s, the control step 0.02 s (5 physics steps); a row holds until the next one.
- World frame z up, metres; quaternions wxyz. The IMU frame is the trunk's: x forward, y left, z up.
- Physics is MuJoCo on the CPU: the same rows from the same start give the same result in every fresh process.
External material
You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.
Resources
Your container: 4 CPUs, 10 GiB of memory, 2048 processes and threads and 10 GiB of disk (new files under /app, /tmp and /root). Your container has no GPU. CPU only slows you down; a process that goes over any other cap can be killed. Usage and caps: /run/rcb-limits/usage.json.
Time limit
You have 1800 seconds to complete this task. Do not cheat by using online solutions or hints specific to this task.
This is wall-clock time from the start of your session; the time a simulator takes to start counts. When it is up you are stopped without warning and only what is in /app/output/ at that moment is graded, so save a deliverable as soon as you have one and overwrite it whenever you have a better one. Your session started when you received this task. /run/rcb-limits/usage.json, rewritten every few seconds, gives the time left on this limit (time_left_s) and its end (deadline_utc), counted from a little before your session started, so it never gives you more time than you have: read it (or run date) before you decide that time is short, never guess. Waiting counts too: a tool call that sends input to a process that keeps running (an interactive interpreter, a simulator loop, a server) can wait for the whole wait or yield time you give it even when the answer is printed at once, so give such calls a short wait and poll again if the output is not complete, or run one-shot scripts that exit when they are done. Installing packages is not cheating (## External material above).