Логотип Grasping Direct Ik

Grasping Direct Ik

Організація
runtime-si
grasping-direct-ik

Direct IK align-then-descend grasping. The gripper pre-rotates to the grasp orientation at a safe height ABOVE the target before descending straight down, avoiding the twist-while-closing failure mode of a blended rotate+descend. The grasp rotation is rebuilt so the hand's declared closing axis (robot.describe_gripper, composed by robot.grasp_frame) closes across the target's short horizontal axis, and the hover clearance is the hand's own (robot.describe_workspace) unless the workflow pins it. Use when no trajectory planner (curobo) is deployed or the scene is uncluttered enough that a straight-line approach is safe.

Огляд

Видавецьruntime-si
РепозиторійRoboSkillHub
Назва навичкиgrasping-direct-ik
Зірки
242
Форки
27
Файли в пакеті
5
ЛіцензіяApache-2.0
Посилання
  • Інструкції у форматі Markdown

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

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

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

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

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

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

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

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

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

1

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

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

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/runtime-si/RoboSkillHub/tree/main/skills/grasping-direct-ik
  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/grasping-direct-ik .claude/skills/grasping-direct-ik
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

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

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

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

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

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

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

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

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

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

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

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

grasping-direct-ik

Direct-IK grasp: rotate the gripper to grasp orientation at a safe height above the target, then descend straight down, then close. No trajectory planner — works on platforms where CuRobo is not deployed, or in uncluttered scenes where planning is overkill.

Nothing here is written for one hand. The grasp rotation is composed by the connector's robot.grasp_frame from the hand's measured approach and closing axes, the fingertip floor and the hover clearance come from robot.describe_gripper / robot.describe_workspace, so the same subgraph grasps the same way on a hand that closes along tool-local x and on one that closes along tool-local y.

When to use

  • The curobo tool bundle is not deployed (no collision-aware planner available).
  • The scene is uncluttered enough that a straight-line approach is safe.

When NOT to use

  • Cluttered scenes where the arm must thread between obstacles. Prefer grasping-with-planner if available.

Recommended subgraph state flow

The subgraph state machine the agent generates should look like (7 states):

text
open → compute_grasp → refine_grasp → compute_align → rotate_align → descend → close → grasped

(grasped is the success-marker noop from sg.add_exit("grasped"), with an edge to END.)

State details:

  1. open — type: tool, tool: "robot.open_gripper", inputs: { settle_steps: 40 }.

  2. compute_grasp — type: tool, tool: "geometry.top_down_grasp_candidates", inputs: { obb: Ref("in.target_obb") }.

  3. refine_grasp — type: script, file scripts/<sg>/refine_top_down_grasp.py (from this bundle's canonical_scripts). Inputs: grasp_pose = Ref("compute_grasp.candidates.poses.0"), target_obb = Ref("in.target_obb"). Returns grasp_pose: the candidate with its rotation rebuilt so this hand's closing axis lies across the OBB's short horizontal axis (robot.describe_gripper + robot.grasp_frame(approach=-z, close_heading_deg)), and its Z raised to the fingertip floor (support_z + finger.reach_m + finger.clearance_m) when the hand states its finger envelope. Keep this state: the candidate fan is world-aligned and a thin object's centred grasp jams the jaws on the table without the floor.

  4. compute_align — type: script, file scripts/<sg>/compute_align_pose.py. Inputs: grasp_pose = Ref("refine_grasp.grasp_pose"), target_obb = Ref("in.target_obb"), optionally clearance (a literal in metres). Returns align_pose at the grasp XY and rotation, with z = max(obb_top, grasp_z) + clearance. Omit clearance (or pass 0) and the script asks robot.describe_workspace for align_clearance_m — the hand's own envelope above the fingertips. Pin it (e.g. 0.12) when the held object is what needs the room, such as a long tool that will hang below the fingertips on the way up.

  5. rotate_align — type: tool, tool: "robot.go_to_pose", inputs: { pose: Ref("compute_align.align_pose") }.

  6. descend — type: tool, tool: "robot.go_to_pose", inputs: { pose: Ref("refine_grasp.grasp_pose") } — the same pose compute_align was given, so hover and grasp share one rotation.

  7. close — type: tool, tool: "robot.close_gripper", inputs: { settle_steps: 60 }. Edge directly from close to the grasped success marker; the subgraph's on_error: "failed" catches any raise from earlier steps. Whether the gripper actually closed on the object is checked by the target_held postcondition checkpoint (see ## Checkpoints), NOT by a re-check-and-raise node (none such exists).

    json
    "edges": [ ..., ["close", "grasped"], ["grasped", "END"] ],
    "conditional_edges": {},
    "exit": { "router_field": null, "success_values": ["grasped"] },
    "on_error": "failed"

    The lift onto a safe carry height is handled by the next transporting-objects subgraph (its waypoint_move script lifts before lateral motion); do NOT add a lift step here.

scripts/<sg>/plan_to_pose.py is the optional planned variant of a single leg: it calls curobo.plan_to_pose from the observation's joint state to a target pose and returns the trajectory (raising PlanningFailed when the planner refuses) for a platform that deploys CuRobo as a fast single-pose IK fallback without the goalset grasp planner.

Hard rules

  1. Use geometry.top_down_grasp_candidates (returns candidates: {poses: list[Se3Pose]}), not geometry.top_down_grasp_from_obb (single bare pose). The refine and align-pose constructions assume compute_grasp.candidates.poses.0 exists.
  2. The align_pose descends straight down with the gripper pre-rotated. Do NOT skip the compute_align + rotate_align states — a direct robot.go_to_pose to the grasp pose blends rotation and descent and twists the gripper against the object.
  3. descend uses the pose compute_align was given (refine_grasp.grasp_pose). Never descend to the raw candidate after hovering at the refined rotation.

Required end states

End stateMeaning
graspedGripper has closed on the object after the descend. Route to next subgraph (typically transporting-objects).
failedAny grasp-attempt failure: planning failure or trajectory execution error (a raise to on_error). Coordinator routes to abort. Lives only in on_error — never declare a failed node.

See also

  • references/design_align_then_descend.md — why pre-rotate-then-descend beats blended rotate+descend.
  • scripts/refine_top_down_grasp.py — the close-axis rotation and fingertip floor, read off the live hand.
  • scripts/compute_align_pose.py — the canonical align-pose construction.
  • scripts/plan_to_pose.py — the optional CuRobo single-pose leg.

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

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

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

Що робить навичка ШІ Grasping Direct Ik?

Direct IK align-then-descend grasping. The gripper pre-rotates to the grasp orientation at a safe height ABOVE the target before descending straight down, avoiding the twist-while-closing failure mode of a blended rotate+descend. The grasp rotation is rebuilt so the hand's declared closing axis (robot.describe_gripper, composed by robot.grasp_frame) closes across the target's short horizontal axis, and the hover clearance is the hand's own (robot.describe_workspace) unless the workflow pins it. Use when no trajectory planner (curobo) is deployed or the scene is uncluttered enough that a str...

Навіщо використовувати Grasping Direct Ik у TypingMind?

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

Як встановити Grasping Direct Ik у TypingMind?

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

Які моделі ШІ можуть використовувати Grasping Direct Ik?

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

Зі скількома моделями ШІ можна використовувати Grasping Direct Ik?

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

Чи безкоштовна навичка ШІ Grasping Direct Ik?

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

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

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

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

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

Усі

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

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