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
is_holding— precondition; abort cleanly if nothing is held.get_arm_pose→ lift the held object straight up ≥0.20 m
(move_fingertip_to) so it clears the scene before transport (CaP-X).
look→ object_mask (Grounded-SAM, whole-scene reject) →
object_cloud (masked depth → world) → filter_noise (DBSCAN) →
object_obb — the container OBB.
- 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.
- hover ≥0.15 m above → descend_tcp_to_z (controlled = CaP-X z_approach) →
gripper open (release) → retreat straight up.
- 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
placed: true— the object is RELEASED (is_holdingFalse) AND its cloud
centroid is depth-verified inside the container OBB footprint at/below the rim.
Failure modes
- No / whole-scene container mask →
ok: False, reason names the miss.
Pass a concrete container noun phrase or u,v.
- Nothing held →
ok: False("grasp the object first"). Callgrasp_obb. - Released but centroid above the rim / outside footprint →
placed: False;
the object landed on the rim — retry with a larger inset_m or check the OBB.
- No
objectgiven → released butplaced: False(unverified); pass
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.