reactive-labs-team's picture
Release wm-stage: 15 tasks (part 5)
602054e verified
|
Raw History Blame Contribute Delete
4.8 kB

Hi,

We have an SO-101 arm next to our FT-2 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:

  • my email with the background (REQUEST.md);
  • the acceptance tests, which are what you will be judged on (ACCEPTANCE_TESTS.md);
  • the fixture and cell data: arm, cameras, board, connectors, probes, I/O, limits (CELL_SHEET.md);
  • the cell model (scene.xml, robot/);
  • the acceptance setup (task.py, scoring.py, gauntlet/);
  • the runner our integrator uses (--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

What is graded

  • Output: /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.
  • 16 hidden acceptance cycles with a hidden seed, run exactly as run_gauntlet.py runs them, in the groups of CELL_SHEET.md section 8:
    • 2 at T0 (nominal);
    • 3 at T1 (moderate noise and plant changes);
    • 4 at T2 (hard noise and plant changes, a tilted bench, delayed frames);
    • 3 at T3 (1 slip, 1 push, 1 knockout of the DC plug);
    • 4 at T4 (camera mount error; any of them may also get a gripper or camera fault, which starts no earlier than 52 s into the cycle). About half of the cycles use layouts inside the ranges in 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.
  • Cycle score, from scoring.py:
    • the share of the six stages done (DC in, header in, test passed, DC out, header out, both plugs parked on the bench). A cycle that finishes over the 100 s cycle time loses the park stage. Only a full cycle reported done scores 1.0; anything less scores at most 5/6. A cycle ends when the controller reports done, or at 120 s;
    • after a safety stop (any fixture limit in 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;
    • on a cycle with a fault: 0 without the right {"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 min(1, (stages done before the fault + 1) / (stages due + 1)), 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 52 s, so at least one stage is due at every fault;
    • a controller error, or going over a wall-time limit (60 s to start, 20 s per call, 150 s of controller time per cycle), keeps only the stages done before it. A controller error after a fault started scores 0.
  • The whole acceptance run of 16 cycles has 1800 s of wall time.
  • Reward: mean cycle score. scene.xml, task.py and robot/so101.xml in /app must be unchanged.