FT-2B bench test fixture loading (faults from arming)
harbor run -t reactive-labs/board-test-loadingharbor download reactive-labs/board-test-loadingHi,
We have an SO-101 arm next to our FT-2B bench test fixture and we want it to load boards for test. Each cycle the arm plugs a 5.5 mm DC barrel plug into the board's jack and a 2-pin keyed header into its shroud, presses the TEST button, waits for the pass lamp on the fixture I/O, then unplugs both and leaves the plugs on the bench. The fits are tight (0.3 to 1 mm of clearance), the header only goes in one way round, and the connectors bend if they are pushed too hard or loaded sideways. The board only sits on its locating pins, so it must not be pulled up with a plug. The nest pose, the board revision, the plug start poses, the fit and the cable stiffness change from cycle to cycle. Only the overhead and wrist cameras see the board and the plugs. The arm's mount isn't level with the bench, and three touch-off probes on the bench are there to measure that. If the gripper or the camera fails during a cycle, the arm has to stop and say which one failed.
Everything is in /app:
REQUEST.md);ACCEPTANCE_TESTS.md);CELL_SHEET.md);scene.xml, robot/);task.py, scoring.py, gauntlet/);--tiers picks the groups T0-T4, --episodes the cycles per group):
python3 /app/run_gauntlet.py --controller /app/controller.py --tiers T0,T1,T2,T3,T4 --episodes 2.Skills our integrator uses for SO-101 bring-up, motion planning, visual servoing and sim-to-real testing are in
/app/skills/.
Please write /app/controller.py with a Controller class (__init__(model_info), reset(obs), act(obs)).
The interface is described in ACCEPTANCE_TESTS.md (Deliverable). Don't change scene.xml, task.py or
robot/so101.xml.
Thanks, Test engineering lead, Larkfield Electronics
/app/controller.py. It runs in its own process and receives only the model info and the observation
dict. The dict holds joint readings, echoed commands, the overhead and wrist RGB images (taken when the
controller asks for a frame), and the fixture I/O: lamp, power, test count and the three probe switches. No
poses of the board, the plugs or the header plug's parking socket (CELL_SHEET.md section 4) are given. The
controller may use numpy, mujoco and the files in /app.run_gauntlet.py runs them,
in the groups of CELL_SHEET.md section 8:
CELL_SHEET.md, about a quarter use engineering
samples whose header can sit anywhere between the revision positions, and about a quarter go out to the cell
limits given there.scoring.py:
ACCEPTANCE_TESTS.md: connector push or side load, header latch
pulled, housing squeezed, board lifted; or an arm limit: contact force, impact, self-contact, joint speed,
joint limit), only the stages done before it count, and at most 0.5;{"status": "abort", "fault": ...} within 20 s of the onset,
with a safety stop, or after a controller error; 0 if no stage was done before the fault; otherwise
1.0 if the stages done before the fault are at least the stages due, else the share of the six stages
done, as on a cycle without a fault, where the stages due are
floor(6 x (fault time - 30 s) / 100 s), the pace of a 100 s cycle after 30 s of set-up. No fault starts before
64 s, so at least two stages are due at every fault. obs["ctrl"] echoes the command sent, so a gripper that
stops following shows only in its joint reading and in the work;scene.xml, task.py and robot/so101.xml in /app must be unchanged.