FD-2 feeder jam clearing and restart
harbor run -t reactive-labs/feeder-jam-clearingharbor download reactive-labs/feeder-jam-clearingHello,
Feeder FD-2 at our Ashby Row plant jams about twice a shift: a housing with a burr wedges under the track cover and the line stands until a fitter comes. A Franka Panda now stands beside the feeder. Please write the controller that clears the jam and restarts the line: open the guard onto its stay, take the hook tool and draw the jammed housing free, put the tool back, scrap the damaged housing, turn the wrong-way housing in the queue, shut and latch the guard, then work the escapement lever and put the next two housings into the station nest. The feeder, tool holder, nest and scrap bin are bolted down for each run but never in quite the same place, and nothing reports where they are: the arm has an overhead camera with depth, a wrist camera, its joint readings and four machine signals. Things go wrong on the way (a freed housing slips back into the track, the guard comes off its stay, a housing turns round under the cover), and the controller has to notice and put it right. If the gripper or the wrist camera fails, it has to stop safely and say which one failed.
Everything is in /app:
REQUEST.md);FEEDER_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
(--band in_range|in_between|outside, --seed N).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 gripper) or a status: {"status": "done"}, or
{"status": "abort", "fault": "dead_gripper"} / "wrist_cam_freeze". Don't change scene.xml, task.py or
robot/panda.xml.
Thanks, Process engineering, Calder & Wren Mouldings
/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,
camera_stamps, io). qpos and qvel follow joint_names; ctrl echoes the commands as accepted (a failed
actuator still echoes its command); images["overhead"], depth["overhead"] and images["robot/wrist_cam"]
update at 1 Hz; objects is empty; io holds jam, guard_latched, part_at_pick 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. The whole acceptance run has 1800 s.run_gauntlet.py runs them: 2 at T2, 6 at T3 (each upset
twice) and 5 at T4 (each fault twice, one run without a fault), over all three layout bands. The groups are in FEEDER_SHEET.md.FEEDER_SHEET.md (Faults) asks, and scores 0 if no stage was done before the fault.
Otherwise it scores 1.0 if the stages done at the fault are at least the stages due at cycle pace, and
otherwise the share of the run's stages done, as for a run without a fault.