grasp_rim · RoboTwin (EXPERIMENTAL)
Rim-pinch grasp for thin-walled open containers (cup, bowl, bin, basket)
whose thin rim the body grasps close on air.
Why this exists
A cup/bowl/bin is HOLLOW — a top-down grasp_obb/grasp_flat aims at the body
footprint, so the jaws close on the empty interior (place_empty_cup: rim-pinch
air-closes 6×, grasp_obb 5/5, grasp_flat 1/1; same on stack_bowls, dump_bin).
Scripted baselines pick these by the rim via model contact points — unavailable to pure
vision. The fix is to grasp the rim wall directly.
How it works
look, then localize the rim/opening frame (object_mask→
object_cloud → filter_noise → container_opening): rim center, rim height,
in-plane half-extents.
- Pick a rim-perimeter point on the arm's side (right arm → +x rim point).
- Orient the jaws to close radially across the thin wall (one jaw dips
inside the mouth, one outside), open wide, hover, descend_tcp_to_z to just
below the rim top so the jaws straddle the wall.
gripperclose, a small lift, thenis_holding+verify_holding_visual.- On no-hold, retry ONCE on the OPPOSITE rim point.
Success criteria
held: true— bothis_holdingandverify_holding_visualconfirm the grip
after the lift.
Failure modes
- No rim/opening frame (mask miss / not an open container) →
ok: False. - Wall too thin / jaws slip on both rim points →
ok: False; the container
may need a hook / two-finger-cage modality this parallel jaw lacks.
Enabling
Enabled for the Engineer to try; set ROBORSI_RIM_GRASP=0 to disable.
EXPERIMENTAL — field-validated via place_empty_cup / stack_bowls / place_can_basket
runs, not a per-run harness pass.