Kit picking from a mixed tote into the KT-8 tray
harbor run -t reactive-labs/kit-pickingharbor download reactive-labs/kit-pickingHi,
Cell KC-2 in our stores has a Franka Panda between a tote of loose parts and a KT-8 kit tray. For every KA-8 kit order stores prints a pick list: six to eight lines, each naming a tray pocket, a part number and a note. Please write the controller that reads the list and fills the tray. On two lines of every list the note substitutes the other size of the part, and the pocket then takes the substitute. The sleeves differ only in length, the washers only in diameter, and the left and right hand brackets are mirror images that seat only in their own pocket and only one way round. Hex nuts that no kit uses are mixed in, and two of them lie on other parts: lift them off first, never drag a part out from under one. Nothing reports where anything is: the arm has an overhead camera with depth and its joint and finger readings. The tray stands loose on the bench and moves if pushed. Things go wrong in the middle of a kit (a part slips back into the tote as it is lifted, the tray gets knocked, a seated part springs up and ends half out of its pocket) and the controller has to notice and put it right. If the gripper stops responding or the camera freezes it has to put down what it holds, stop, and say which of the two failed.
Everything is in /app:
REQUEST.md);PICK_LIST_FORMAT.md) and the script behind the
template (picklist.py, which also holds the part sizes and the current tray pocket table);PARTS_SHEET.md);TRAY_DRAWING.md);CELL_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, picklist.py or robot/panda.xml.
Thanks, Kitting supervisor, Harrowgate Precision Assemblies
/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"] and depth["overhead"] update once a second with camera_stamp;
objects is empty; io holds pick_list (the list 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: 1 at T2, 6 at T3 (two per upset)
and 4 at T4 (two per fault), at least three in each layout band of run_gauntlet.py --band. The groups are in
CELL_SHEET.md. Every run has its own pick list and tote layout, drawn by picklist.py and task.py.PICK_LIST_FORMAT.md defines it (exactly one piece in the pocket, the right part, seated), and is counted only if
met within the cycle limit (40 s plus 20 s per line).CELL_SHEET.md); a controller error or wall-time limit; an abort when nothing failed.