Robotwin

From nssmd/RoboRSI · View interactive version

Robotwin is an AI agent skill from the GitHub repository nssmd/RoboRSI. CaP-X-style OBB place — deposit a currently-HELD object into / onto a container localized purely by vision. Segments the container (Grounded-SAM), builds its world cloud, fits an oriented bounding box (OBB), then LIFTS the held object >=0.20m, transports over the container INTERIOR CENTER, descends

How to use this skill

Skill file

place_obb · RoboTwin

CaP-X-style OBB place-into-container for a currently-held object. One

call runs the whole pure-vision deposit pipeline; uses only camera, depth, and proprioception.

Why this exists

RoboTwin's place primitives fail to deposit into a cavity (approved lead

place_object_basket/874ced): place_held_at_target_servo releases at a

rim/top-center point (object lands on the rim, not inside), and the 2D

find_pixel ∈ bbox containment check is fooled — a cube resting ON the rim

still projects inside the 2D bbox. CaP-X's discipline (place is a *second

perception problem*) fixes both: localize the container's OBB, release over

its interior center at a bbox drop height, and verify containment in 3D.

How it works

  1. is_holding — precondition; abort cleanly if nothing is held.
  2. get_arm_pose → lift the held object straight up ≥0.20 m

(move_fingertip_to) so it clears the scene before transport (CaP-X).

  1. look → object_mask (Grounded-SAM, whole-scene reject) →

object_cloud (masked depth → world) → filter_noise (DBSCAN) →

object_obb — the container OBB.

  1. container_opening / container_drop_target — release point = the RIM /

OPENING FRAME center (the top rim band's XY centroid — the true opening

center, unbiased by thick walls / an asymmetric solid that skew a whole-cloud

OBB center; container-placement literature's opening-frame primitive), at the

rim height minus inset_m (just inside the mouth). Falls back to the OBB bbox

drop when the rim band is degenerate.

  1. hover ≥0.15 m above → descend_tcp_to_z (controlled = CaP-X z_approach) →

gripper open (release) → retreat straight up.

  1. DEPTH + RELEASE verify — is_holding(arm) must be False (the object was

actually released, not still dangling over the center — the

place_object_stand/99606d false-positive), AND the re-segmented object's

cloud centroid lies inside the container OBB footprint and at/below the rim

(point_inside_footprint). ok/placed require BOTH.

Success criteria

centroid is depth-verified inside the container OBB footprint at/below the rim.

Failure modes

Pass a concrete container noun phrase or u,v.

the object landed on the rim — retry with a larger inset_m or check the OBB.

object= to enable the depth verify.

Enabling

Enabled by default. Set ROBORSI_OBB_PLACE=0 to disable — it then returns

{ok: False, reason: "disabled"} without touching the sim.

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.