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.

17.4 KB
Raw Blame

RoboARC (simulator package topogym) · buzz_wire_3d — STANDARD MODE (robot as a service, eai-standard/2.4)

You control a robot (a 7-DoF Franka Panda arm with a Robotiq 2F-85 parallel gripper 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: Guide the metal loop along the entire wire from start to finish without touching the wire, then release the tool on the finish support.

Success requirements

  • Start within 10 mm along the wire from its starting end and traverse continuously until within 10 mm of its finishing end. Keep one unambiguous wire crossing inside the loop. Skipping branches or taking the loop off the route before completing traversal does not count; restart from the beginning if tracking is lost.
  • After completing traversal, lower the tool onto the finish support. The completed traversal remains valid when the loop leaves the wire to rest on the support.
  • Match the finish resting pose within 5 mm and 10 degrees. A half-turn about the handle axis is an equivalent orientation. The tool must actually contact the finish support.
  • Keep all metal parts of the tool clear of the metal wire throughout the episode. Wooden-handle contact is not a metal-wire failure. Remove all robot contact before final confirmation.
  • 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 1 mm/s and its displacement from the start of confirmation at most 1 mm. Each target rigid body's angular speed must be at most 0.02 rad/s and angular drift at most 0.02 rad.
  • Keep all final conditions satisfied together for at least 1 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 metal-tool touch of the metal wire ends the episode in failure, including brief or zero-force touches.
  • The tool 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. The fingertips reach about 6 mm beyond the tool frame (TCP) along its approach axis when open and about 19 mm when closed (the Robotiq fingertips move forward as they close). 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 (the response does not report these stops).
  • 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.
  • The release clearance is measured between axis-aligned bounding boxes: one around each collision geometry of the whole robot (every link of both arms) and one around each collision geometry of the tool, so the true gap usually has to be larger than 5 mm.
  • The loop's usable opening: the wire's centreline must cross the loop's disk less than 12.67 mm from the loop's centre (loop inner radius 14.14 mm minus the 1.47 mm wire radius).
  • Continuous traversal: from one physics tick to the next, the crossing point may move along the wire by at most twice the loop's own motion in that tick (its displacement plus 12.67 mm times its rotation angle) plus 3 mm. A larger jump, no crossing, two crossings or a tangency cancels the traversal; it must then start again within 10 mm of the starting end, the end where the tool rests at the start.
  • The finish support is the deck, and the finish resting pose is the start resting pose repeated at the wire's finishing end: the tool lies on the deck with its loop at that end of the wire and its handle pointing inward, the way it lies at the start.
  • Metal contact is sampled at all 4 solver substeps of every tick. If any tick since the start had incomplete contact coverage (a simulator-side condition), the episode can no longer succeed.
  • Grasp regions (assisted grasping, see Grippers above; one sphere per graspable part): wand: radius 25 mm, on the wand's grip. Both finger contacts must lie inside the part's sphere; a part touched elsewhere is grasped physically.

Rules (real-robot rules)

  • No reset. The episode ends on success (all final conditions satisfied for 1 s), when your time is up, on a simulator error, or when the task's own failure predicate fires (then meta["reason"] is task_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"] is step_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"] is timeout; 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.py for 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.1 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.stopped is "max_call_wall_s"; res.meta["executed_rows"], or res.meta["control_steps_watch"] for a watch, says how far it got; the robot holds its last target). Check res.stopped before you send the next rows. A submit of the maximum 10 s chunk takes about 40 s here, and any watch up to 30 s fits (both with a 2x margin).
  • The client waits longer than that (1800 s for submit, 1020 s for get_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. Its status is completed or error (with rows_before and committed_rows, the episode's control steps before and after it, and stopped), 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()), or admitted (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 3 cameras: obs.last[cam] -> uint8 (480,848,3)
obs.meta["proprio"]                           # {"layout": [40 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, 8) rows dt seconds apart; streamed at 40 Hz with linear interpolation
res = r.submit("ee_pose", P)                  # P: (T, 8) 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["agentview"]                          # mp4 bytes of the execution (video="mp4" | "frames" | "both" | "none")
res.frames["agentview"]                         # uint8 (N,480,848,3) at video_fps if requested
res.last["wrist"]; res.proprio              # last frame per camera; float32 (N, 40) 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["wrist"]                    # (N,3,4) world -> 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"]["arm_tcp"]                   # forward kinematics of the 7 arm joints (spec["kinematics"]); moves nothing
r.ik({"arm_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: agentview (static); front_oblique (static); wrist (on the robot link hand; 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; no positions of the scene are given).

Action types

  • joint_position (8): joint1, joint2, joint3, joint4, joint5, joint6, joint7, arm_native_gripper. arm arm: 7 joint targets (rad), then arm_native_gripper = native drive target (rad, limits 0 .. 0.8: 0 = open, 0.8 = closed, the Robotiq 2F-85's driver joint; open/closed targets in robot_spec). Absolute targets tracked by PD controllers. Rows are dt apart (1/40 ≤ dt ≤ 0.5 s, a multiple of the control period); a chunk may cover at most 10 s; out-of-limit values are clipped and listed in meta["clipped"] (limits in the spec). The gripper switches at the row. Use obs.meta["proprio"]["now"][:8] 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 as ee_pose rows): a row that asks for more takes the control steps it needs, and meta["clipped"] says so. The proprio group gripper_opening (res.group("gripper_opening")) is the measured gap between each gripper's finger pads in metres (0 = the pads touch); the gripper entries of joint_pos are in the unit of the gripper command above.
  • ee_pose (8): per arm (in the order ['arm']) 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 in meta["plan"]. The pose is each gripper's tool frame (TCP; its approach and finger-closing axes are in spec["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's meta["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 (contact_weld_v1): a gripper whose command moves towards closed takes hold of a graspable part (wand) once both fingers touch the same part inside its grasp region, the tool frame within 6 cm of it and the penetration at most 2 mm, for 0.02 s; the part then follows the gripper rigidly. Any command that opens the gripper (by more than 0.2 % of its travel) lets it go. A hold that breaks (the fingers open more than 15 %, the part drifts 1 cm / 0.15 rad from its held pose, the hold has to push or pull its part with more than 65 N averaged over 20 ms, or no finger has touched the part for 0.2 s) is lost, and the gripper must open before it can take hold again; that force is reached when, for example, two held parts that hook into each other are pulled apart, or a held part is pressed into another object. Two grippers never hold the same part; other objects are grasped physically (friction).

Objects here: wire_base, wire, wand.

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, 16 GiB of memory, 4096 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).