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.
RoboARC (simulator package topogym) · blanket_fold — STANDARD MODE (robot as a service, eai-standard/2.4)
You control a robot (two 6-DoF ALOHA (ViperX) arms with parallel-jaw grippers on a fixed base) as if it were real hardware: the simulator runs in a service you cannot open. You get one
client and one episode. Task: Fold the blanket into the target shape on the table, then release it and withdraw. The blanket (600 mm x 480 mm) starts lying flat on the table. Fold it in half: turn the far half (the 240 mm of material along the far long edge) over onto the near half about the middle line parallel to the long edges, so that the far edge lies on the near edge and the far corners on the near corners. The folded stack is 600 mm x 240 mm, two layers, the far half upside down on top. Then dog-ear the top layer: turn the top layer's near-left corner (the blanket's original far-left corner) over onto the top layer, the top layer alone, so that its corner point (12 mm in from both edges) lands 100 mm to the right and 100 mm farther than where it lay after the half fold; the crease runs at about 45 degrees across the corner. The target images show the required final state: this is how the folded cloth must look and where it must lie; fold it like this. Near, far, left and right are as seen in the overhead camera cam_high (near = the lower side of its image).
The target images: /app/goal/target_cam_high.png (seen from the overhead camera cam_high) and /app/goal/target_cam_low.png (from the low oblique camera cam_low).
Success requirements
- Corners: each of the blanket's four corner points (the material point 12 mm in from both edges at each corner) must lie within 55 mm, in the top view, of its place in the target fold.
- Layer order: the blanket's panels are its regions between the target's creases (the middle line and the dog-ear crease). For each point of the blanket, the panel directly beneath it (material within 8 mm horizontally and 1-20 mm below) must be the same as in the target fold for at least 88% of all points, and for at least 80% of the points that have material beneath them in the target.
- Outline: after the best rigid top-view fit of the blanket onto the target, the 20 mm grid cells it covers must overlap the target's with an intersection over union of at least 0.85.
- Flat: the folded cloth must lie flat on the tabletop, its bottom layer fully in contact with the table surface: every point of the blanket within 35 mm of its height in the target fold, and no point more than 30 mm above the target's highest point.
- Placement: placed where the target images show it, within 40 mm (the blanket's mean top-view position against the target's) and 5 degrees (the fitted rotation).
- Keep every cloth point no more than 8 mm below the tabletop. No material edge may stretch beyond 1.15 times its original length.
- Release all target parts and disengage any assisted grasp. Withdraw the robot until there is at least 5 mm of verified clearance from every target part; opening the fingers while still touching or surrounding the target is insufficient.
- During confirmation, every target point or rigid body's linear speed must be at most 30 mm/s and its displacement from the start of confirmation at most 3 mm.
- Keep all final conditions satisfied together for at least 0.5 s of simulation time. If any final condition stops holding, the confirmation interval starts again. A brief qualifying pose is not enough; let the simulation advance through the full interval.
Task failure conditions
- Any cloth point falling more than 100 mm below the tabletop ends the episode in failure.
Grader details (in addition to the requirements above)
- Robot safety (this benchmark's tooling): no gripper target goes lower than 15 mm below the tabletop; a commanded target that would bring any part of a gripper lower is stopped there, on the commanded path. Over the blanket the floor is the cloth's top: a target that would bring a gripper part other than its finger pads lower than the top of the cloth under it (less about one 1.5 mm layer) is stopped there too, so a gripper cannot crush the cloth into the table; the finger pads of a hand closing to pinch may reach about 6 mm into the cloth. The fingertips reach about 16 mm beyond the tool frame (TCP) along its approach axis, open or closed. Arm drive torques are capped (the effort limits in robot_spec), so an arm pushing against an obstacle stalls at that torque. An arm with any part more than 5 mm deep in a fixed object (a fixture, the table) is stopped where it is: its joint targets become its measured joints for that control step, so it stops pushing (reported in clipped[]).
- Forcing is recorded, not judged: an arm drive (not a gripper drive) at 95% of its torque cap or more while that arm's gripper, or a part it holds, presses on anything else with 20 N or more in total is forcing; 0.5 s of it on every physics tick is a forcing event in the evidence (
meta["safety"]), shown to the reviewer when a success is reviewed. Forcing does not end the episode and does not change the grade by itself. - Simulator breakdown (a cloth particle faster than 20 m/s): the episode ends as an infrastructure error, not your failure, unless an arm was forcing (even for one tick) within the 0.25 s before it: then it is your failure (forced_breakdown: what broke and what forced it).
- The blanket is 0.6 m x 0.48 m. Heights are measured at the cloth particles' centres.
- The release clearance is measured from one box around all cloth particles, grown by 8 mm: every robot collision box must stay at least 5 mm from it, i.e. at least 13 mm outside the cloth's bounding box, above its highest point too.
- Soft grasp patches: blanket: spatial radius 18 mm, material radius 18 mm, finger proximity 6 mm, maximum material strain ratio 1.5, exposed patch required. Both fingers must be near the same material patch; penetration and native constraint health checks still apply. Two hands may hold disjoint patches of one object. Material bounds, when present, restrict the admissible region.
- Grading: the live episode is the verdict: success needs it to succeed with the thresholds above (within its confirmation time); a live failure is final. Nothing is replayed to grade it: the video is rendered afterwards from the recorded rows and never changes the grade.
Rules (real-robot rules)
- No reset. The episode ends on success (all final conditions satisfied for
0.5 s), when your time is up, on a simulator error, or when the task's own failure predicate fires (then
meta["reason"]istask_failed). Knocked-over objects stay knocked over. - No privileged state. You see what the cameras see (RGB, and depth when you ask for it) plus the robot's own state:
joint positions, velocities and drive efforts, gripper openings, end-effector poses. Nothing tells you where the
objects are (no object poses or positions). The success implementation is not exposed, and of the simulator's internal
measurements only the safety readings of
meta["safety"]are (listed under Action types, below); the task requirements above still apply in full. - Your only budget is the time limit (
## Time limit); there is no step budget, but the episode ends after 200000 control steps, watches included (83 min of simulated time; a technical cap,spec["max_control_steps"]:meta["reason"]isstep_guard, and the episode is graded as it stands). Actions and simulated time are reported as cost. This service also ends the episode itself (meta["reason"]istimeout; it is graded as it stands) when its own count of that limit,meta["time_left_s"], reaches 0. That count starts at your first request to the service, so it never reaches 0 before your time is up. - There is nothing to hand in: the service records your episode as the trajectory and grades it. Leave your script
at
/app/output/gen.pyfor the record. - 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.
Time per call
- One control step takes about 0.38 s of wall clock here. A request returns when all of its steps have run, or
earlier: a call that has run for 900 s (
spec["max_call_wall_s"]) is stopped by the service at the next control step and returns what it executed (res.stoppedis"max_call_wall_s";res.meta["executed_rows"], orres.meta["control_steps_watch"]for a watch, says how far it got; the robot holds its last target). Checkres.stoppedbefore you send the next rows. Asubmitof the maximum 10 s chunk takes about 152 s here; aget_obs(seconds=...)watch fits up to about 1184 control steps (29.60 s, a 2x margin), and a longer one is cut short the same way. - The client waits longer than that (1800 s for
submit, 1020 s forget_obs), so a client timeout or a connection error means the connection or the service failed, not that the call is still on its way. Do NOT send the request again blindly (it could run twice):r.operation_status()tells what became of the last one. Itsstatusiscompletedorerror(withrows_beforeandcommitted_rows, the episode's control steps before and after it, andstopped),interrupted(the service restarted during it and resumes the same episode in the state after the last completed call:spec["on_service_error"],r.wait_ready()), oradmitted(not finished); an HTTP 404 error there means the service never admitted the request, so nothing ran. The service answers one request at a time, so this query waits while a call is running: repeat it if it times out. If your client hangs up, the service stops the call at the next control step. A request that arrives after its deadline is refused (408), and one whose operation id was already admitted is refused (409); neither moves the robot. A control step that hangs for more than 60 s past the call's limit ends the episode as an infrastructure error, not as your failure.
Client (/opt/tools/rcb_client.py, protocol eai-standard/2.4)
from rcb_client import Robot
r = Robot() # connects to the existing service; retries until ready (default timeout 3600 s)
spec = r.spec() # actions, cameras (intrinsics, mounting), robot_spec, world, kinematics, budget
obs = r.get_obs() # current frames from 4 cameras: obs.last[cam] -> uint8 (480,848,3)
obs.meta["proprio"] # {"layout": [72 names], "now": [...]}: groups in spec["proprio_groups"]
obs.meta["cameras"] # per camera: intrinsic_cv, extrinsic_cv, cam2world_gl of the LAST frame
obs = r.get_obs(depth=True) # + obs.last_depth[cam]: float32 (480,848) z-depth in metres, 0 = no reading
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("joint_position", A, dt=0.1) # A: (T, 14) rows dt seconds apart; streamed at 40 Hz with linear interpolation
res = r.submit("ee_pose", P) # P: (T, 16) tool-frame targets; inverse kinematics per row
res.meta["done"], res.meta["reason"], res.meta["plan"], res.meta["clipped"], res.meta["control_steps_chunk"]
res.video["cam_high"] # mp4 bytes of the execution (video="mp4" | "frames" | "both" | "none")
res.frames["cam_high"] # uint8 (N,480,848,3) at video_fps if requested
res.last["cam_right_wrist"]; res.proprio # last frame per camera; float32 (N, 72) proprio, one row per frame
res.frame_step, res.frame_time_s # per frame: control steps since the episode start, simulated time (s)
res.extrinsic_cv["cam_right_wrist"] # (N,3,4) world frame -> camera at every frame
res = r.submit("joint_position", A, dt=0.1, depth="frames") # + res.depth[cam]: (N,480,848) z-depth per frame (1 mm steps)
res.group("tcp_pose"); res.group("joint_effort", now=True) # proprio columns by group name
r.fk(q)["poses"]["left_tcp"] # forward kinematics of the 12 arm joints (spec["kinematics"]); moves nothing
r.ik({"left_tcp": pose}, seed=q) # inverse kinematics -> {"ok", "q", "error"}; moves nothing
res.save("/app/runs/003") # meta.json, <cam>.mp4, last/, frames/, proprio.npy, depth, frame_meta.npz
Cameras: cam_high (static); cam_low (static); cam_left_wrist (on the robot link left/gripper_base; it moves, so use the pose that comes with each frame); cam_right_wrist (on the robot link right/gripper_base; it moves, so use the pose that comes with each frame). Resolution 848×480. spec["cameras"][cam] gives the
intrinsics and the mounting: a static pose, or the parent link and the fixed offset (world_T_cam = FK(link) · link_T_cam_cv).
A point (X, Y, Z) in a camera's OpenCV frame (x right, y down, z forward) appears at u = fx·X/Z + cx, v = fy·Y/Z + cy;
depth is that Z. spec["robot_spec"] lists the joints with their position, velocity and effort limits, the grippers,
the PD gains and the tool frames; spec["world"] the frame conventions (the world frame: origin at the robot's root link on its mounting, +z up).
Action types
joint_position(14):left/waist,left/shoulder,left/elbow,left/forearm_roll,left/wrist_angle,left/wrist_rotate,left_native_gripper,right/waist,right/shoulder,right/elbow,right/forearm_roll,right/wrist_angle,right/wrist_rotate,right_native_gripper. armleft: 6 joint targets (rad), thenleft_native_gripper= native drive target (m, limits 0.002 .. 0.037; open/closed targets in robot_spec); armright: 6 joint targets (rad), thenright_native_gripper= native drive target (m, limits 0.002 .. 0.037; open/closed targets in robot_spec). Absolute targets tracked by PD controllers. Rows aredtapart (1/40 ≤ dt ≤ 0.5s, a multiple of the control period); a chunk may cover at most 10 s; out-of-limit values are clipped and listed inmeta["clipped"](limits in the spec). The gripper switches at the row. Useobs.meta["proprio"]["now"][:14]as the starting row to move smoothly. An arm joint target moves at most 0.04 rad per control step (1.6 rad/s, the same speed asee_poserows): a row that asks for more takes the control steps it needs, andmeta["clipped"]says so. The proprio groupgripper_opening(res.group("gripper_opening")) is the measured gap between each gripper's finger pads in metres (0 = the pads touch); the gripper entries ofjoint_posare in the unit of the gripper command above.ee_pose(16): per arm (in the order ['left', 'right'])x y z qw qx qy qz gripper; world frame (origin at the robot's root link on its mounting, +z up; the frame of the proprio TCP pose and the camera extrinsics); quaternions wxyz. Each row is solved by inverse kinematics (no collision checking) and driven to in joint space; an arm whose IK fails holds and is reported inmeta["plan"]. The pose is each gripper's tool frame (TCP; its approach and finger-closing axes are inspec["robot_spec"]["tcp"]), the same convention as the proprio TCP poses, so an observed pose is a valid target. At most 50 rows per submit. A row whose IK solution lies more than 0.5 rad from the current joints on any joint is refused the same way as a failed IK (for a small pose change that is another IK branch, which would swing the arm): split long moves into rows a few cm and degrees apart.- One call returns at most 2000 images (
max_frames_per_call, PROTOCOL §3 "Images per call"). - Both action types: no gripper target goes lower than 15 mm below the tabletop; a target that would bring any part of
a gripper lower is stopped there and listed in
meta["clipped"]. Every response'smeta["safety"]reports, since the previous call, forcing (the arms' pressing loads and forcing events), the deepest task contact, the longest time above its sustained limit and the review events (rigid families), the lowest rope / cord volume ratio (soft families) and the table-guard stops, against the limits above.
Grasping: assisted grasping (pbd_local_patch_v1): closing intent and bilateral finger proximity to a material patch of blanket must persist for 0.03 s, with penetration at most 2 mm and the TCP within 6 cm. The admitted patch follows through a local kinematic PBD attachment; the rest remains deformable. Opening by more than 0.2 % of gripper travel releases it. A hold is lost on excessive opening, material strain, invalid volume or follow error above 10 mm; a lost hand must open before reacquiring. Two hands may hold disjoint material patches of the same object; overlapping patches are rejected. Patch radii, strain limits and the exposed-patch requirement are declared in grasp_assist.targets.
Objects here: blanket.
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 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 10800 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).