Логотип Checking Spatial Relations

Checking Spatial Relations

Організація
runtime-si
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.

Огляд

Видавецьruntime-si
РепозиторійRoboSkillHub
Назва навичкиchecking-spatial-relations
Зірки
242
Форки
27
Файли в пакеті
2
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 2

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: runtime-si. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Checking Spatial Relations у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/runtime-si/RoboSkillHub/tree/main/skills/checking-spatial-relations
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/runtime-si/RoboSkillHub.git /tmp/RoboSkillHub
mkdir -p .claude/skills
cp -r /tmp/RoboSkillHub/skills/checking-spatial-relations .claude/skills/checking-spatial-relations
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Checking Spatial Relations в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Checking Spatial Relations, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Checking Spatial Relations не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

checking-spatial-relations

Answer one question of the form subject relation reference from a single RGB-D frame, the way REFLECT builds the edges of its scene graph.

Inputs

  • relation: inside, on_top_of, near or blocking (aliases: in, on, beside, next_to, close_to, occluding, covering).
  • The subject and the reference, each as one of:
    • *_points: a world-frame PointCloud (or an [N, 3] array), e.g. from a perception skill;
    • *_mask: a uint8 mask on the camera's image, back-projected with that frame's depth, intrinsics and camera-to-world pose (the math of geometry.mask_to_world_points);
    • *_description: a phrase segmented with sam3.segment_text (best mask, score at least score_min, 0.3).
  • observation (optional): an Observation; fetched with robot.get_observation when a mask or description needs one. blocking and left/right need the camera, so they are only found with one.
  • camera_name (overhead; the only camera is used if the name is absent).
  • reference_kind: auto (default), container or surface. A surface (table, board, tray) holds things on top of it, never inside it; auto calls a reference a surface when its trimmed height is under 20 mm.
  • contact_distance (0.05 m), close_distance (0.10 m), voxel (0.003 m), min_points (30).

