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.

25.5 KB
Raw Blame

embodied-olympics springboard-3m — instance i00 — STANDARD MODE (robot as a service)

You control a simulated Unitree G1 humanoid robot (29 joints, 1.32 m tall, 33 kg; the Embodied Olympics simulator on 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: Do a forward dive straight (101A) from the 3 m springboard: from your standing start at its end, take off from both feet, turn half a somersault forwards in the straight position and enter the water head first, vertical, with your arms stretched beyond your head.

The venue

The springboard's top is 3.0 m above the water; it is 4.88 m long and 0.5 m wide, hinged at its rear end and resting on a fulcrum 1.88 m in front of the hinge; its tip at rest is 0.119 m ahead of your pelvis, about 2 cm ahead of your toes, and you stand on its centre line. Beyond the fulcrum it is free: it dips under load (about 5446.0 N per metre at the tip) and springs back. The concrete platform that carries the board's stand is 0.35 m below the board's top and ends 0.44 m beyond the front of the fulcrum's housing, at the pool's edge; handrails 1.0 m high run along its sides. The water lies ahead and below. Nothing in the venue moves but the board.

Directions are from the robot at the start: +x is the way you face, +y is to your left, +z is up; the floor is level.

The rules

Rule book: World Aquatics (FINA) Diving Rules 2022-2025 (in force 3 December 2022): D 1.5 (dive numbers: 101 = front group, no flying action, one half somersault; A = straight), D 6.5.4 (a double bounce on the springboard is a failed dive), D 6.5.6 (a take-off from the springboard not from both feet simultaneously: failed), D 6.5.7 (a twist of 90 degrees or more at the entry: failed), D 6.5.8 / 6.5.8.1 (head first: arms below the head, maximum 4.5 points; the feet entering before the head or hands: failed), D 8.1.1 (awards 0 to 10), D 8.2.4 (standing dives: the starting position on the front end, the feet stay on the springboard until the take-off), D 8.4.2-8.4.4 (the take-off from both feet simultaneously, bold, balanced and high, from the end of the springboard), D 8.5.1-8.5.5 (the direct line of flight; touching the springboard; unsafely close: at most 2 points; straight: not bent at the knees or hips, feet together, toes pointed), D 8.6.1-8.6.3 and 8.6.7 (the entry vertical, not twisted, the body straight, feet together, toes pointed; head first with the arms stretched beyond the head in line with the body, the hands close together; complete when the whole body is under the surface). World Aquatics Facilities Rules FR 5.1 (the springboard at least 4.88 m long and 0.5 m wide, a movable fulcrum, its top 0.35 m above the concrete platform that carries the fulcrum, handrails at the back and the sides of 3 m springboards) and FR 5.3.3 (3 m above the water). The board is the Maxiflex Model B (Duraflex), the board of World Aquatics competitions. Where this task departs from it:

  • FR 5.1 (the springboard): a flexible board, not a rigid one: the 4.88 m board is fixed from its rear hinge to the fulcrum, 1.88 m from the hinge (Miller et al. 1998, J Sports Sci 16: 571-583, as quoted at ISB 2011), and beyond the fulcrum it is a chain of 8 rigid segments on hinges with rotational springs: a uniform beam whose bending stiffness gives the Maxiflex B's measured tip stiffness, 5446.0 N/m, and whose mass per metre gives its measured effective mass, 8.87 kg (Kong, Yeadon and King, ISBS 2004, fulcrum setting 7.5), so the unloaded board rings at about 3.9 Hz; the real board is tapered (stiffer near the fulcrum), twists, and the fulcrum is not adjustable here
  • FR 5.1 (the board's damping): the measured models have none; the chain has a small stiffness-proportional damping, a 0.01 damping ratio in its first mode, so that it rings out
  • D 8.1.1 (the judges' award): the panel's 0-10 award is replaced by pass/fail lines that stand for a dive with no failed-dive call and no capped award: the entry within 15.0 degrees of vertical, hips and knees bent less than 20.0 degrees, the ankles at most 0.12 m apart, the toes pointed (each ankle extended at least 0.3 rad of the robot's 0.52), both palms at least 0.15 m beyond the head along the body line, at most 0.2 m apart and within 0.15 m of the body line, a twist under 20.0 degrees; the rule book gives the qualities, not these numbers
  • D 8.6 and D 8.1.2 (the entry): the water is not simulated. The pool's surface is a plane the robot passes through without resistance; the entry is judged from the first touch of the surface until the whole body is under it (D 8.6.7), and nothing after that is judged (D 8.1.2: no movement beneath the surface counts). With no water the body keeps turning through the entry (the water stops a diver's rotation), so the entry's angle is taken at one moment, when the hips (the pelvis) reach the surface; the shape is judged through the whole passage
  • D 8.4.4 (a high take-off): a take-off counts once the robot's centre of mass rises at least 0.1 m above its height at the start, so that a fall forward is not a dive
  • D 8.5.5 (the straight position): judged from the moment the body line passes the horizontal until the entry (the last quarter somersault; D 8.5.7's quarter somersault for flying dives), with the entry's limits
  • D 8.5.3 / 8.5.4 / 8.4.4 (touching the springboard; unsafely close; a take-off from the end): any touch of the board, its stand or the railings after the take-off fails, and the distance is judged at the water surface: the entry point (the middle of the palms at the first touch of the water) between 0.5 m and 3.0 m in front of the board's tip at rest (the rule book leaves 'unsafely close' and 'from the end' to the judges)
  • D 8.5.1 (the direct line of flight): the entry point must be within 0.5 m to either side of the line the robot faces at the start
  • D 8.2.4.2 / 6.5.4 / 6.5.6 (the feet stay on the board; no double bounce; both feet at once): rocking the board with the feet on it is allowed; a flight of 0.1 s or more that lands on the board again fails, and neither foot may be off the board for more than 0.1 s while the other is on it
  • D 8.2.1 (the starting position): the robot is placed at the front end at t = 0 instead of walking there, on the board as it bends under the robot's weight; it stands as its rest pose stands (the arms in front)
  • D 1.5 (the dive): the half somersault is checked as the body line's turn in the vertical plane from the start to the entry, 180.0 degrees within 45.0
  • FR 5.1.3 / Annex DV (the pool): the pool's edge is the front of the concrete platform (FR 5.1.3.4: aligned with the pool wall); the water is a drawn surface over a floor that nothing collides with, the pool's depth and the other boards are not built

You stand at the end of the 3 m springboard facing the water (+x). The board bends and springs back under you: you may rock it with your feet on it. The dive: take off from both feet at once (both feet stay on the board until the take-off: a foot off it for more than 0.1 s while the other is on it, or any flight of 0.1 s or more that lands on the board again (a double bounce), fails; the take-off counts when you are in the air and your centre of mass has risen at least 0.1 m above its height at the start), turn forwards through half a somersault (180.0 degrees, within 45.0, counted from your upright start) and enter the water head first. From the moment your body line (from the middle of your ankles to the middle of your shoulders) passes the horizontal until the dive is complete you must be in the straight position: hips and knees each bent less than 20.0 degrees from straight, the ankles at most 0.12 m apart, the toes pointed (each ankle pitched at least 0.3 rad towards the toes). The entry starts when the first part of you reaches the water surface (z = 0) and the dive is complete when the whole of you is under it; that first part must be a hand or the head (feet first fails); when your pelvis reaches the surface your body line must be within 15.0 degrees of vertical, head down; through the entry: not twisted (your shoulders' axis within 20.0 degrees of the board's width direction); both palms at least 0.15 m beyond the centre of your head along the body line, at most 0.2 m apart and each within 0.15 m of the body line; and the straight position. The entry point (the middle of your palms when the first part of you touches the water) must be between 0.5 m and 3.0 m in front of the board's tip at rest (closer is unsafely close) and within 0.5 m to either side of the line you face at the start. You fail if, after the take-off, any part of you touches the board, its stand or the railings. Before the take-off any part other than the feet on the board, or anything on the railings, fails. The water is not simulated: nothing after the dive is complete is judged. Success: a complete dive that keeps all of these. The attempt ends after 20 s.

A referee in the service decides this from the simulator's state. The events that must happen, in order, are take-off → entry → under water. An attempt (an episode) ends at the success, at the first rule violation, or after 20 s (2000 control steps) of robot time.

Real-robot rules

  • Attempts. The first episode starts when the service comes up. r.reset() abandons the running attempt (or follows one that has ended) and starts a new one from the same start; spec()["budget"]["reset"] says how many resets you have (5 here). Only your last attempt is graded, and a success ends the trial at once.
  • Time moves only inside calls. submit runs your rows and get_obs(seconds=s) holds the command in force for s seconds; both use up the attempt's time. Between calls the robot waits, frozen, while you think; get_obs() with no seconds is free.
  • No privileged state. You get what the robot's own sensors give: its two head cameras (head_left, head_right, RGB 270 × 480, a stereo pair 5 cm apart, tilted 20° down; depth on head_left), its joint encoders, motor torques and two IMUs (below), and the venue's fixed cameras (venue, board; spec()["cameras"] says where each is mounted). Not where you or any object is, not the referee's state. Once an attempt is over, every response carries the referee's call: meta["outcome"] ("success" or the rule that ended it) and meta["stages_reached"] of meta["stages_total"].
  • There is nothing to hand in: the service records your last attempt and grades it as it ran live (the referee's call). Keep the script that drives the robot at /app/output/gen.py and a NOTES.md of at most 20 lines (your approach, what failed, what you downloaded or installed) for the record: save them early and keep them current.
  • Wall clock: 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 you have attempts left, the run can still pass.

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)"; it explains the protocol with another benchmark's example names: for this task spec() is authoritative).

call endpoint what it does
r = Robot() connects (http://sim:8000, then http://localhost:8000) and waits until the service is ready
r.spec() GET /spec the facts: action_types (each type's layout, lower, upper, meaning), control_dt (0.01 s), max_control_steps (2000), cameras (field of view, pose at the start), proprio_layout, robot_facts (joints, limits, default gains, the stance), rules, budget
r.status() GET /status calls, rows, control_steps, done, reason, elapsed_s, resets_left
r.get_obs(cameras=None, seconds=0, video="frames", include_depth=False) POST /observe the current frames (free), or hold the command in force and watch for seconds (at most 30)
r.submit(type, A, dt=0.01, interpolate="linear", cameras=None, video="mp4") POST /submit runs A, rows of that action type dt seconds apart (a multiple of 0.01; a chunk covers at most 10 s); stops early when the attempt ends
r.reset() POST /reset a new attempt from the same start (see above)

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.depth, res.proprio (proprioception rows). Values outside the bounds are clipped and reported in meta["clipped"], never refused; a malformed request raises ValueError and runs nothing. Rendering is most of a call's cost: a controller's call should ask for no video (video="none", cameras=["head_left"] or fewer) and read res.proprio. With interpolate="linear" (the default) each control step's command is a straight line from the command in force to the row; "hold" applies the row as it is.

from rcb_client import Robot
r = Robot()
res = r.submit("walk", A, dt=0.02, video="none")   # A: (T, 22) rows of the `walk` type

Actions

One row is one control step (10 ms; the physics runs at 1 kHz) unless dt spreads it. Every row ends with grip_left, grip_right.

type row (then grip_left, grip_right) floats who drives what
stand waist 3 + arms 14 joint targets 19 the platform holds the legs in the stance; you give the waist's 3 and the arms' 14 joint targets (rad)
walk vx, vy, wz + waist 3 + arms 14 joint targets 22 Unitree's walking policy drives the legs from the velocity command (vx forward, vy to the left, m/s; wz turning left, rad/s; the robot's own frame); you give the waist and arm joint targets
run vx, vy, wz 5 the running policy drives all 29 joints from the velocity command (it swings the arms)
run_arms vx, vy, wz + arms 14 joint targets 19 the running policy drives the legs and the waist; you give the 14 arm joint targets
joints all 29 joint targets 31 you give all 29 joint targets (rad); the default PD gains, no feed-forward
lowcmd all 29 joints × (q, dq, tau, kp, kd): 29 targets, then 29 velocities, 29 torques, 29 kp, 29 kd 147 Unitree's LowCmd for all 29 joints: position targets (rad), velocity targets (rad/s), feed-forward torques (N m), kp, kd; the motor torque is kp (q - q_measured) + kd (dq - dq_measured) + tau, evaluated at 1 kHz
walk_falcon vx, vy, wz + waist 3 + arms 14 joint targets (as walk) 22 FALCON's walking policy (LeCAR-Lab, trained with arm motions and forces on the hands; it also nudges the wrists) drives the legs from the velocity command (vx forward, vy to the left, m/s; wz turning left, rad/s; the robot's own frame); you give the waist and arm joint targets
walk_agile vx, vy, wz + waist 3 + arms 14 joint targets (as walk) 22 AGILE's velocity-height walking policy (NVIDIA WBC-AGILE, trained while the arms and the waist moved) drives the legs from the velocity command (vx forward, vy to the left, m/s; wz turning left, rad/s; the robot's own frame); you give the waist and arm joint targets

Velocity commands are in the robot's own frame (vx forward, vy to its left, m/s; wz turning left, rad/s). Bounds: walk |vx| ≤ 0.8, |vy| ≤ 0.5, |wz| ≤ 1.57; walk_falcon -0.8 ≤ vx ≤ 0.8, -0.5 ≤ vy ≤ 0.5, -1 ≤ wz ≤ 1; walk_agile -0.5 ≤ vx ≤ 0.8, -0.5 ≤ vy ≤ 0.5, -1 ≤ wz ≤ 1; run and run_arms 0 ≤ vx ≤ 5, |vy| ≤ 0.12, |wz| ≤ 0.5. Joint targets are absolute angles (rad). Values outside the bounds are clipped. grip_left, grip_right: ≥ 0.5 closes the hand's grip, < 0.5 opens it. At the start the robot stands in stand mode with the arms at rest: the stand row with the table's start angles and both grips open keeps it there.

Joint order everywhere (Unitree's SDK order), with each joint's range, speed limit, torque limit and default gains (also in spec()["robot_facts"]):

# joint range (rad) speed (rad/s) torque (N m) kp kd at the start (rad)
0 left_hip_pitch [-2.5307, 2.8798] 32 88 700 12 -0.1
1 left_hip_roll [-0.5236, 2.9671] 20 139 700 12 0
2 left_hip_yaw [-2.7576, 2.7576] 32 88 500 8 0
3 left_knee [-0.0873, 2.8798] 20 139 900 15 0.3
4 left_ankle_pitch [-0.8727, 0.5236] 37 50 300 6 -0.2
5 left_ankle_roll [-0.2618, 0.2618] 37 50 300 6 0
6 right_hip_pitch [-2.5307, 2.8798] 32 88 700 12 -0.1
7 right_hip_roll [-2.9671, 0.5236] 20 139 700 12 0
8 right_hip_yaw [-2.7576, 2.7576] 32 88 500 8 0
9 right_knee [-0.0873, 2.8798] 20 139 900 15 0.3
10 right_ankle_pitch [-0.8727, 0.5236] 37 50 300 6 -0.2
11 right_ankle_roll [-0.2618, 0.2618] 37 50 300 6 0
12 waist_yaw [-2.618, 2.618] 32 88 400 10 0
13 waist_roll [-0.52, 0.52] 37 50 400 10 0
14 waist_pitch [-0.52, 0.52] 37 50 400 10 0
15 left_shoulder_pitch [-3.0892, 2.6704] 37 25 300 6 0.2
16 left_shoulder_roll [-1.5882, 2.2515] 37 25 300 6 0.2
17 left_shoulder_yaw [-2.618, 2.618] 37 25 300 6 0
18 left_elbow [-1.0472, 2.0944] 37 25 300 6 1.28
19 left_wrist_roll [-1.9722, 1.9722] 37 25 100 2 0
20 left_wrist_pitch [-1.6144, 1.6144] 22 5 60 1 0
21 left_wrist_yaw [-1.6144, 1.6144] 22 5 60 1 0
22 right_shoulder_pitch [-3.0892, 2.6704] 37 25 300 6 0.2
23 right_shoulder_roll [-2.2515, 1.5882] 37 25 300 6 -0.2
24 right_shoulder_yaw [-2.618, 2.618] 37 25 300 6 0
25 right_elbow [-1.0472, 2.0944] 37 25 300 6 1.28
26 right_wrist_roll [-1.9722, 1.9722] 37 25 100 2 0
27 right_wrist_pitch [-1.6144, 1.6144] 22 5 60 1 0
28 right_wrist_yaw [-1.6144, 1.6144] 22 5 60 1 0

What the platform does and does not do for you:

  • stand holds the legs at the standing pose with stiff gains and a gravity-support torque. It is not a balance controller: it does not step and it has no feedback. After an arm movement the body sways a few centimetres for a few seconds; a hard or fast swing of the arms, a push or a load can tip the robot over within a second or two.
  • walk runs Unitree's own G1 walking policy (50 Hz) on the legs. At the largest forward command (0.8) it walks at about 0.6 m/s; vy up to 0.5 and wz up to 1.57 rad/s; it follows with lag and barely moves in its first second. At a zero command it marks time on the spot (the pelvis sways and drifts a centimetre or two per second) and recovers from small disturbances, which stand does not. When the legs come to it from another mode it first blends them to the stance (0.3 s) and holds a zero command until the robot is steady (up to 2 s). It was trained with the arms at rest: moving the arms and the waist disturbs it.
  • walk_falcon and walk_agile are two more walking policies for the G1's legs, with the same row as walk (you keep the waist and the arms): FALCON (LeCAR-Lab, MIT; trained with arm motions and forces on the hands) and AGILE's velocity-height policy (NVIDIA WBC-AGILE, Apache-2.0; trained while the arms and the waist moved), the released weights run in numpy at 50 Hz on their own leg gains (kp 100 / 100 / 100 / 200 / 20 / 20 per leg). Both hold still and follow the command better than walk while the arms move or carry something; FALCON also adds a small correction to the wrists. FALCON zeroes speeds below 0.2 m/s and turns below 0.2 rad/s and stands with the pelvis at about 0.74 m; AGILE zeroes commands of norm below 0.1, stands lower (about 0.68 m) and barely turns on the spot below about 0.7 rad/s (walking at 0.2 m/s or more it turns as asked). Their command ranges are in the action table. A walker takes the legs at once, from where they are (its memory starts afresh); walk, the other walker and run take them from it the same way. Going from a walker straight to stand usually ends in a fall (stand holds Unitree's stance and does not balance): give walk a zero command for about 2 s first.
  • run runs Embodied Olympics' athletics running policy (50 Hz) on all 29 joints: vx from 0 to about 4 m/s (it falls above that; the command changes at most 1.5 m/s per second), |vy| ≤ 0.12 m/s, |wz| ≤ 0.5 rad/s. run_arms gives you the arms while it keeps the legs and the waist; taking the arms away from its swing disturbs it. Switching to stand, walk or joints above about 0.6 m/s usually ends in a fall: slow down first (from 2.4 m/s that takes about 2 s and 2.3 m).
  • joints / lowcmd are yours: each motor's torque is kp (q − q_measured) + kd (dq − dq_measured) + tau, evaluated at 1 kHz with your row held for its 10 ms, then limited by the motor's torque-speed curve and torque limit. joints uses the default gains of the table and zero dq and tau; lowcmd takes yours (kp up to 1000 / 500 / 400 and kd up to 20 / 15 / 10 for legs / waist / arms). Nothing balances the robot in these modes but your own targets.
  • Every joint target is clipped into the joint's range and moves at most the joint's speed limit × 10 ms per step from the target in force. Joints a type does not name keep their targets. The speed limit is a limit on targets; what bounds the joint itself is the motor's torque-speed curve (a lowcmd feed-forward torque can turn a joint up to about 1.15 times that speed, where the motor's torque has fallen to zero).
  • The hands have no working fingers here; each carries a fist pad (a box of 4.4 × 8 × 10 cm beyond the wrist, the 10 cm along the forearm). Nothing in this task is grippable: grip_left and grip_right have no effect.
  • A tool on a hand (a racket, a paddle, a club; where the task has one) is fixed to the wrist in place of the pad. It collides with the world, the ball and the rest of your own body.
  • The air is real: balls and implements feel drag and, when they spin, lift.
  • If the physics diverges (a numerical blow-up, typically from a violent joint command), the attempt ends as a failure: "the simulation became unstable".

Proprioception

Each row (meta["proprio"]["now"], res.proprio) has, in spec()["proprio_layout"] order: the 29 joint positions (*_pos, rad), their velocities (*_vel, rad/s), the motor torques applied (*_torque, N m), the joint targets in force (*_target, rad), the pelvis IMU and the torso IMU (each: orientation quaternion qw, qx, qy, qz, world from sensor; angular velocity gx, gy, gz, rad/s; acceleration ax, ay, az, m/s², gravity included; in the sensor's frame), holding_left, holding_right (1 while that hand grips something), mode (0 stand, 1 walk, 2 run, 3 run_arms, 4 joints / lowcmd; the G1 also 5 walk_falcon, 6 walk_agile), the velocity command in force (cmd_vx, cmd_vy, cmd_wz) and time_s, the attempt's time. A real G1 has no sensor for its position in the venue, and neither do you: that is what the cameras are for.

External material

The network is open. You may install packages (pip, apt), and you may search for, download and use public tools, robot models and pretrained controllers (for example a published Unitree G1 walking, jumping or whole-body policy): finding existing work and adapting it to this robot is encouraged. Say in your notes what you used. You may read anything installed in your container, this benchmark's own source code included. The one thing not to look up is a ready-made solution to this exact task, such as this benchmark's reference solutions. This is an honour rule; trials are reviewed.

Resources

Your container: 4 CPUs, 10 GiB of memory, 8192 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 7200 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).