RoboSkillHub
Catalog / Skills
skill

checking-spatial-relations

Decides from one RGB-D view whether a spatial relation holds between two seen objects - inside, on_top_of, near or blocking - with REFLECT's point-cloud tests (minimum point distance, convex-hull containment, footprint-and-height, image-box occlusion with depth order), and routes holds / does_not_hold / not_visible. Use when a graph must branch on a scene fact such as "is the cube in the box", "is the plug on the board", "is the part near the fixture" or "is the hand blocking the camera's view of the target", with the two objects given as descriptions, masks or world point clouds.

Kind
Skill · verify: checks that a step did what it should
Robots
any robot
Tasks
pick-place insertion cable-routing sorting
Takes
relation string
Gives
holds bool, relation string, min_distance_m float, evidence string
Calls
sam3
Robot tools
robot.get_observation
License
MIT
Source
source on GitHub · SKILL.md · upstream code · https://arxiv.org/abs/2306.15724 · v0.1.0

Exits

What the skill reports when it ends; a policy branches on these.

holds Both objects were seen with enough valid depth and the asked relation is among those REFLECT's tests found from the subject to the reference.
does_not_hold Both objects were seen with enough valid depth and the asked relation is not among those found; `relations` lists what was found instead.
not_visible The subject or the reference was not segmented, or kept fewer than min_points valid depth points; nothing is claimed about the relation.

Scripts

check_relation

Use it

Take this bundle (and the tools it calls) into a registry for your task, then point your policy generator at it:

git clone https://github.com/runtime-si/RoboSkillHub
cd RoboSkillHub && uv sync
uv run --no-sync roboskillhub search "decides from one rgb-d view whether a spatial relation…" --why
uv run --no-sync roboskillhub view --bundles checking-spatial-relations --out my_registry

See Get started for searching by task and robot, locking what a policy uses, and fetching it on the robot.