World frame: z up (the hub's convention), metres.

What is tested (REFLECT's SceneGraph.add_edge, in its order)

Both clouds are down-sampled on a voxel grid; d is the smallest distance from a subject point to the reference cloud.

  1. In contact when d < contact_distance:
    • inside: more than 50 % of the subject's points fall in the convex hull of the reference's (is_inside, INSIDE_THRESH). Against a surface this is on_top_of instead.
    • otherwise on_top_of: more than 70 % of the subject's points lie over the reference's xy box and more than 70 % above its top (ON_TOP_OF_THRESH).
    • otherwise under: the same test the other way round (REFLECT records the reverse edge).
  2. Close when d < close_distance: near. If no contact relation was found, the unit vector between the two boxes' centres names a direction:
    • along the camera's ray (|component| > 0.9): blocking when the subject's image box covers more than 50 % of the reference's (OCCLUDE_RATIO_THRESH) and more than 90 % of the subject's depths are no deeper than the reference's nearest point (DEPTH_THRESH);
    • else above / below (world z, > 0.9), else left_of / right_of (the camera's x, > 0.8).

relations lists everything found from the subject to the reference; measures the fractions, the distance and the point counts behind them; evidence says it in one line. The script raises only on bad arguments.

Changes from REFLECT, and why

  • Distances rescaled from a kitchen to a tabletop. REFLECT's IN_CONTACT_DISTANCE 0.1 m, CLOSE_DISTANCE 0.4 m and 0.01 m voxels are AI2-THOR room-scale (THOR units are metres). Here: contact 0.05 m, which must exceed the step a downward camera sees at a resting contact (the top of a 35-40 mm object over its support, its sides hidden) and stay under a held object's lift; close 0.10 m (a quarter, like the contact distance); voxels 3 mm, so a 30 mm cube keeps ~100 points and a cable is more than one voxel wide. The ratios (0.5, 0.7, 0.9, 0.8, 0.5, 0.9) are REFLECT's.
  • z up, and a downward camera. THOR is y-up and REFLECT took all three directions in the camera frame of a near-horizontal agent camera. Here up/down is world z, left/right and front/back the camera's x and optical axis, and the ray test comes first: for a camera looking down, "along the ray" and "above" are nearly the same vector, and the camera-specific relation (blocking) is the one a graph cannot get otherwise.
  • Boxes trimmed to the 1st-99th percentile. REFLECT took the raw bounding box of a simulated depth cloud; a real sensor's flying pixels at object edges would grow it.
  • Surfaces generalised. REFLECT renames "inside countertop / stove burner" to "on top of" by object name; here any reference under 20 mm tall (or reference_kind: surface) gets the rename.
  • near holds whenever d < close_distance, also when a contact relation was found; REFLECT kept only the stronger edge, but a graph asking "is it near" about an object inside the box wants yes.
  • Mask bleed removed. Points within 3 voxels are linked and only pieces with at least 20 % of the largest piece's points are kept (REFLECT removed radius outliers from containers only). In the twin a SAM3 cube mask beside the hand reached 0.27 m tall before this, its edge pixels on the hand.
  • REFLECT's per-name exceptions (BULKY_OBJECTS, THOR fruit slices standing upright in bowls), its merging of clouds over time and its CLIP object states are not ported; Open3D is replaced by scipy's KD-tree and Qhull.

Measured

YAM station twin, overhead camera (640x480 RGB-D, 59 deg down), SAM3 masks from the descriptions. Three scenes: the cube on the table 18 cm from the box (start), 30 mm outside its wall (beside), on its floor (inbox). 17 of 18 verdicts matched the truth:

checkstartbesideinbox
cube inside boxdoes_not_hold okdoes_not_hold okholds ok
cube near boxdoes_not_hold ok (d 177 mm)holds ok (d 25-30 mm)holds ok
cube on_top_of boxdoes_not_hold okdoes_not_hold okdoes_not_hold ok
cube on_top_of tableholds okholds okholds, truth does_not_hold
box on_top_of tableholds okholds okholds ok
cube blocking boxdoes_not_hold okdoes_not_hold okdoes_not_hold ok

The miss is REFLECT's own: on top of is footprint plus height, so a cube in a box on a table is also "on top of" the table (its points are over the table and above it, 38 mm away through the box wall, inside the contact distance).

Blocking, the hand on the camera ray. With the closed hand 8 cm in front of the cube along the ray, SAM3 no longer finds the cube (score 0.01) and all three questions route not_visible (3 scenes x 3, correct). With the hand over the box (box masks from depth, 27-43 % of the box still visible, the hand's mask from depth), box blocking hand was correctly does_not_hold (9/9), but hand blocking box and hand near box came out does_not_hold in all 18 runs although the hand hid most of the box and its fingertips were 45-77 mm from it: the smallest distance between the visible clouds was 110-162 mm (the part of the box nearest the hand is the part it hides), over the 0.10 m close distance that gates both tests. REFLECT gates blocking on proximity the same way; it accumulated clouds over many views in THOR, which one fixed camera cannot.

Real station frame (cable_frame_20261103-1421.npz, Orbbec, SAM3 masks, the 11-05 calibration levelled onto the frame's own table by 1.4 deg; the table still spans -6..+8 mm, 5th-95th percentile): 7 of 9 matched.

checktruth (by eye)verdict
cable on_top_of boarddoes_not_hold (mostly on the table)does_not_hold
cable on_top_of tableholdsholds
board on_top_of tableholdsholds
cable near boardholdsholds (15 mm)
cable blocking boarddoes_not_holddoes_not_hold
plug inside boarddoes_not_holddoes_not_hold
plug on_top_of boardholdsdoes_not_hold: SAM3's "white cable connector plug" mask was the whole cable
gripper near boarddoes_not_holdholds: SAM3's "black robot gripper" (score 0.23) masked a ring post on the board
gripper on_top_of tableholdsholds (same wrong mask: the post is over the table)

Both misses are the segmentation's, not the relation tests' (the verdicts are right for the clouds they were given); check measures and the masks when a verdict surprises. On the real table "on top of table" held through the hull rule (the levelled table is 22 mm thick with depth warp), not the height test (only 9 % of the cable's points rose above the table's 99th percentile).

Boundaries

  • One view: a subject hidden by the reference (a cube deep in an opaque box seen from the side) is not_visible, not inside; use verifying-placement for "it disappeared into the container".
  • inside needs the reference's visible points to enclose the subject: an open box seen from above does (floor + rims), a closed lid does not.
  • The relation is about the segmented clouds: a mask that bleeds onto the support moves the verdict. Check measures when a verdict surprises.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ 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.

Навіщо використовувати Checking Spatial Relations у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Checking Spatial Relations — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Checking Spatial Relations у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/runtime-si/RoboSkillHub/tree/main/skills/checking-spatial-relations. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Checking Spatial Relations?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Checking Spatial Relations?

Зі скількома забажаєте. У TypingMind ви можете використовувати Checking Spatial Relations із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Checking Spatial Relations?

Так. На GitHub цю навичку публікує runtime-si за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі
Логотип CherryHQ

Cherry Assistant Guide

CherryHQ
ОрганізаціяПопулярне

从当前安装包查询 Cherry Studio 产品信息并排查运行问题。当用户询问功能、路由、快捷键、Provider、语言、Agent、频道、定时任务、Code CLI、当前版本,或报告运行错误、连接失败、配置异常并需要诊断时触发。

5.1K
52.5K
Файлів: 1
Відкрити
Логотип CherryHQ

Cherry Skill Marketplace

CherryHQ
ОрганізаціяПопулярне

当用户明确要求搜索、安装、查看、卸载或创建 Skill,或内置 Skill / 工具出现能力缺口、无法完成当前任务时触发。通过 `mcp__skills__search_skills` 搜索并用 `mcp__skills__install_skill` 安装;已安装 Skill 的查看和删除通过产品清单导航到 Skills UI;没有合适结果时调用内置 `skill-creator`…

5.1K
52.5K
Інструкції
Відкрити
Логотип CherryHQ

Faq Collector

CherryHQ
ОрганізаціяПопулярне

将成功解决的用户问题收录到 FAQ 知识库。问题解决后自动判断是否收录。也可以在用户说"收录到 FAQ"、"记录这个问题"、"add to FAQ"时手动触发。

5.1K
52.5K
Інструкції
Відкрити
Логотип CherryHQ

Issue Reporter

CherryHQ
ОрганізаціяПопулярне

只在用户明确要求提交 GitHub Issue、GitHub Bug Report 或 GitHub Feature Request 时使用。用户只说“提交问题”“提交反馈”“上报 bug”“这是个 bug”或描述功能建议但未点名 GitHub 时不得触发,必须改用 cherry-studio-feedback 并默认提交飞书。

5.1K
52.5K
Інструкції
Відкрити

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