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.

10.9 KB
Raw Blame

DexHand: Remove and reinstall a vacuum dust bin

Remove the dust bin from the handheld vacuum on the counter and reinstall it. The bin is held by its two lower tabs on ledges at the bottom of the motor housing and by a spring latch at the top: the latch tooth on the red release button stops the bin's top catch from tilting out, and a fixed lip over the catch bridge stops it from being lifted straight out, so the top must tilt out from under the lip, which the tooth only allows while the button is pressed. Stages, in order: (1) release and remove: press the release button by at least 5.8 mm while the bin is still in its seat (bin origin within 5 mm of its seated pose), then take the bin away until its origin is more than 30 mm from its seated pose (both measured in the vacuum-body frame); (2) reinstall: put the bin back so that its origin is within 3 mm and its orientation within 0.05 rad of the seated pose (vacuum-body frame), the release button is back up (travel at most 1.5 mm, latch tooth raised) and the bin's catch is behind the tooth face (at most 0.5 mm in front of it); (3) let go: the stage-2 condition must hold with no hand contact on the bin, the vacuum body or the button, the bin and the vacuum body at rest (linear speed at most 0.01 m/s, bin angular speed at most 0.1 rad/s), for 50 consecutive controls (1 s). The episode ends with success at that moment; partial completion never counts. The episode ends immediately with failure, checked after every 1 ms physics substep, when the vacuum body moves more than 50 mm or tilts more than 0.35 rad from its start pose, when the bin falls (centre-of-mass downward speed above 0.99 m/s, i.e. a free fall from 5 cm, or above 0.55 m/s while nothing touches it), touches the floor or a table leg, its origin drops below the counter top (z < 0.65 m) or leaves the workspace box x in [0.2, 1.1] m, y in [-0.45, 0.45] m, z in [0.6, 1.2] m, when bin and vacuum geometry interpenetrate by more than 4 mm, or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets (the two wrist stages and the fingers of both hands) are allowed; no object teleports, welds or applied forces. The episode allows at most 3000 controls at 50 Hz.

