Fast single-path 3D object perception using Grounding-DINO detection, pairwise VLM crop tournament, SAM3 segmentation, and depth back-projection to extract oriented bounding boxes, masks, and point clouds. Designed for manipulation workflows needing quick object localization.
Ships in open-robot-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Single-path perception: detect → disambiguate (pairwise crop tournament) → segment → fuse to 3D → extract OBB. Each DINO detection is cropped and upscaled, and the target is found via binary "A or B?" comparisons of crop pairs — far more reliable on small targets than a one-shot Set-of-Marks letter pick (~30% → 97% on the LIBERO-PosVar object-ID study).
Multi-camera handling uses a safe wrist-fallback gate (not blind
KD-tree fusion): identification defaults to the exterior view; the
wrist (eye-in-hand) view is consulted ONLY when the exterior pick fails
its own close-up verify AND the wrist pick passes its own. On the
4-suite / 200-frame regression study this was the only zero-regression
policy (+2.5% net, 0/189 frames regressed; blind fuse/verify→wrist/
wrist-only all regressed). See perceive_dino_vlm.run docstring.
On the verified-exterior path the wrist views still contribute cloud geometry (never identity): wrist clouds of the same object — gated by the multiview intersection check, with a geometry-seeded SAM fallback (exterior cloud projected into the wrist frame) — are fused into the output cloud so the OBB recovers the top face / far side a single front view misses. A lone front view yields a sliver OBB biased toward the camera by half the object depth, and that off-centre pinch is the measured slip-during-transport failure mode on tall bottles/cartons.
object_description shape/appearance hints
(see the note above) rather than relying on the bare label alone.perceiving-objects-oneshot.3 states:
observe → perceive → filter_obb
State details:
About
object_namebelow: it is a literal Python string — the natural noun phrase for the object you are perceiving, drawn from this subgraph's description (e.g."alphabet soup can","basket","red bowl"). It is a constant per subgraph instance, NOT a binding. DO NOT writeRef("in.object_name")or any otherRef(...); the coordinator does not declareobject_nameas a subgraph input. Write the string directly, e.g."object_name": "basket".About
object_description(wire it whenever the task gives hints): also a literal Python string. When the task/workflow description carries shape or appearance hints for the target (e.g. an "Object context" block withshape_hint/expected_label, or adjectives in the instruction), pass them through verbatim, e.g."object_description": "small rectangular box, blue and white packaging, ~5 cm wide". The description is injected into BOTH the pairwise tournament prompt ("It looks like: …") and the close-up verification question ("It should look like: …"). This is what disambiguates look-alike packaging (several LIBERO grocery items are small blue/white boxes) and keeps the verify gate from rejecting a correct pick whose rendered asset reads as a generic box — a rejection forces the wrist-camera fallback, whose single top-down view degrades the OBB height and downstream grasps. Omit it (default"") only when the task provides no hints.
observe — type: tool, tool: "robot.get_observation",
inputs: {}. Connector tool; flat name only.perceive — type: script, file scripts/<sg>/perceive_dino_vlm.py
from this bundle. Inputs:
cameras=Ref("observe.cameras"),
object_name="basket" (replace with the actual target noun phrase
from this subgraph's description),
object_description="..." (the task's shape/appearance hints — see the
note above; strongly recommended whenever hints exist),
plus any optional fields (dino_prompt, etc.).
Returns {found, cloud, mask, score}.filter_obb — type: tool,
tool: "geometry.filter_and_compute_obb",
inputs={"points": Ref("perceive.cloud")}. Returns {"obb": <OrientedBoundingBox>}.Use the linear edge filter_obb → found → END. When the target isn't
found, perceive returns an empty cloud and filter_obb raises on it,
so the subgraph's on_error: "not_found" catches that path
automatically. Do NOT add any conditional edges on perceive — the
linear path plus set_on_error is sufficient.
✅ Correct (the literal gap.builder calls you should emit):
sg.add_node("perceive", type="script",
script="scripts/<sg>/perceive_dino_vlm.py",
inputs={"cameras": Ref("observe.cameras"),
"object_name": "small blue and white cream cheese",
# from the task's Object context / shape_hint block:
"object_description": ("small rectangular box, blue "
"and white packaging, ~5 cm wide")})
sg.add_node("filter_obb", type="tool",
tool="geometry.filter_and_compute_obb",
inputs={"points": Ref("perceive.cloud")})
# add_exit() creates the success-marker noop node AND registers the
# exit value. Do NOT also call sg.add_node("found", type="noop") — that
# would conflict with the node add_exit created.
sg.add_exit("found")
sg.add_edge("perceive", "filter_obb")
sg.add_edge("filter_obb", "found")
sg.add_edge("found", END)
sg.set_on_error("not_found")
Bind the subgraph outputs (ALL THREE — required, no exceptions):
sg.set_outputs(
target_obb=Ref("filter_obb.obb"),
target_mask=Ref("perceive.mask"),
target_cloud=Ref("perceive.cloud"),
)
(Replace target_* with this subgraph's actual name prefix — e.g.
container_obb, container_mask, container_cloud when authoring
the container subgraph.)
All three bindings walk into a field of the producing node's output
dict: geometry.filter_and_compute_obb returns {"obb": ...} (bind
Ref("filter_obb.obb"), NOT a bare Ref("filter_obb")), while
<name>_mask and <name>_cloud walk into fields of perceive's
output dict. perceive_dino_vlm.py already produces all three;
emitting them unconditionally lets downstream subgraphs that need any
of them (e.g. learned-grasp skills require <name>_cloud) wire up
without you having to anticipate which skill they'll use.
<name>_obb,
<name>_mask, AND <name>_cloud. The cloud is the fused world-frame
point cloud needed by learned-grasp skills; emit it unconditionally
so the downstream agent can wire it without round-tripping. See
references/perception_pipeline_invariants.md.geometry.filter_and_compute_obb returns {"obb": OrientedBoundingBox};
bind via Ref("filter_obb.obb") (walk into the obb field).
See references/geometry_calling_conventions.md.| End state | Meaning |
|---|---|
found | OBB + mask bound; route to next subgraph (typically a grasp skill). |
not_found | Route to abort (or to done in clean-all-items loops). |
prompts/vlm_pairwise.md — the pairwise-tournament VLM prompt template.scripts/perceive_dino_vlm.py — the canonical perception script.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3d-perception, object-detection, robotics, grounding-dino, sam3, vlm
/open-robot-skills:perceiving-objectsfrom open-robot-skills
npx claudepluginhub graph-robots/open-robot-skills --plugin open-robot-skills40 skills in this plugin
/anchoring-a-free-endPins one end of a cable with the support hand before any crossing is attempted — asks the support-hand planner for the anchor grasp as joint-space legs, refuses it when its worst IK error is past the limit, streams the legs, closes the jaws to the plan's own width and dwells for the fingers' travel, and carries the solved chain and grasp orientation out on the exit so later pay-outs seed from them. Use when a deformable linear object must be held at one end so a sideways pull bends it instead of dragging the whole thing./computing-feature-mating-posesComputes approach, engaged, and mate TCP poses from a held feature in the hand and a fixture feature, resolving free mate symmetries from the current robot pose without executing motion. Use when a held loop must go over a shaft or hook, or a held shaft or tip must enter an aperture, and explicit approach, engaged, and mate poses are needed for planning./curoboNVIDIA cuRobo motion planning — collision-free trajectories to grasp goalsets, transport with an attached object, constrained linear moves, single-pose planning, geometric IK, batch grasp feasibility, and joint-trajectory collision validation. Use when a workflow needs GPU-accelerated, collision-aware arm motion plans./curveOrdered centrelines of deformable linear objects — skeletonises a cable, rope or hose mask, recovers one traversal order through occlusion breaks and self-crossings (TrackDLO's chain merge), back-projects the ordered pixels through depth onto the object's axis as an arc-length-parameterised polyline, and carries a known centreline onto the next frame with motion imputed for hidden stretches. Use when a workflow needs an ordered centreline of a cable, rope or hose from a mask and a depth frame, or must carry one through occlusion between frames./executing-feature-matingExecutes a supplied feature-mating plan for an already-held rigid object - collision-aware planner legs tracked to millimetre precision, Cartesian servo for short corrections and fixture crossings, contact-controlled seating - then releases and retreats along the fixture axis or straight up. Use when the goal is a constrained mate such as a loop over a shaft, a shaft into an aperture, or a handle seated on a support; use transporting-objects for ordinary container drops./executing-held-object-motionExecutes an ordered, collision-aware pose sequence for an already-grasped rigid object without releasing it - the escape from support, clear-space rotation, fixture transit and orientation-locked local legs of a carry plan, or only the free-space approach waypoint of a placement plan. Use when a held object must be carried or reoriented before insertion, mating, packing, or sorting, and use executing-feature-mating afterwards for the engagement and release.Other plugins' skills for the same job