FM-3 filter element change and line restart
harbor run -t reactive-labs/filter-changeharbor download reactive-labs/filter-changeHello,
The FM-3 filter on the line 4 coolant manifold at our Fenwick Lane plant needs its element changed every shift, and a Franka Panda now stands beside it. Please write the controller that does the change and restarts the line: shut the isolation valve onto its seat by feel, open the bleed and wait for the gauge to fall below the safe pressure, turn the bowl off its bayonet and stand it on the mat, put the old element in the bin, fit a new FC-5 element from the rack (an FC-25 that looks the same apart from its cap stands next to it), put the bowl back and turn it home, shut the bleed, open the valve and see the pressure come back. Doing these in the wrong order stops the line. The manifold is bolted in one of two places and the rack, bin and mat move from shift to shift; nothing reports where they are. The arm has an overhead camera with depth, a wrist camera, its joint readings and a hand force estimate. Things go wrong on the way (the valve handle creeps off its seat, the bleed lever springs back shut, the bowl rides back over its detent), and the controller has to notice which and put that right: the wrong remedy can do damage. If the gripper or the wrist camera fails, it has to stop safely and say which one failed.
Everything is in /app:
REQUEST.md);FM3_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, Maintenance planning, Harwick Coolant Systems
/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 ext_force_n 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 4 at T4 (each fault twice), over all three layout bands. The groups are in FM3_SHEET.md.FM3_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.