You control two dexterous hands, each mounted on its own six-DoF wrist positioning stage (three prismatic and three serial revolute joints, no arm): the right hand on the stage wrist_stage (origin task.json wrist_stage.origin) and the left hand (the right hand's mirror image) on left_wrist_stage (origin task.json left_wrist_stage.origin). Both are needed as in the real task: one hand steadies the vacuum (or works the button) while the other handles the bin. The stages and the fingers are position actuated in the physics engine under native force bounds; the vacuum body, the dust bin and the release button move only through contact and their passive dynamics (the button is a spring-loaded slide). The controller runs at 50 Hz, with twenty 1 ms physics substeps.

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. Two hands, each on its own six-axis wrist stage. Sharpa (56): right stage (6), right fingers (22), left stage (6), left fingers (22). Wuji (52): right stage (6), left stage (6), right fingers (20), left fingers (20). The left hand is the right Wave mirrored in y (shared arm_rig.mirrored_left_wave); one row is one 50 Hz control (twenty 1 ms physics substeps). Choose the hand with Session(..., hand="wuji") or the environment variable DEXHAND_HAND=wuji (default sharpa). Action rows are 56 wide for sharpa and 52 wide for wuji; s.actuator_names gives the exact order. s.save_trajectory(actions, path) records the hand in the archive (hand member). The verifier rebuilds the scene with the recorded hand (default sharpa when the member is absent) and rejects a trajectory whose width does not match that hand; rows are never padded, truncated or converted between hands.

Scene and frames

The world frame has z up; lengths are in metres, angles in radians, quaternions WXYZ. A handheld vacuum (free body vacuum_body, 0.752 kg) stands on its base skid on the counter (top at z = 0.65 m); its transparent dust bin (free body dust_container, 0.18 kg) sits in front of the motor housing, with the nozzle overhanging the counter edge. The bin is held at the bottom by two tabs resting on two ledges inside its mouth and at the top by the latch tooth of the red release button (release_button, spring-loaded slide joint button_depression, 0 to 6 mm of travel, 600 N/m; the source scene's values). The tooth's ramp lets the bin's catch push it down while the bin is closed; pressing the button (nearly its full 6 mm) lowers the tooth below the catch. Latch tooth, catch and bridge have the source's plastic friction 0.55, so pushing the catch over the raised tooth needs a large closing force. A fixed lip on the housing sits 0.7 mm above the catch's bridge, so the seated bin cannot be lifted straight out: its top has to tilt out from under the lip, which the raised tooth prevents. The vacuum-body frame is the body frame of vacuum_body; the seated bin pose in that frame is task.json checker.seat_pos (metres) and checker.seat_rot (row-major 3 x 3). Cameras: overview (the counter from the front left) and closeup (the latch and the bin).

Action layout

Each row is one 50 Hz control holding a position target for every actuator, in native actuator order:

  • sharpa (56 values): 0-5 the right stage wrist_x, wrist_y, wrist_z (metres, offsets from its origin, world axes) and wrist_rx, wrist_ry, wrist_rz (radians, serial XYZ joints, not a quaternion); 6-27 the 22 right Sharpa Wave finger targets right_thumb_CMC_FE ... right_pinky_DIP; 28-33 the left stage left_wrist_x ... left_wrist_rz (same convention, its hand mounted without rotation); 34-55 the 22 left finger targets left_thumb_CMC_FE ... left_pinky_DIP.
  • wuji (52 values): 0-5 the right stage, 6-11 the left stage, 12-31 the right Wuji Hand 2.2 fingers r_wuji_r_THJ0..3, r_wuji_r_FFJ0..3, r_wuji_r_MFJ0..3, r_wuji_r_RFJ0..3, r_wuji_r_LFJ0..3, 32-51 the left Wuji fingers in the same order (l_wuji_l_...); s.actuator_names is authoritative.

Every target must lie within s.model.actuator_ctrlrange. The frozen start targets of each hand are in task.json (initial_targets).

Deliverable

Save /app/output/trajectory.npz with a finite numeric actions array of shape (T, 56) for sharpa or (T, 52) for wuji, at most 3000 rows, plus the hand member (s.save_trajectory writes both), and /app/output/gen.py, the script that produced it. The separate verifier rebuilds the frozen scene with the recorded hand and replays only these motor targets in two fresh processes; both replays must succeed and end in the identical state hash. A replay stops at the first success or the first failure; later rows are not executed. Object poses, configuration overrides, pickled arrays and success claims are not deliverables and are never read. Save the archive compressed (numpy.savez_compressed; s.save_trajectory does): an archive file larger than 64 MB is rejected with reward 0.

Tooling

from rcb_dexhand import Session
s = Session("vacuum_bin_reseat")                # default hand: DEXHAND_HAND or "sharpa"
s = Session("vacuum_bin_reseat", hand="wuji")   # explicit hand
s.hand, s.action_dim, s.actuator_names          # selected hand, row width and exact row order
s.hold_action()                                 # current motor targets
s.model.actuator_ctrlrange                      # native target limits
s.model, s.data                                 # privileged MuJoCo model and state
s.features()                                    # seat error, button travel, catch clearance, contacts, speeds
s.status()                                      # success, done, reason, steps, stage (0..3), total_stages
s.step(row)                                     # twenty 1 ms physics substeps; a no-op once the episode is done
s.snapshot(), s.restore(snap)                   # save / restore the full simulator and predicate state
s.render_frame("overview")                      # RGB uint8 (480, 640, 3); also "closeup"
s.reset()                                       # exact frozen reset
s.replay(actions)                               # reset, run rows until the episode ends, return status()
s.save_trajectory(actions, "/app/output/trajectory.npz")

Read /opt/tools/task.json, scene.py, checker.py and runtime.py for the complete geometry, failure checks and predicate (the same code grades your archive). s.features() reports the quantities of the predicate: seat_distance_m, seat_angle_rad, button_travel_m, released_in_seat, catch_behind_tooth_m, hand_contacts, the bin and vacuum speeds and body_displacement_m.

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, 7 GiB of memory, 2048 processes and threads and 10 GiB of disk (new files under /app, /tmp and /root). Your container has no GPU. 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 a simulator takes to start counts. When it is up you are stopped without warning and only what is in /app/output/ at that moment is graded, so save a deliverable as soon as you have one and overwrite it whenever you have a better one. 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).