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.
ABC Sim · throw bottles in the bin -- frozen instance
You control a bimanual robot -- two I2RT YAM arms (6 revolute joints and a parallel two-finger gripper each) side by side at the near edge of a table, facing +x (the left arm is the one at +y) -- via Python (ABC Sim, abc_sim on MuJoCo 3.6.0).
Task: Get all four plastic bottles into the bin -- throw them in or put them in. Success: all 4 bottles are inside the bin at the same time: each bottle's centre of mass within the bin's inner wall radius of the bin's axis, not below the bin's floor, and at most about one bottle length (~0.11 m) above its rim (a bottle may still be held). The goal must hold for 30 consecutive control steps (1.02 s); the episode then ends in success.
Four empty plastic bottles lie on the table; a round bin stands on the table (it is a loose object, not fixed). The task's directive, as the scene states it: "throw plastic bottles in bin".
This is a fixed scene instance: the start state, the objects and the goal never change between resets. You may reset and retry as many times as you want. Your deliverable is one replayable trajectory, not a general policy.
Deliverable
Write the final trajectory to /app/output/trajectory.npz with Session.save_trajectory(...) (below): (T, 14) rows,
one per control step, at most 20,000 rows. It is replayed open-loop from the same initial state in two fresh processes and
scored 1 if both episodes end in success in the same state, else 0. Also leave the script that produced it at
/app/output/gen.py.
Save a trajectory as soon as you have one that works, improve it while time remains, and do not stop early.
Tooling (already installed; run python from any directory)
from rcb_abc import Session
s = Session(instance="/app/instance.npz") # a few seconds
s.prompt # the directive
s.reset() # back to the frozen initial state (unlimited)
s.state() # privileged: robot joints, tool frames, every free body's pose, the task's
# evaluator and runtime state, the scene's randomization record
s.objects() # every free body: [x, y, z, qw, qx, qy, qz] in the world frame
s.robot_q(); s.hold_action() # the 14 action coordinates now (holding them keeps the robot still)
s.model, s.data, s.env # MuJoCo model / data and the abc_sim env: read them; only the rows you record are replayed
s.step(a) # one control step (14 numbers); False once the episode is over
s.status() # {'success', 'done', 'reason', 'steps', 'success_run', 'state_sha', 'info', ...}
snap = s.snapshot(); s.restore(snap) # save / restore a mid-episode state exactly (search, planning)
s.record_start(); ...; actions = s.record_stop() # (T, 14) rows, one per control step
s.replay(actions) # resets, replays open-loop until the episode ends, returns status -> self-check
s.save_trajectory(actions, "/app/output/trajectory.npz")
s.render_frame("top"); s.render_depth("top"); s.camera_info("top") # RGB (480, 640, 3), z-depth (m), calibration
s.render_video(actions, "/app/output/check.mp4")
s.kinematics({"op": "fk", "q": q14}); s.kinematics({"op": "ik", "targets": {"left_tcp": [x, y, z, qw, qx, qy, qz]}})
Bodies: the bottles are bottle_1 ... bottle_4, the bin is bin_container. Tool frames: left_tcp / right_tcp (each arm's tool centre point) and left_grasp /
right_grasp (the point between the finger pads); s.kinematics solves IK for them with each arm's own six joints.
Cameras: top (above and behind the arms, looking down at the table), left and right (wrist cameras on the arms), overhead, left_side, right_side. There are no motion primitives: every skill is yours to build from joint targets.
CLI equivalent of the grader:
python /opt/abc-tools/rcb_abc.py replay --instance /app/instance.npz --traj /app/output/trajectory.npz --repeat 2
Conventions
- World frame: the table's; x forward (away from the arms' bases), y to the left as the arms face the table, z up;
metres, radians, quaternions
wxyz. Directions are as the arms face the table: left = +y, right = -y, behind = +x (farther from the arms), in front = -x (nearer to them). - Action: 14 numbers per control step:
[left_joint1..6, left_gripper, right_joint1..6, right_gripper]-- each arm's six joint position targets (rad) and its gripper opening (0 = closed, 1 = open, each finger 0.0475 m from closed; up to 1.042). The joints and grippers are position servos that track the targets (MuJoCo position actuators with damping and force limits); a target outside a joint's range is clamped to it, and the simulator rounds every command to float32. One control step = 17 physics steps of 2 ms = 0.034 s (29.4 Hz). - There is no step budget: your wall-clock time is the limit. An episode ends at success;
s.stepthen refuses further rows untils.reset(). Rendering runs on the GPU (EGL) when one is available.
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, 8192 processes and threads, 10 GiB of disk (new files under /app, /tmp and /root) and one GPU, 5 GiB of its memory. 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).