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.

6.7 KB
Raw Blame

MolmoSpaces · pick — STANDARD MODE (robot as a service, eai-standard/2.2)

Task: Pick up the pie.

You control a Franka FR3 arm with a Robotiq 2F-85 gripper on a fixed base (the DROID setup) — as if it were real hardware — in one episode of Ai2's MolmoSpaces benchmark (an Objaverse object). The simulator (upstream's own code: molmo-spaces 0.2.9, MuJoCo 3.5.0) runs in a service you cannot open. You get one client and one episode.

Rules (real-robot rules)

  • No reset. One episode. You see the robot's cameras (RGB, depth if you ask) and its proprioception (joints, grippers, tool poses, velocities, efforts). No object poses, no success check.
  • The episode ends after 303 control steps (the benchmark's 20 s horizon at 15.152 Hz; spec["max_control_steps"], counted by meta["control_steps"]), when you submit done (r.submit("done", [])), or when your time is up.
  • Success is upstream's judge_success() on the state at that moment: the object touches the robot and nothing else, and it is at least 1 cm higher than where it started. The task has to hold at the end: met earlier and undone by then does not count, so end the episode with done once it holds. The service judges your episode itself, on the state it ends in; it scores 1 if that state succeeds.
  • Your only budget is the time limit (## Time limit), from your start (the service's time_s and time_left_s count from your first request to it, so time_left_s never reaches 0 before your time is up: plan by it). Simulated time only advances with your commands (and get_obs(seconds=...)).
  • Nothing to hand in: the service records the episode and grades it. Leave your script at /app/output/gen.py.
  • If the service crashes, a call fails with a connection error: it restarts and resumes the SAME episode (never a reset) in the state after the last call it completed. r.wait_ready() waits for it; then check r.status().
  • Nothing is put into your context automatically: images come back as arrays in Python objects.

Client (/opt/tools/rcb_client.py)

from rcb_client import Robot
r = Robot()                                    # connects (waits while the service builds the episode)
spec = r.spec()                                # action types, limits, cameras (+ calibration), robot_spec, kinematics, budget
obs = r.get_obs()                              # obs.last[cam] -> uint8 (H, W, 3); obs.meta["proprio"] {"layout", "now"}
obs = r.get_obs(depth=True)                    # + obs.last_depth[cam] -> float32 (H, W) z-depth in m (0 = no reading)
res = r.submit("joint_position", A, dt=0.066)   # A: (T, 8) rows dt apart; res.video[cam], res.proprio, res.meta
obs = r.get_obs(seconds=2.0, video="mp4")      # hold the current targets and watch for 2 s (max 30; whole control
                                               # steps: obs.meta["seconds"] is what ran)
r.fk(q); r.ik({"gripper": pose7}, seed=q)        # upstream's kinematic model, no physics: tcp poses <-> joint positions
r.submit("done", [])                           # end the episode now
r.status()                                     # calls, control steps, done, reason, elapsed time

Cameras: wrist_camera_zed_mini, droid_shoulder_light_randomization, randomized_zed2_analogue_1, randomized_zed2_analogue_2, randomized_gopro_analogue_1 (spec["cameras"][cam]: intrinsics and mount; every response carries each camera's pose). One call returns at most 1812 images (max_frames_per_call, PROTOCOL §3 "Images per call").

joint_position (8)

fr3_joint1, fr3_joint2, fr3_joint3, fr3_joint4, fr3_joint5, fr3_joint6, fr3_joint7, gripper: the targets of upstream's joint-position controllers (fr3_joint1..7 in rad; gripper: the Robotiq command, 0 = open .. 255 = closed). At t = 0 the gripper is open and its target is 0. Rows are dt apart (a whole multiple of the 0.066 s control period, at most 0.5 s: up to 0.462 s), interpolate="linear" (default) or "hold" between rows; a chunk covers at most 10 s; values outside the limits (spec["action_types"]["joint_position"]["limits"]) are clipped and listed in res.meta["clipped"]. obs.meta["proprio"]["now"] starts with the measured positions of the row's joints, in row order (["layout"] names every entry); the gripper entries of a row are commands in the units above, not the measured openings. q for r.fk / r.ik follows spec["kinematics"]["joint_names"]; poses are x y z qw qx qy qz in the house's world frame (z up, metres).

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 12 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).