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.
powerlift — instance 00 — STANDARD MODE (robot as a service)
You control a simulated Unitree H1 humanoid with two Shadow dexterous hands (HumanoidBench / MuJoCo) as if it were real hardware: the simulator runs in a service you cannot open, and you reach it only through a client. Task: lift the dumbbell from the floor to overhead — close to two metres up — and hold it there.
Rules (real-robot rules)
- Episodes and resets. The episode starts when the service comes up. It ends when the task succeeds, when
the robot falls (its pelvis drops near the ground), after 1000 control steps (20 s of robot time), when your
time is up, or on a simulator error. Nothing else ends it: a robot that has fallen without meeting one of
these (lying on its side, sitting, face down) goes on until step 1000, so an episode that is still running
does not mean the robot is still up. You have 50 resets (
spec()["budget"]["reset"], which is authoritative: if it says 0, there is no reset and the one episode is the run).r.reset()puts the robot and the scene back on the same frozen starting state and starts a new episode with its own 1000 control steps, either abandoning the running episode or after one has ended; it takes no robot time and returns the start's images and proprioception. Once an episode has ended,submitraisesEpisodeOver(its message givesresets_left) until you reset. Only the last episode is graded: an episode you reset away is never graded, a success ends the run at once (no reset after it), and when your time is up the episode then running is the one graded. The wall clock is the run's and never restarts;meta["episode"]andmeta["resets_left"]count the episodes. - Time moves only inside calls.
submitruns your servo targets andget_obs(seconds=s)holds the last ones for s seconds; both use up the episode's control steps. Between calls the robot waits, frozen, while you think;get_obs()with no seconds is free. - No privileged state, no score. You see what the robot's two head cameras see (RGB, 256×256), its own
joint angles and joint velocities, a pelvis IMU and
room_camera, a camera fixed in the room. Not where the robot is in the room, not the dumbbell's pose, not the reward: the service judges the episode and only tells you that it ended and why (meta["done"],meta["reason"]:"success","error"after a simulator error, else"failed").spec()gives the robot's own facts, as its URDF would: each actuator's range, each joint's axis and position, each link's mass and centre of mass, the feet's collision boxes, the IMU's frame, each camera's field of view and pose. - There is nothing to hand in: the service records every episode and grades the last one as it ran. Keep the
script that drives the robot at
/app/output/gen.pyfor the record: save it early and keep it current. - Wall-clock budget: the time limit (
## Time limit). It ends without warning, and ending your session earlier ends the run the same way, so do not stop early: while the episode runs, or a reset is left, the run can still pass.
Scoring
HumanoidBench scores the whole episode, not a final state: it passes iff the summed per-step reward reaches
800: a total of rewards, not a number of steps (an episode is at most 1000 steps). A weighted sum of two
things: a small share for standing steadily, and the bulk for how high the dumbbell is, measured against a
target band around two metres. Be warned that the height term is broad. Clearing the bar means lifting it high
and keeping it there for most of the episode, not improving the height a little. The service ends the episode
the moment the pass mark is reached (reason = "success"); that live episode is the verdict.
Client (/opt/tools/rcb_client.py, protocol eai-standard/2.1)
Your whole interface to the robot. Its docstring is the full reference
(python -c "import rcb_client; help(rcb_client)"); the calls and the endpoints they use:
| call | endpoint | what it does |
|---|---|---|
r = Robot() |
connects (http://sim:8000, then http://localhost:8000) and waits until the scene is ready |
|
r.spec() |
GET /spec |
the robot's facts: the actuators' order and ranges, control_dt (0.02 s), max_control_steps (1000), the cameras, proprio_layout, budget |
r.status() |
GET /status |
calls, rows, control_steps, done, reason, elapsed_s, and episode, resets_left, control_steps_total (all episodes) |
r.get_obs(cameras=None, seconds=0, include_depth=False, video="frames") |
POST /observe |
the current frames (free), or hold the last targets and watch for seconds (at most 30) |
r.submit("joint_position", A, dt=0.02, interpolate="linear", cameras=None, video="mp4") |
POST /submit |
runs A, rows of 61 targets dt seconds apart (a multiple of 0.02; a chunk covers at most 10 s); stops early when the episode ends |
r.reset(cameras=None, include_depth=False) |
POST /reset |
a new episode from the frozen starting state (at most 50 in all); returns the start's frames |
One call returns at most 3000 images (max_frames_per_call, PROTOCOL §3 "Images per call").
The answers are binary (RCB1) and come back decoded: res.meta (the counters, done, reason, proprio["now"],
clipped), res.last[camera] (the last frame), res.frames or res.video (what the cameras saw during the call),
res.proprio (proprioception rows). Values outside [-1, 1] are clipped and reported in meta["clipped"], never
refused; a malformed request raises ValueError and runs nothing.
from rcb_client import Robot
r = Robot()
res = r.submit("joint_position", A, dt=0.02) # A: (T, 61) servo targets in [-1, 1], one row per control step
Measured cost here: about 6.7 ms per control step in one-row calls asking for one head camera, 8.7 ms with both head cameras' images, 1.8 ms per step in chunks of 10 rows asking for one camera (video="none" each time).
Each proprioception row (meta["proprio"]["now"], res.proprio) has, in spec()["proprio_layout"] order,
the joints' angles (*_pos, rad), their velocities (*_vel, rad/s), then the IMU (imu_gyro_*,
imu_gravity_*).
The 61 actuators are position servos. The first 21 are the body, in this order: left_hip_yaw,
left_hip_roll, left_hip_pitch, left_knee, left_ankle, right_hip_yaw, right_hip_roll,
right_hip_pitch, right_knee, right_ankle, torso, left_shoulder_pitch, left_shoulder_roll,
left_shoulder_yaw, left_elbow, left_wrist_yaw, right_shoulder_pitch, right_shoulder_roll,
right_shoulder_yaw, right_elbow, right_wrist_yaw. The remaining 40 are the two Shadow hands, 20 each —
lh_A_* then rh_A_*; each hand's first 2 are its wrist (*_A_WRJ2, *_A_WRJ1) and the other 18 its
fingers, where each of the 4 *J0 ones (*_A_FFJ0, *_A_MFJ0, *_A_RFJ0, *_A_LFJ0) drives a tendon that
moves two finger joints together (spec()["action_types"]["joint_position"]["layout"]). The proprioception
measures joints, not actuators: 69 of them, in spec()["proprio"]["joints"] order. A target of −1 or +1
commands one end of that servo's range, spec()["action_types"]["joint_position"]["range_rad"] in radians,
and the scale is linear, so 0 is mid-range, not 0 rad. A constant action commands joint targets, not a pose:
whether the robot stays there depends on whether that pose is stable under gravity and contact.
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: 3 CPUs, 4 GiB of memory, 1024 processes and threads and 10 GiB of disk (new files under /app, /tmp and /root). Your container has no GPU. The simulator runs in its own container and does not count against these. 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 3600 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 you wait for the simulator service counts. When it is up you are stopped without warning and the episode is graded as it stands at that moment. The service's time_left_s counts the same limit from your first request to the service, so it never runs out before your time does: your real time left is time_left_s minus the time you spent before that request. Plan by it. 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).