locating-a-container-from-the-wrist-camera
An overhead camera says where the box is in the world. The arm then goes to where its joints say that is. On a real station those two differ by centimetres, and not by the same amount everywhere in the workspace. The wrist camera is bolted to the hand, so whatever it sees is placed with the same error the hand will have when it moves there: locate the box with it, aim at that, and the error drops out.
How
- Views (skipped with
camera_frame,move=Falseorview_poses). The views stand on the side the hand starts from, short of the container's centre: with each rotation inrotations(the hand as it will be turned when it lets go) at 14, 20 and 8 cm short, 33 cm down to 12 cm over the rim in 3 cm steps; then with the hand pointing down (robot.grasp_frame) at 5, 9 and 0 cm short, 23 cm down to 8 cm over the rim. Per standoff the first rotation and height that passesrobot.solve_ikis kept. - Go and look. A hand under
clear_z(default 11 cm over the rim) rises straight up first. At the view the wrist frame is read; depth nearer thanmin_range(16 cm: the hand's own fingers) is dropped. - Fit. Points within 30 cm of the expected centre, from 22 mm under to
12 mm over the rim height and outside
other_obbs(grown 12 mm), are binned at 4 mm; the container's outline is slid over them at turns within 12 degrees of the expected one (the fit offinding-boxes-of-known-size-from-overhead-depth). At least 30 % of the outline covered, and a centre withinmax_shiftof the expected one, islocated; otherwise the next view is tried.
The picture is placed by where the hand is (the camera's pose in the observation), so a view move that ends short still gives a valid look.
Using the result
shift is located - expected in the plane. Add it to every point planned
from container_obb (drop points, the test "is the hand over the box"), or
plan from located_obb directly. Take the look near where the hand will let
go and turned as it will be then: the arm's error changes across the
workspace, so a look from far away corrects less.
Run it before the first pick. A held part hangs in front of the lens.
Search cost
Each candidate view costs one robot.solve_ik. The search is capped at
max_ik_queries (30) and says so in detail when it stops there. The cap is
a guard, not a measurement: on the source station, a pose search that sent
well over a hundred plan requests in a row to the arm's motion server held up
its control loop until the station's supervisor stopped both arms. If your
connector's solve_ik is local and cheap, raise it; if it reaches a motion
server, search with arm-clearance.reachable instead and pass the result as
view_poses.
Constants, and what they were measured on
One YAM station (i2rt YAM arm with the linear_4310 hand and a wrist D405, an overhead depth camera), a 238 x 196 mm cardboard box with a 66 mm rim beside a 154 mm tall one, 2026-11-15.
MIN_COVERAGE = 0.30,BAND_BELOW / BAND_ABOVE = 22 / 12 mm,SEARCH_RADIUS = 0.30 m,YAW_WINDOW_DEG = 12,EXCLUDE_MARGIN = 12 mm: chosen on that box, not swept.MAX_SHIFT = 0.10 m: a guard over the shifts seen (below).MIN_RANGE = 0.16 m: that hand's fingertips in that camera.- Standoffs and heights: the station's values. The leaning views were found unreachable when the two boxes were swapped; the hand-down views were added for that layout and worked in the next run.
CLEAR_OVER_RIM = 0.11 m,MAX_IK_QUERIES = 30: chosen.
Evidence
Real robot only, one station, 2026-11-15: seven runs placed with the box located this way, and one more had the look in its graph but found no view.
- The wrist camera put the box 27 mm (19, 19), 72 mm (48, 53) and 78 mm (67, 39) from the overhead camera's place for it in the three runs whose notes record the shift.
- In the run without a view (the two boxes swapped, before the hand-down views existed) the drops used the overhead position uncorrected, and all four parts went down on the counter just outside the box's near wall.
- Four of the seven located runs put all their parts into the box, all four with the boxes as first set out. With the boxes swapped the look located the box in the later runs (two of the shifts above are from them) and the runs' own logs count one and two parts placed in two of them, but none finished, for reasons outside this skill (no carry pose clear of a cabinet, a motion-server stop, a refused release).
- One earlier form of the fit, a rectangle put round whatever rim was seen, placed a box seen at a slant 3.7 cm off; the slid outline replaced it.
What this does not show: the error left after the correction was never
measured (only that corrected drops went in), nothing was run in a simulator
suite, and no other arm, hand, camera or container was tried. Maturity is
community.
Required end states
located:located_obb,shift,aim_point; the hand atview_pose.not_seen: no correction;coverageanddetailsay what was seen.unreachable: no view; nothing learned.


