SC-2 two-arm cover refit: hold against springs, two pins, latch
harbor run -t reactive-labs/two-arm-cover-refitharbor download reactive-labs/two-arm-cover-refitHello,
Cell SC-2 at our Calder Reach depot refits the inspection cover on H2 pump housings after seal service, and we want its two arms to do the job that two fitters do today. Please write the controller for both arms. Arm A takes the H2 cover from the cover tray, puts it on the housing and holds it down against the two return springs inside the gasket load window; while it holds, arm B fetches two locating pins from the rack and fits them, then swings the latch to its detent. A lets go only when the latch holds, both arms move clear and the controller reports done. The tray also holds an H3 cover that looks much the same and must not be moved, and there are odds and ends on the bench. Housing, tray and rack are never in quite the same place and nothing reports where they are: there is an overhead camera with depth, a side camera, and the arms' joint angles, speeds and torques. There is no other force sensor. Things go wrong on this job (the cover creeps in A's fingers, a pin slips or lifts back out, the latch springs back) and the controller has to notice and put it right. If arm B's gripper or arm A's wrist joint stops answering it has to stop safely and say which. Our sheets are from the original build and the fitters' notes are newer; where they disagree, go by the cell.
Everything is in /app:
REQUEST.md);HOUSING_SHEET.md) and the force table (FORCE_TABLE.md);ATTEMPT_LOG.md);CELL_SHEET.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 16 position commands in model_info["actuator_names"] order, or a status: {"status": "done"},
or {"status": "abort", "fault": "gripper_b"} / "wrist_a". Don't change scene.xml, task.py, gauntlet/ or
robot/panda.xml.
Thanks, Service engineering, Brennock Fluid 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, effort, ctrl, objects, objects_stamp, images, depth,
camera_stamp, io). qpos, qvel and effort follow joint_names; ctrl echoes the commands as accepted (a
failed drive still echoes its command); images["overhead"], depth["overhead"] and images["side"] (160 x 100) update at
1 Hz with camera_stamp; objects and io are empty. The controller may use numpy, mujoco and the files in
/app. Wall-time limits are in /app/gauntlet/harness.py. The ten cycles share 1700 s of simulated time: a
cycle is started only while 222 s of it are left (the cycle limit plus settling), and one not started scores 0 (a
careful cycle takes 130 to 180 s, and a stop for a fault ends its cycle).run_gauntlet.py runs them: 3 at T2, 4 at T3 (the cover
creeps, a pin drops, a seated pin lifts back, the latch springs back: one cycle each) and 3 at T4 (both faults,
one of them twice), in an order and with layouts you are not told. The groups are in CELL_SHEET.md. The
hidden cycles use all three layout bands of run_gauntlet.py --band.FORCE_TABLE.md exceeded, the arms touching, the cover sprung off, something off the bench, an arm limit), a
controller error or wall-time limit, or an abort when nothing failed caps the cycle at the stages finished
before it, and at 0.5. A cycle that ends with the cover not secured (down, both pins home, latch in its detent)
scores at most 0.05.