Robotwin

From nssmd/RoboRSI · View interactive version

Robotwin is an AI agent skill from the GitHub repository nssmd/RoboRSI. Closed-loop residual descend — drive the fingertip TCP to ACTUALLY reach a target z, compensating cuRobo's 1-3cm z-undershoot. For grasping thin/low objects (pens, markers, shallow bowls) where the jaws otherwise close on air above the object.

How to use this skill

Skill file

descend_tcp_to_z

Closed-loop residual descend that compensates cuRobo's z-undershoot.

Why this exists

cuRobo's plan_path / move_fingertip_to reliably terminates ~1–3 cm ABOVE

the commanded z (documented in grasp_object). For chunky objects that slack is

harmless. For thin / low objects (pens, flat markers, shallow bowls) it is

fatal: the gripper jaws close on air above the object instead of straddling

it at grasp height. This is the dominant collect_pens failure.

How it works

  1. Command a move_fingertip_to descend to target_z.
  2. Measure the actual fingertip TCP z from the robot's own EE pose.
  3. If the TCP is still above target_z by more than tol_m, **over-command

downward** by the residual error (≥ min_step, ≤ max_step) and descend

again — never below the floor_z damage cap.

  1. Repeat up to max_iters until the measured TCP reaches target_z.

Because cuRobo undershoots, commanding progressively lower z lands the TCP on the

true target. Returns reached + the full z_history so the caller can see the

convergence.

Success criteria

Failure modes

or a bad target_z) → reached: false, inspect z_history.

z_history stops moving. Re-ground the target xy first.

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.