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.

8.9 KB
Raw Blame

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

You control two UR5e arms fixed to the bench: arm1 carries a dexterous hand that holds a pipette (its thumb presses the plunger); arm2 has a Robotiq 2F-85 gripper, as if it were real: the simulator (AutoBio's biology laboratory on MuJoCo 3.3.0) runs in a service you cannot open. You get one client and one episode. Task: Aspirate from the 50 mL centrifuge tube with the pipette. The test is a sequence: (1) with the plunger pressed (the thumb's target, action entry arm1_dh_rh_thj3, above 0.70 rad), the pipette tip is within 6.5 mm (horizontally) of the tube's axis and more than 5 mm below the liquid surface; (2) the plunger is released (the thumb's target below 0.45 rad) while the tip is still below the surface; (3) success the moment, after (1) and (2), the tip is more than 5 cm above the liquid surface. The tube is part-filled (31.5 mL); the cameras show the liquid as a blue surface inside the tube. No liquid actually moves: the test is on positions and commands.

On the bench, between the arms: a rack with an open, part-filled 50 mL tube standing in it. AutoBio's prompt for this task: "one arm lifts centrifuge tube, the other aligns pipette tip and aspirates liquid"; the test itself does not ask for the tube to be lifted.

Rules

  • No reset. The episode starts when the service comes up and ends the moment the goal is reached (success), when your time is up, or on a simulator error. A MuJoCo physics warning (an unstable simulation, for instance after the robot was driven hard into something) also ends it at once, as a failure: meta["reason"] is then "failure: simulator warning (unstable state)".
  • No privileged state. You see what the cameras see (RGB, and depth on request, with each camera's calibration) and the robot's own proprioception: joint positions, velocities and drive efforts, gripper openings, the poses of its tool frames and the targets in effect. No poses of tubes, racks or instruments, no instrument state, no success check: meta["done"] / meta["reason"] tell you when the episode is over and why.
  • Steps are unlimited; your only budget is the time limit (## Time limit; meta["time_left_s"] is the service's count of it). Simulated time only advances with your commands (and get_obs(seconds=...), which holds the last targets). Do not stop early.
  • r.submit("done", []) ends the episode in its current state; before the goal is reached that is a failure.
  • Nothing to hand in: the service records your 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 and videos come back as arrays/bytes in a Python object.

Client (/opt/tools/rcb_client.py, protocol eai-standard/2.2)

from rcb_client import Robot
r = Robot()                                    # connects (waits while the service starts)
spec = r.spec()                                # action layout and limits, robot_spec, cameras (+ intrinsics, mounting), proprio layout, kinematics, budget
obs = r.get_obs()                              # obs.last[cam] -> uint8 (480, 640, 3) (default cameras: table_cam_front, arm1_wrist_cam, arm2_wrist_cam)
obs = r.get_obs(cameras=["table_cam_front"], depth=True)   # + obs.last_depth[cam] -> float32 (480, 640), metres
obs.meta["proprio"]                            # {"layout": [...], "now": [...]}: q_*, qd_*, *_opening, <tcp>_x..qz, effort_*, cmd_*
obs.meta["cameras"]                            # per camera intrinsic_cv / extrinsic_cv / cam2world_gl at the last frame
res = r.submit("joint_position", rows, dt=0.02)   # rows: (T, 14) targets, here one every 20 ms, reached linearly in 2 ms steps
res.meta["done"], res.meta["reason"], res.meta["control_steps_chunk"], res.meta["clipped"]; res.video[cam]; res.last[cam]; res.proprio
obs = r.get_obs(seconds=1.0, video="mp4")      # hold the last targets and watch for 1 s (max 30)
r.fk(q); r.ik({frame: pose})                   # kinematics of the arm joints (spec["kinematics"]): no physics, no collision check
r.submit("done", [])                           # ends the episode now, in its current state
r.status()                                     # calls, control steps, done, reason, elapsed time

Cameras (table_cam_front, table_cam_left, arm1_wrist_cam, arm2_wrist_cam; 640x480): table_cam_front and table_cam_left are fixed and look at the bench from two sides; arm1_wrist_cam, arm2_wrist_cam are mounted on the arms' last links and move with them. spec["cameras"] gives each camera's mounting and intrinsics, and every response carries each frame's pose. Rendering is on the CPU: ask only for the cameras you need; video="none" makes a chunk fastest. Proprioception (spec["proprio_groups"]): joint_pos (q_<joint>), joint_vel (qd_<joint>), gripper_opening (metres between the fingertips, per parallel gripper), tcp_pose (each tool frame, arm1_tcp, arm2_tcp: x y z + wxyz quaternion in the world frame), joint_effort (effort_<joint>), command (cmd_<entry>, the targets in effect). spec["robot_spec"] is the robot's spec sheet: where each arm's base stands, joint limits, the drives' gains, the grippers' commands, the tool frames.

Action type joint_position (14)

14 position targets per control step, in this order: arm1_shoulder_pan, arm1_shoulder_lift, arm1_elbow, arm1_wrist_1, arm1_wrist_2, arm1_wrist_3, arm1_dh_rh_thj3 (the thumb joint that presses the pipette's plunger: 0 .. 1.3 rad, larger presses), arm2_shoulder_pan, arm2_shoulder_lift, arm2_elbow, arm2_wrist_1, arm2_wrist_2, arm2_wrist_3, arm2_2f85_fingers_actuator (the Robotiq gripper: 0 open .. 255 closed). Arm joints are in rad. Each entry is the target of a PD position drive (stiffness, damping and force limit per entry: spec["robot_spec"]["controller"]["gains"]); a target outside the entry's range is clipped to it. Columns in spec["action_types"]["joint_position"]["layout"] order. Rows are dt apart (a whole multiple of the 2 ms control period, at most 0.5 s; a chunk covers at most 10 s), interpolate="linear" (default, from the previous target) or "hold"; the client sends them as float32. The control rate is 500 Hz (one physics step per control step). There is no step budget: the one technical cap is spec["max_control_steps"], 600000 (1200 s of simulated time), at which the episode ends. One call returns at most 3000 images (max_frames_per_call, PROTOCOL §3 "Images per call"); video_fps is up to 50, default 10.

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