Files
microduck/duck-control/tests
apirrone 620affc9d1 pickup: v2 model — head grips, any orientation, 180° turns; a third the size
On the robot the first model paused well when the duck was lifted by the body,
but never when it was lifted by the head, and it resumed when the duck was
turned 180°. Both reproduced in sim (held-case battery, 512 envs each):

                              v1 paused / false resumes   v2
  trunk, casual tilt          99.2 % / 0.01               99.2 % / 0.01
  head grip                   65.2 % / 0.69               99.2 % / 0.02
  upside down                 78.4 % / 0.46               99.4 % / 0.04
  on its side                 80.8 % / 0.69               99.6 % / 0.04
  spun 180 about vertical     96.6 % / 0.53               99.4 % / 0.01

Closed loop on the new hand distribution: false mid-carry resumes 195/h -> 1/h,
pick-ups detected 95.3 % -> 99.7 %, walking false pauses 0.72/h -> 0/h,
set-down resume latency unchanged (median 0.18 s). End to end against
duck-body: head grip, upside-down hold and 180° spin each paused once and
resumed once, 0.20 s after the set-down.

The model is also 8k parameters instead of 24k (servo current dropped from the
graph rather than masked, half the conv width): v1 cost ~0.5 ms per tick on
the board, 1.4x a policy inference. Same input contract, features[1,50,63].
`--example pickup-bench` measures detector vs policy cost on the board.

Assisted-by: Claude:claude-opus-5-5
2026-10-03 23:10:30 +02:00
..