place_held_at_target_servo
Closed-loop visual-servo place — closes the placement-precision gap.
Why this exists
Open-loop placement (place_object_in, pick_and_place_at_pixel) commands one
cuRobo move to the target and releases. Because of the residual grasp offset and
cuRobo's plan undershoot, the held object lands ~4 cm from the intended spot.
That is fine to drop something in a bin, but it fails tasks that require
tight image-space alignment. This skill closes that residual with repeated
visual measurements rather than relying on a hidden task threshold.
This skill is the placement analogue of descend_tcp_to_z (which closes
cuRobo's z-undershoot loop): it closes the xy loop in image space.
How it works
While still holding the object at a hover, repeat up to max_iters:
find_pixel(held_object)→ unproject its centroid → held world xy.find_pixel(target)→ unproject → target world xy.err = target_xy − held_xy. If|err| ≤ tol_m→ **descenddescend_m
holding the aligned xy, open the gripper, done**.
- Else
move_fingertip_to(TCP_xy + clamp(err))— nudge the arm so the held
object moves toward the target — and re-measure.
The step is clamped to max_step_m so one bad grounding cannot fling the arm.
Prerequisites
- The object is already grasped and lifted to a hover (call after the grasp).
held_objectandtargetare concrete noun phrases Grounded-SAM can find
('red cube', 'red sign'), not 'the thing'.
Success criteria
ok=True, aligned=True,final_err_m ≤ tol_m, gripper released over the target.
Failure modes
- Held object occluded by the gripper in the camera →
find_pixelmisses it
→ returns ok=False with that reason. Try a more specific label / look() /
a side camera, or fall back to place_object_in.
- Non-convergence within
max_iters→ returnsok=Falsewith the last error. - Reads only perception + the robot's own EE pose — without task-state access; no
set_pose / teleport / attach.