find_object_via_wrist · robotwin
Active-perception two-step localization to overcome 320x240 head-camera
pixel quantization (~3mm/pixel at table). Implementation in policy.py's
dispatch_runtime. Auto-discovered by _dispatch in rollout_runtime.py.
Workflow inside the tool:
1. snapshot head, find_pixel(object) on head → coarse (u_h,v_h)
2. unproject(head, u_h, v_h) → coarse_xyz
3. move_to_pose(arm, coarse_xyz.x, coarse_xyz.y, coarse_xyz.z + hover_height,
quat=top-down) — fingertip hovers 30cm above
4. scan_wrist(arm) → wrist image at higher effective resolution
5. find_pixel(object) on wrist image → precise (u_w,v_w)
6. unproject(wrist_camera, u_w, v_w) → precise xyz
7. return precise xyz
Failure modes handled: hover IK failure (returns ok=False with reason);
wrist depth invalid (returns ok=False); VLM doesn't see object in wrist view
(returns ok=False with raw VLM response).