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.

7.6 KB
Raw Blame

LIBERO-MAX · libero_goal — instance i00 — STANDARD MODE (robot as a service)

You control a simulated Franka Panda arm (LIBERO on robosuite / 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: Turn off the stove.

The scene can change while you work: once during the episode, when your gripper first gets close to one of the task's objects, the scene changes (as in LIBERO-MAX): an object or a receptacle may be moved, an obstacle or a few other objects may appear, a camera may shift, or the lighting, the colours or the image noise may change. Nothing tells you when; the task and its success check stay the same, so keep checking what the cameras show. A moved object or receptacle jumps there alone: what already rests in or on it stays where it was.

Rules (real-robot rules)

  • One episode, no reset. The episode starts when the service comes up. It ends when the task succeeds, after 9000 control steps (450 s of robot time; a technical cap so that the episode's video can be rendered in its time limit), when your time is up, or on a simulator error. spec()["budget"]["reset"] is 0.
  • Time moves only inside calls. submit runs your actions and get_obs(seconds=s) holds still for s seconds; both use up 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 two cameras (agentview fixed in front of the robot, wrist on the hand; RGB 256×256, depth on request) with their intrinsics and pose (spec()["cameras"] at the start; every submit response carries the current ones in meta["cameras_now"]) and the robot's own state. Not the objects' poses, not the goal or the success check: the service only tells you that the episode ended and why (meta["done"], meta["reason"]: "success", "failed" at the step cap, "error" after a simulator error).
  • There is nothing to hand in: the service records the episode and grades it as it ran. Keep the script that drives the robot at /app/output/gen.py for 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.
  • Do not use LIBERO's demonstrations, LIBERO-MAX's policies or any published solution; write your own controller.

Scoring

LIBERO's own success check for this task: all of

  • flat_stove_1 is off (LIBERO's TurnOff: its knob is turned back fully, past its off position (q < 0)) The service ends the episode the moment it holds (reason = "success"): that episode, as it ran, is graded (nothing is replayed).

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)"; its examples come from another benchmark: the numbers here and in spec() are this task's).

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: action_types, control_dt (0.05 s), max_control_steps (9000), cameras, proprio_layout, frames, budget
r.status() GET /status calls, rows, control_steps, done, reason, elapsed_s
r.get_obs(cameras=None, seconds=0, include_depth=False, video="frames") POST /observe the current frames (free), or hold still and watch for seconds (at most 30)
r.submit("ee_delta", A, dt=0.05, interpolate="linear", cameras=None, video="mp4") POST /submit runs A, rows of 7 numbers dt seconds apart (a multiple of 0.05; a chunk covers at most 10 s); stops early when the episode ends

One call returns at most 3000 images (max_frames_per_call, PROTOCOL §3 "Images per call").

The answers come back decoded: res.meta (the counters, done, reason, proprio["now"], clipped, cameras_now), res.last[cam] (the last frame), res.frames or res.video (what the cameras saw during the call), res.proprio (rows).

from rcb_client import Robot
r = Robot()
res = r.submit("ee_delta", A, dt=0.05, cameras=["agentview"], video="none")   # A: (T, 7)
  • Action ee_delta (7, float64, each clipped to [-1, 1]): LIBERO's native operational-space control (OSC_POSE). Per control step the hand's target moves by [dx, dy, dz] × 0.05 m and turns by [drx, dry, drz] × 0.5 rad (axis-angle, world frame); grip +1 closes, -1 opens the gripper. With dt = 0.05 each row is one control step; get_obs(seconds=s) holds still (zero motion, the gripper as last commanded).
  • Proprioception (spec()["proprio_layout"]): eef_x/y/z (m) and eef_qw/qx/qy/qz (the hand), finger_left, finger_right (m), joint1..7_pos (rad), joint1..7_vel (rad/s), cmd_* (the last action).
  • World frame: metres; the robot's base is at (-0.66, 0, 0.912) facing +x: x forward (across the table), y to the robot's left, z up; quaternions are w x y z. Each camera's cam2world_gl is its pose (OpenGL convention: it looks along its -z axis, +y up); intrinsic_cv its pinhole intrinsics in pixels (upright images).
  • Measured cost here: about 20 ms of simulation per control step, plus about 70 ms per camera image.

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, 10 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 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 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).