SO-101 Arm Lab
← back to the lab

Note · The pick loop

Practising alone: the arm tries, judges, resets and tries again

First attended ten-cycle session, 10 Nov 2026 · ~6 minutes

I want the arm to practise by itself. A person resetting the nut between every attempt is the slow part of learning from a real arm, so the first milestone is a session where nobody touches the mat. This is what the arm does, how, and what the first attended session measured.

Camera recordings from the overhead C920, the front C920 and the wrist camera, 3x speed, about 95 s of session first10b: the end of cycle 6, then cycle 7, which landed 4.4 mm from the target. The wrist recording covers the first 35 s of the clip only. The nut is a small dot in the overhead view.

The goal

The milestone is called "10 in a row, attended". The task is to pick a hex nut and place it on a target at mat (9, 6) in. The bar is at least 9 of 10 cycles landing within 15 mm of the target, with zero guardrail trips. I stand at the wall STOP control the whole time.

One cycle, step by step

  1. Guard. Before anything moves, the runner checks the stop file, that the dashboard answers, that the overhead camera sees at least 3 of its 4 markers, and that no LeRobot job is holding the arm.
  2. Find the nut. The overhead camera's mat map gives the nut's position in mat inches. If the map misses it, a search over the whole mat image takes over.
  3. Closed-loop pick. The nut position goes through inverse kinematics. The arm is commanded to a hover point, the joints it actually reached are read back, and forward kinematics turns them into a position on the mat. The difference is the correction, and it is applied twice: once at the hover, once at grasp height with the jaws open. If the tip is still more than 6 mm above the mat, the grasp is lowered. The jaws open to 35 and close in two steps so the moving jaw meets the nut slowly. On 10 Nov an open-loop hover came up 5 to 8 mm short, and after two corrections the grasp pose was within 0.1 mm of the command.
  4. Jaw check. After the lift, one wrist-camera frame is searched for the nut's bright ring with a dark hole, inside a window between the jaw tips. Not found: open, go back, grasp once more. Not found again: record a failed pick.
  5. Place and judge. The arm carries the nut to the target and places it. After 1 s the overhead map gives where the nut is. A cycle landed if the nut moved more than 20 mm and ended within 15 mm of the target.
  6. Reset. The same closed-loop pick takes the nut from the target and drops it at a random spot in a safe box, x 6 to 13 in and y 4 to 8 in, at least 40 mm from other objects, 50 mm from marker centres and 60 mm from where it was. The next cycle starts from somewhere new.

Every cycle is logged to MLflow in the experiment so101-autoloop, with the landing error, the retries and the stage detail of each pick.

Guardrails

The runner never talks to the arm directly. Every motion goes through one script that applies the arm's own limits, and a guard module decides before each step whether to go on. Any trip ends the session.

  • Workspace: a planned waypoint outside the mat (shrunk by 20 mm), above 4 in, or more than 10 mm below the mat plane. That plan is never run.
  • Motion watchdog: commanded and reached joints differ by more than 8 degrees.
  • Perception: fewer than 3 markers seen for 10 s, calibration not ok, or no scene from the overhead camera.
  • Panel liveness: the dashboard does not answer within 3 s, or reports the Jetson offline.
  • Arm busy: a LeRobot job (teleop, record, rollout) already holds the arm.
  • Stop file and caps: a clean stop, a cycle or minute limit, or 3 failed cycles in a row.

The wall STOP cuts the arm independently of all of this.

What happened on 10 Nov 2026

Session first10b: 10 cycles, target (9, 6) in, 15 mm radius, 1067 s in total.

Per cycle, from the session log
cyclelandederror mmretriescycle s
1yes5.1084.53
2yes5.7084.71
3yes3.4084.69
4yes7.90101.71
5no4.2 (moved 1.7 mm)1127.51
6no20.61127.86
7yes4.4084.43
8nonone recorded185.09
9nonone recorded1117.43
10no62.81163.83

5 of 10 landed (success rate 0.5), mean error 14.3 mm, median 5.4 mm, 5 retries. The landed cycles were all within 8 mm of the target. The runner stopped after cycle 10 with a consecutive_failures trip (cycles 8 to 10 failed). That is below the bar of 9 of 10 with zero trips, so the milestone is not met. An earlier session, first10, ran 4 cycles, landed 3 (mean error 9.2 mm) and stopped on a run_plan trip in cycle 4 because a LeRobot teleop job had started and was holding the arm. The arm-busy check exists because of that.

What went wrong, from the stage logs

Every pick logs its stages to MLflow. Reading them after the session changed what I thought had happened.

  • The fixed jaw came down on the nut. The SO-101 has one moving jaw and one fixed jaw, the thumb. The point I aimed was the fixed jaw's tip, where the jaws meet when they are closed, so the thumb landed on the nut. In some cycles it pushed the nut forward; in others it came down on top of it. Fixed after the session: the pick now aims the fixed jaw 10 mm behind the nut, along the direction the jaws open, so the nut sits inside the open gap.
  • Cycle 4's reset failed and nothing noticed. The wrist camera found no nut between the jaws on both tries, so the reset put nothing down and the nut stayed on the target. The runner does not check a reset, so it assumed the nut was at the reset spot.
  • Cycles 5 and 6 picked the nut but scored as misses. The jaw check saw the nut held after every grasp. The nut started on or next to the target, so carrying it back moved it less than 20 mm, and the judge's rule that a picked nut moves more than 20 mm called that a miss.
  • In cycles 8 to 10 the map lost the nut. After cycle 8's place the overhead map reported no objects at all, although the jaw check had seen the nut held. In cycle 9 the map sent the arm to two spots where the wrist camera found nothing between the jaws. I do not know why yet. The map only shows an object after 3 detections in a row, about 1.5 s, and the judge looks 1 s after the arm's last move; the map also hides anything under or touching the arm; and the nut may have dropped where the map cannot see it. The next session saves the overhead frame at every judgement so the cause is visible.

About the recording

I started it partway into the session. My recording of the wrist stream stopped after 35 s and of the overhead stream after 95 s, while the front stream ran on. The dashboard's own camera feeds stayed live the whole session, so the recorder was the problem. The clip is the first 95 s of the three recordings at 3x. I estimated the cycle boundaries from the cycle durations in the log, so they can be a few seconds off.

What is next

Built since the session and covered by tests, not yet run on the arm: the new grasp aim; every reset judged with the overhead map, with the next cycle starting from where the nut really is; a nut already on the target reset away before the try; the judge waiting for the map to confirm what it sees; the overhead frame saved at every judgement; and every nut candidate the finder considered logged.

  • Run the ten cycles again with me at the STOP.
  • Collect overhead frames from those runs, label the nut, and test a small learned object detector beside the map as a second opinion on which object is the nut.

Where the code is

tools/autoloop.py, tools/guardrails.py, tools/pick_loop.py and docs/autoloop-explained.md in the so101-arm-lab repository at github.com/lastlightgoods/so101-arm-lab.

← back to the status