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.
RoboPaint · oil painting from a reference · The Starry Night (after van Gogh) — STANDARD MODE (robot as a service, eai-standard/2.2)
You control a Franka Panda arm holding an oil-paint brush (ManiSkill 3.0.1 physics; a painting-engine brush) as if it were real
hardware: the simulator runs in a service you cannot open. You get one client and one episode. Task (paint from a reference):
paint the picture shown in /app/target.png (a square crop of Vincent van Gogh's The Starry Night, 1889) onto the main sheet with brush and oil paints, in at most 2517 strokes.
Rules (real-robot rules)
- No reset. The episode starts when the service comes up and ends when your time is up (or on a simulator error). Paint is permanent: every stroke you make stays on the paper.
- No privileged state. You see what the cameras see (RGB; depth on request) plus the robot's own joint positions, velocities and efforts and its brush-tip pose. There is no sheet readout, no brush state and no score: the grader computes it afterwards from the service's own record of your episode.
- A practice sheet lies beside the main sheet: test the brush there as much as you like; it is never scored or counted.
- Steps are unlimited; the time limit (
## Time limit) is your only budget (meta["time_left_s"]is the service's count of it). Actions and simulated time are reported as cost (a runaway guard stops the robot after 72000 control steps = 1 h of simulated time; watching withseconds > 0also advances it). - There is nothing to hand in: the service records your episode as the trajectory and scores the main sheet as your episode left it. Leave your
script at
/app/output/gen.pyfor the record. - A service restart is not a reset. If the service crashes, it restarts and resumes the SAME episode in the state after the
last call it completed (the call that was running is lost as a whole: you get a connection error).
r.wait_ready()waits until it answers again (resuming replays the episode so far without rendering; the clock keeps running), thenr.status()tellscallsandcontrol_steps, so you know what was executed (spec["on_service_error"]). - Nothing is put into your context automatically. Images and videos come back as arrays/bytes in a Python object; what you look at and where you store it is your code's decision.
The brush, the paints and the sheets (spec["static"])
- The brush is a rigid handle with a 15 mm soft tuft (no collision; the handle hits the paper 15 mm below its surface); the proprio "tip" pose is the tuft's tip. Hold it vertical (as at the start).
- Paints (the picture's colours, premixed): 16 wells on a rigid plate on the robot's left (+y), in three rows, radius 9 mm;
spec["static"]["wells"]["wells"]gives each well's name, colour and radius. Dipping = the tip inside a well's circle and below the paint surface: the brush is then loaded with that paint (the previous paint is gone; no mixing on the palette, it never runs dry). The brush starts dry. The robot does not report which paint it carries; the tuft shows the colour on the cameras. - Sheets: the main sheet, a 227.18 mm square in front of the robot, is scored; the practice sheet, 227.18 × 99.41 mm, on the robot's right of the main sheet, is not.
- Wherever the loaded tip is below a sheet's surface the brush paints wet oil paint; what the mark looks like depends on how you press, move and turn the brush, and it blends with wet paint already on the sheet (the practice sheet is there to find out). One continuous contact of the loaded brush with the main sheet is one stroke. The arm is position-controlled (PD, 20 Hz targets): a moving target is followed with a lag.
Target and score
- The target is this picture:
/app/target.png(1024 × 1024 px, RGB) shows the exemplar at its true size and place on the main sheet: the image covers the main sheet exactly, 0.2219 mm per pixel. Pixel (column u, row v), counted from 0 at the image's top-left, has its centre at sheet millimetres X = (u + 0.5) · 227.18 / 1024, Y = (v + 0.5) · 227.18 / 1024 (X to the robot's right, Y towards the robot, origin = the sheet's far-left corner as seen from the robot's base). Image top = the sheet's far edge (+x), image left = the robot's left (+y): the same orientation ascanvas_cam.spec["static"]["target_image"]repeats these facts. - The grader compares the main sheet with the picture: the painting is compared with the picture after the best single shift of the sheet, at most 5 mm along each axis (translation only; if the best shift reaches that limit, the sheet is scored unshifted); the metrics are then taken only inside the sheet's central area, 8 mm in from every edge (the border band is not scored); both blurred (σ = 1 mm); ΔE = the CIELAB colour difference (ΔEab) per pixel over the region where either has paint (dilated by 2 mm; the picture covers the whole sheet, so: the whole scored area): its mean and 90th percentile; SSIM of the lightness L (σ 1.5 mm windows); edge correlation = the correlation of the lightness-gradient magnitudes of the two blurred pictures; paint IoU = the painted fraction of the scored area (paint coverage ≥ 0.5); the number of strokes on the main sheet (painted contacts). Success iff mean ΔE ≤ 6.5, p90 ΔE ≤ 11.5, SSIM ≥ 0.68, edge correlation ≥ 0.52, paint IoU ≥ 0.96 and at most 2517 strokes (scored on the main sheet as your episode left it). The continuous score is max(0, 1 - mean ΔE / 20) (scaled by 2517 / strokes above 2517). Reported as well: the mean ΔE after a 4 mm blur, the SSIM at a 0.5 mm blur, and per colour region of the picture (the connected areas nearest to one paint, at least 30 mm²) the fraction within ΔE 10: the minimum and the area-weighted mean.
Process rules
Paint with brush strokes, the way a person paints: each stroke is one sweep of the loaded brush, pressed for the width you want. Colouring in or filling areas with a thin line, zigzag or serpentine fills, and contour-offset fills (paths that circle round and round inside an area) are not allowed and fail the task, even when the sheet matches the picture. The grader checks this on the live episode with two numbers you can check yourself; only painted strokes on the main sheet count (the practice sheet is free):
- Paint path budget:
path_mm≤ 62300 mm.path_mmis the total length of the brush tip's path while it presses on the main sheet with paint (all strokes together, sampled at every physics step). The strokes of our reference solution add up to 20747 mm; the budget is 3 times that, rounded up. - Strokes are sweeps:
scribble_share≤ 0.1. A stroke's scribble ratio is its length divided by the diagonal of its bounding box on the sheet (taken as at least 10 mm): about 1 for a straight or curved sweep, 2 for a sweep out and back along the same line, more for a zigzag, a back-and-forth fill, a spiral or a loop.scribble_shareis the share ofpath_mmin strokes whose ratio is above 2.5.
Success iff the picture rule above holds and both process rules hold. The continuous score is the one above ×
min(1, 62300 / path_mm) × (1 − scribble_share when the second rule fails).
Client (/opt/tools/rcb_client.py, protocol eai-standard/2.2)
from rcb_client import Robot
r = Robot() # connects (waits while the service builds the scene, under a minute)
spec = r.spec() # action types, dims, joint limits, cameras, budgets, static facts (sheets, paints, brush)
obs = r.get_obs() # current frames of spec["default_cameras"] (all but practice_cam): obs.last[cam] -> uint8 (H,W,3)
obs.meta["proprio"] # {"layout": [...28 names], "now": [...]}: 7 joints, tip x y z qw qx qy qz, joint velocities, efforts
obs.meta["cameras"] # per camera intrinsic_cv / extrinsic_cv / cam2world_gl at the last frame (static cameras)
obs = r.get_obs(seconds=2.0, video="mp4") # hold the last command and watch for 2 s (max 30): obs.video[cam] = mp4 bytes
res = r.submit("ee_pose", P, dt=0.05) # P: (T, 7) brush-tip targets, rows dt apart; IK per control step
res = r.submit("joint_position", A, dt=0.05) # A: (T, 7) joint targets, rows dt apart; streamed at 20 Hz, linear interpolation
res.meta["plan"], res.meta["clipped"], res.meta["control_steps_chunk"]
res.video["canvas_cam"] # mp4 bytes of the execution (video="mp4" | "frames" | "both" | "none")
res.frames["practice_cam"] # uint8 (N,H,W,3) at video_fps if requested
res.last["canvas_cam"]; res.proprio # last frame per camera; float32 (N, 28) proprio at each video frame
r.status() # calls, control_steps, done, reason, elapsed_s
r.wait_ready() # after a connection error: wait until the service has resumed
res.save("/app/runs/003") # meta.json, <cam>.mp4, frames/<cam>/NNN.jpg, last/<cam>.jpg, proprio.npy, frame_meta.npz, depth
Cameras (all static): canvas_cam (1024×1024, straight above the main sheet; image top = the sheet's far edge, image left = the
robot's left; the arm hides the sheet when it is above it), practice_cam (512×1024 portrait, above the practice sheet, same
orientation), scene_cam (640×480, across the table facing the robot) and side_cam (640×360, low on the robot's right, a grazing
view along the sheets that shows the brush's height).
Optional inputs (eai-standard/2.2; nothing changes unless you ask)
- Depth:
r.get_obs(depth=True)→obs.last_depth[cam], float32 (H,W) z-depth in metres of the last frame, pixel-aligned withobs.last[cam](0 = no reading);depth="frames"inr.submit(...)or a watch →res.depth[cam](N,H,W), one map per frame (1 mm steps). Depth is geometry only: paint on the paper never shows in it. - Every frame:
res.frame_step(control steps since the episode start),res.frame_time_s(simulated time) andres.extrinsic_cv[cam](N,3,4), world → camera (constant: the cameras are static). spec:spec["cameras"][cam]→intrinsic_cv(3×3),mount(its static world pose),depth_range_m;spec["world"](frame, units,wxyzquaternions);spec["robot_spec"]: joint limits, PD gains, 20 Hz control / 100 Hz physics, the tool frametip(no gripper);spec["proprio_groups"]names the proprio columns:res.group("joint_vel"),res.group("joint_effort")(a PD drive-effort estimate),res.group("tcp_pose")(the brush tip),res.group(name, now=True)formeta["proprio"]["now"].- Kinematics (stateless: no motion, no simulated time, free):
r.fk(q)["poses"]→{frame: [x,y,z,qw,qx,qy,qz]}for the Panda's links andtip;r.ik({"tip": pose}, seed=q)→{"ok", "q", "error"}, the solver theee_poseaction uses.
Action types
ee_pose(7):x y z qw qx qy qzof the brush tip in the world frame (z up, the robot base at (-0.615, 0, 0), x away from the base, y to the robot's left); quaternion wxyz — the proprio quaternion at the start points the brush straight down. Rows aredtapart (1/20 ≤ dt ≤ 0.5s, a multiple of 1/20 s): the tip target moves on a straight line from the previous row's target at the 20 Hz control rate, one IK solve per control step (no collision checking), at most 0.25 m/s (a faster row is slowed down;meta["plan"]reports it and any IK failure). At most 400 rows and 10 s per submit.joint_position(7):panda_joint1..7absolute joint targets in radians (PD-tracked), rowsdtapart,interpolate="linear"(default) or"hold"; a chunk may cover at most 10 s; out-of-limit values are clipped and listed inmeta["clipped"](limits in the spec).- One call returns at most 640 images (
max_frames_per_call, PROTOCOL §3 "Images per call").
The picture is a public-domain painting, Vincent van Gogh, The Starry Night (1889; Wikimedia Commons File:Van Gogh - Starry Night - Google Art Project.jpg, Public domain), cropped to a square and downscaled to the sheet.
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: 8 CPUs, 5 GiB of memory, 2048 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).