Handover list at the DU-3 drawer unit
harbor run -t reactive-labs/drawer-handoverharbor download reactive-labs/drawer-handoverHi,
Bench 4 in our calibration lab has a Franka Panda in front of the DU-3 drawer unit: three drawers side by side, a shelf on top, a bench mat to the right. At the end of each shift somebody leaves a handover note with eight lines: which gauges and sockets go back in which drawer, which vial goes up on the shelf, what the next shift wants on the mat, which drawers to leave open, and one item that is not ours and must not be moved. Please write the controller that reads the note and does the list before the next shift arrives. The lines are in no particular order and some can only be done after others (a gauge lying on the one that is wanted, a home slot something else still stands in, a drawer that is shut). The bench is cluttered, the vials differ only by cap colour, the gauges by their band and the sockets by size. Nothing reports where anything is, and the unit is not always bolted in the same place: the arm has an overhead camera with depth, a wrist camera and its joint and finger readings. The drawers have a catch at each end, one of them sticks, the vials are glass and the shelf has a lip. Things go wrong in the middle of a list (a drawer rolls shut, or the sticking one rolls part of the way back, while the arm is fetching something for it; a gauge slips out of the gripper), and the note sometimes names the wrong drawer for an item. The controller has to notice and put it right. If the gripper stops responding or the overhead camera freezes it has to put down what it holds, stop, and say which of the two failed.
Everything is in /app:
REQUEST.md);HANDOVER_FORMAT.md) and the script behind our note template
(handover.py);ITEM_SHEET.md);UNIT_DATA_SHEET.md);ATTEMPT_LOG.md);scene.xml, robot/) and the acceptance setup (task.py, gauntlet/);python3 /app/run_gauntlet.py --controller /app/controller.py --tiers T0,T1,T2,T3,T4 --episodes 2.The motion-planning, vision and sim-to-real skills our integrator uses are in /app/skills/.
Please write /app/controller.py with a Controller class (__init__(model_info), reset(obs), act(obs)).
act returns the 8 position commands (7 joints, then the finger opening in metres) or a status:
{"status": "done"} or {"status": "abort", "fault": "dead_gripper"} / "perception_freeze". Don't change
scene.xml, task.py, handover.py or robot/panda.xml.
Thanks, Lab supervisor, Calder Row Instruments
/app/controller.py. It runs in its own process and receives only model_info (keys control_dt_s,
episode_s, timestep, joint_names, actuator_names, ctrl_low, ctrl_high, observed_bodies,
perception_hz, scene_xml, max_command_step_frac, arm_prefixes, cameras) and, every 20 ms, the
observation (keys time, qpos, qvel, ctrl, objects, objects_stamp, images, depth, camera_stamp,
io). qpos and qvel follow joint_names; ctrl echoes the commands as accepted (a failed gripper still
echoes its command); images["overhead"], depth["overhead"] and images["robot/wrist_cam"] update once a
second with camera_stamp; objects is empty; io holds handover_note (the note as text) and
cycle_limit_s. The controller may use numpy, mujoco and the files in /app. Wall-time limits per call and per run
are in /app/gauntlet/harness.py.run_gauntlet.py runs them: 2 at T2, 6 at T3 (two per upset)
and 4 at T4 (two per fault), four in each layout band of run_gauntlet.py --band. The groups are in
UNIT_DATA_SHEET.md. Every run has its own note and layout, drawn by handover.py and task.py.HANDOVER_FORMAT.md defines it, and is
counted only if met within the cycle limit (40 s plus 26 s per line of the note). A transfer into a drawer is
counted only if that drawer is left as the note's drawers line asks.UNIT_DATA_SHEET.md); a controller error or wall-time limit; an abort when nothing failed.