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.
DexHand: Sweep debris into a held dustpan
Sweep all six pieces of debris on the floor into the dustpan and lift the loaded pan. A fixed two-arm robot starts with a broom held in its right hand and a dustpan held in its left hand; the pan's entrance ramp rests on the floor next to six small rigid debris pieces (packaging pieces, bottle caps, a wood chip and a crumpled-paper ball). Push the debris over the ramp with the broom's bristles, then raise the dustpan. Success requires 2000 consecutive physics steps (1.0 s) in which all of these hold: in the dustpan's own frame every collision shape of all six pieces lies over the pan floor (at least 1 mm inside its 460 mm side-to-side width, inside its 262 mm depth, no lower than 1 mm below the top of the floor plate and no higher than 110 mm above the pan origin); all six pieces touch the pan (contact force at least 1 mN); the pan origin is at least 50 mm above the floor; every piece moves slower than 0.03 m/s and rotates slower than 0.8 rad/s; and every piece has been touched by the bristles at some point. The episode ends with that success, or fails immediately and permanently when: a piece leaves the floor work area (world x outside [0.45, 1.00] m, y outside [-0.50, 0.40] m, or its center more than 0.25 m above or 0.01 m below the floor at z = -0.10 m); any part of the robot touches a piece of debris with at least 1 mN (sweep with the broom only); from 1.2 s on, fewer than two collision parts of a tool's own hand press on its handle with at least 0.01 N each, or the handle's grip point has moved more than 25 mm or turned more than 0.25 rad relative to that palm since 1.2 s (dropped or slipping tool); a tool is pressed (more than 0.01 N) by any robot part other than its own hand; the arms, torso or the two hands collide with each other; or the simulation becomes unstable. Five of six pieces, an unlifted pan or a hold shorter than 1 s is not a success. Only the robot's motor targets act; the tools and the debris are free bodies without welds, scripted motion or applied forces. One control row sets every motor target for one 0.5 ms physics step (2000 Hz); an episode has at most 160000 rows (80 s).
The robot is a fixed Tianji Marvin base with two seven-joint arms. The left arm's hand holds the dustpan by its handle; the right arm's hand holds the broom by its shaft. Arms and fingers are position servos with native force bounds; the broom, the dustpan and the debris move only through contact and gravity. At the start the current targets keep both tools in the hands; the first 1.2 s are a settling period in which the grip is not yet judged. The simulator integrates at 0.5 ms and every action row is one physics step, so rows are a 2000 Hz control. The service simulates slower than real time (several seconds of CPU per simulated second).
Hands
Two genuine manufacturer hand models are available: sharpa (Sharpa Wave, 22 finger actuators; the default) and wuji (Wuji Hand 2.2, 20 finger actuators). The task, scene, mount, objects and success predicate are the same for both; only one hand is used per episode.
This task uses two hands of one model on the two arms of a fixed robot: Sharpa Wave (default) or Wuji Hand 2.2. Every row holds both arms' joint targets and both hands' finger targets (layout below). With Wuji, both hands start closed on the same broom and dustpan (assets/reset_wuji.npz: the frozen arm, tool, debris and bristle coordinates with Wuji finger joints).
The robot service runs the hand named by DEXHAND_HAND on the sim service (default sharpa); the agent cannot switch it during an episode. spec()["hand"] names it, and spec()["action_types"]["joint_position"] gives the row width (58 for sharpa, 54 for wuji) and the exact order. The episode record names the hand; the service grades the episode it ran with that hand.
Sharpa rows
(58 targets): the 7 left-arm joints SHOULDER_PITCH_L_J1_target ... WRIST_ROLL_L_J7_target, the 7 right-arm joints
SHOULDER_PITCH_R_J1_target ... WRIST_ROLL_R_J7_target (radians), then the 22 left-hand and the 22 right-hand
Sharpa Wave finger targets (radians).
Wuji rows (54 targets): the same 14 arm targets, then the 20 left-hand and the 20 right-hand Wuji Hand 2.2
finger targets (l_wuji_l_THJ0 ... l_wuji_l_LFJ3, r_wuji_r_THJ0 ... r_wuji_r_LFJ3: thumb CMC flexion, CMC
abduction, MCP, IP, then index/middle/ring/pinky MCP flexion, MCP abduction, PIP, DIP; radians). With Wuji the start
differs only in the finger joints and their targets: both Wuji hands start closed on the same broom and dustpan
(the arm, tool, debris and bristle coordinates and the arm targets are those of the Sharpa start), and
the targets at the start keep them. The task, predicate and fail-fast rules are the same for both hands.
Episodes and resets
You have 20 resets (spec["budget"]["reset"], which is authoritative: if it says 0, there is no reset
and the one episode is the run). A reset puts the robot and every object back in the same frozen starting state and
starts a new episode, either abandoning the running one or after one has ended; it takes no simulated time and
returns the start's images and proprioception:
res = r._post("/reset", {"cameras": ["overview"]}, [], 900) # POST /reset (the 2.2 client has no reset())
res.meta["episode"], res.meta["resets_left"]
Once an episode has ended, submit raises EpisodeOver until you reset. Only the last episode is graded: an
episode you reset away is never graded, a success ends the run at once (no reset after it), and when your time is up
the episode then running is the one graded. The wall clock is the run's and never restarts; meta["episode"] and
meta["resets_left"] count the episodes (meta["control_steps"] is the current episode's,
meta["control_steps_total"] all of them).
Robot service
The simulator runs in a separate service. You receive camera RGB, optional calibrated depth, and the robot's own joint
positions, velocities, actuator efforts, both palm poses (l_hand_palm, r_hand_palm) and current targets. Object poses, contacts and the predicate
state are not published. A failure ends the episode; a reset starts a new one (see ## Episodes and resets). The
service records every executed row and judges the graded episode as it ran (that is the verdict; nothing is replayed). Leave your controller at /app/output/gen.py; no trajectory
hand-in is needed.
from rcb_client import Robot
r = Robot()
spec = r.spec()
spec["hand"], spec["action_types"]["joint_position"]["layout"]
obs = r.get_obs(cameras=["work"], depth=True)
obs.last["work"] # RGB uint8 (480, 640, 3)
obs.last_depth["work"] # z-depth in metres
q = obs.group("joint_pos", now=True)
res = r.submit("joint_position", rows, dt=0.0005, interpolate="hold", video="none")
r.fk(q) # robot-link forward kinematics; no physics is stepped
r.status()
rows is (T, D) in spec["action_types"]["joint_position"]["layout"] order. dt must be a multiple of
1 / spec["control_hz"] (0.0005 s), at most 0.5 s; a chunk covers at most spec["max_chunk_s"] seconds. hold
keeps each row for dt; linear interpolates from the previous target. The client sends rows as float32. Targets are
clipped to the published joint limits and clipping is reported. Cameras are overview, work (the floor area and the pan),
pan and side, 640 x 480, fixed in the world. Requests return at most 1,000 camera images; ask for fewer cameras or a
lower video_fps for long chunks. get_obs(seconds=...) holds the current targets for up to 30 s and records those
steps; without seconds it only observes. Measured poses use WXYZ quaternions; world z is up, metres, the robot base at
the origin, the floor the plane z = -0.10 m. Forward kinematics covers the robot's own links; no IK primitive is
supplied. If the service connection fails, call r.wait_ready() and inspect r.status() before continuing. Crash
recovery resumes the same journaled episode, without a reset, and the wall-clock budget keeps running.
One call returns at most 1000 images (max_frames_per_call, PROTOCOL §3 "Images per call").
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: 2 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).