GB-40 gearbox inspection cover refit with a tightening pattern
harbor run -t reactive-labs/gearbox-cover-refitharbor download reactive-labs/gearbox-cover-refitHi,
Bay 4 has an I2RT YAM arm in the cover refit cell: a GB-40 gearbox with its inspection cover off is bolted on the table under an overhead camera, with the cover, a tray of gaskets and the scrap bin beside it. Please write the controller that refits the cover: the new gasket (green tab) over the two dowels, the cover on the dowels over it, its four captive screws started, run down snug in the star order, taken to the final torque in the same order, and the old torn gasket into the scrap bin (it lies on the tray, or it is still on the flange and has to come off first). The screws are turned with the wrist. The tray also holds a look-alike gasket one size up with a blue tab, which must not go on. Nothing reports where anything is: the arm has an overhead camera with depth, a wrist camera, its joint and finger readings and the wrist motor's torque reading. Things go wrong in the cell (a screw cross-threads when it is started, the gasket rides up a dowel as the cover goes on, a tight screw or two back off when another is pulled down) and the controller has to notice and put it right. The screws lock once they are tight: a locked screw that is pulled up again jumps past the limit, so the check pass has to find which screws backed off without turning the others. 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);WORK_SHEET.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 7 position commands (6 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 or robot/yam_linear_4310.xml.
Thanks, Line lead, gearbox rework, Hollin Drive plant
/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 holds overhead and robot/wrist_cam and depth holds overhead, updated twice
a second with camera_stamp; objects is empty; io holds cycle_limit_s and wrist_torque_nm. 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 T1, 3 at T2, 6 at T3 (two
per upset) and 4 at T4 (two per fault), in the three layout bands of run_gauntlet.py --band. The groups are in
CELL_SHEET.md. Every run has its own gearbox place, tray order, place of the old gasket (tray or flange), cover
place, screws and sensor errors, drawn by task.py.CELL_SHEET.md: a pulled insert, a crossed screw driven, a pinched gasket, a dropped cover, the bench items
moved, arm force, squeeze and joint limits, at hand-over a screw out of its window or something left on the
gearbox, a part left held up in the gripper, a controller error or wall-time limit, an abort when nothing
failed) caps the run at the stages met before it, and at 0.5.