Robotwin

From nssmd/RoboRSI · View interactive version

Robotwin is an AI agent skill from the GitHub repository nssmd/RoboRSI. Closed-loop visual-servo PLACE. While still holding an object at a hover, iteratively grounds the held object and the target with Grounded-SAM, unprojects both to world xy, and nudges the arm by the residual until the held object is within tol_m of the target — then descends and releases. Closes the

How to use this skill

Skill file

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:

  1. find_pixel(held_object) → unproject its centroid → held world xy.
  2. find_pixel(target) → unproject → target world xy.
  3. err = target_xy − held_xy. If |err| ≤ tol_m → **descend descend_m

holding the aligned xy, open the gripper, done**.

  1. 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

('red cube', 'red sign'), not 'the thing'.

Success criteria

Failure modes

→ returns ok=False with that reason. Try a more specific label / look() /

a side camera, or fall back to place_object_in.

set_pose / teleport / attach.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.