anchoring-a-bin-to-its-walls-from-the-wrist-camera
The arm is a few centimetres from where its joints say, so its wrist camera has the bin a few centimetres from where the overhead camera has it. Grasps are found in the wrist picture and made by the same arm; if the bin's walls (which bound the search, and which the fingers must not hit) are taken from the overhead box, they are in the wrong place by that error. This skill moves the box to the walls the wrist camera sees.
How
- Wall points. Wrist depth pixels (every second one, none nearer than
min_range) that are wall: bywall_mask, by the cardboard colour rule (red over blue by more than 22, red over 70), or all of them withwall_colour="any". Lifted to the world with the camera's pose and kept from 5 cm over the bin's support to 3 cm over its rim. - Each wall. In the bin's frame, the points within 9 cm of where a wall is expected and at least 3 cm from its corners are histogrammed across the wall in 4 mm steps. With over 600 such points and over 60 in the fullest step, that step is the wall's sheet; its offset from the wall's expected middle is that wall's reading.
- This look. The mean of the end walls read gives the shift along the bin's long axis, the side walls along the short one. An axis with no wall read contributes 0, so a look that sees one side wall only corrects one direction.
- Over looks. A reading is counted when it is under
max_shiftfrombin_obband, once two are held, underoutlierfrom their median.anchored_obbisbin_obbmoved by the median of the counted readings.
Calling it
bin_obbis the box from the fixed camera every time, not the anchored one from the last call: the readings are shifts from that box.- Keep
shiftsin the graph state and pass it back aspast_shifts. - If no grasp is found in
anchored_obb, the source task tried once more withbin_obbas given. That fallback is the caller's. - One axis only is corrected when one pair of walls is out of view;
walls_readsays which were read.
Gotchas
- Colour. The built-in rule is brown cardboard against grey and black
parts. A grey tote full of grey parts needs
wall_mask. Withwall_colour="any", a pile leaning on a wall is part of the sheet search and can pull it inwards. - Resolution. The shift is quantised to the 4 mm histogram step.
- Thresholds 800 / 600 / 60 are point counts at one camera, one stride and one viewing distance. A lower-resolution camera will read no wall until they are lowered; they are module constants, not inputs, to keep that a deliberate change.
- Low bins. Walls under about 8 cm leave little between 5 cm over the
support and the rim. Use
locating-a-container-from-the-wrist-camera(the rim outline) for those.
Constants, and what they were measured on
One YAM station: an i2rt YAM arm with a wrist D405 looking into a 449 x 262 mm corrugated cardboard box, 154 mm tall, from about 0.3 m over the counter, hand leaning 12 degrees; 2026-11-15.
SPAN = 9 cm,BIN = 4 mm,WALL_FROM = 5 cm,END_CLEAR = 3 cm,MIN_POINTS / MIN_WALL_POINTS / MIN_PEAK = 800 / 600 / 60: chosen on that box and camera, not swept.WALL_HALF_THICKNESS = 2 mm: that cardboard.MAX_SHIFT = 10 cm: a guard.OUTLIER = 3 cm: added after one look read the walls 7 cm out, and the pile was then not seen at all in the box as moved.
Evidence
Real robot, one station, 2026-11-15; the task ended that day with the
anchoring on by default. What is on record is the failure that shaped it (the
7 cm reading above) and that picking from the anchored box held about one
grasp in two (see proposing-open-hand-grasps-in-a-dense-pile). No run
compared anchored with un-anchored picking, and the shift was never checked
against a ground truth, so the size of its benefit is not known. Nothing was
run in a simulator suite. Maturity is community.
Required end states
anchored:anchored_obb,shift,used_shift,shifts(one longer).outlier:shiftread but not counted.walls_not_seen: nothing read.


