place_object_in · RoboTwin
End-to-end placement complement to grasp_object. Solves the symmetric
problem: gripper is holding object X, drop it INTO container Y, verify
release.
Algorithm
- find_pixel(target, location='center') → (u_t, v_t)
- unproject_pixel(head_camera, u_t, v_t) → target_xyz
- is_reachable(arm, target_xyz + drop_height * world_z, top-down quat)
- If not reachable, return ok=False with diagnostic
- move_fingertip_to(arm, target_xyz.x, target_xyz.y, target_xyz.z + drop_height, top-down)
- gripper(arm, 'open')
- is_holding(arm) → expect False (val=1.0). If still holding, retry one more
open command + small wiggle.
- move_fingertip_to(arm, retreat) — lift to retreat_m above target
- Return ok=True iff is_holding=False at retreat.
The fingertip-target hover is computed via the calibrated FINGER_OFFSET
inside move_fingertip_to, so callers don't have to remember the 0.18m
offset.