Логотип Checking Dual Arm Clearance

Checking Dual Arm Clearance

Організація
runtime-si
checking-dual-arm-clearance

Predicts, before a move is sent, the minimum clearance between the two arms along the planned path - both arms' joints and tool poses are read together, each planned leg (joint waypoints, or tool poses solved with the arm's IK every 2 cm) is sampled every 0.01 rad, and at every sample a capsule model of the YAM's links (plus held-object spheres) gives the closest cross-arm pair - and routes clear / too_close / unknown with the minimum distance, where along the path it falls and the closest link pair. Use when a bimanual station is about to move one arm near the other (a handover, a two-hand lift, a place beside the other hand) and its planner does not see the other arm, with both arms addressable by arm_id.

Огляд

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

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

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

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

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

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

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

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

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

Установіть навичку ШІ Checking Dual Arm Clearance у 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-dual-arm-clearance
  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-dual-arm-clearance .claude/skills/checking-dual-arm-clearance
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

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

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

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

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

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

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

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

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

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

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

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

checking-dual-arm-clearance

A per-arm planner (or a plain IK servo) does not see the other arm. Before a move, this node asks: if arm A goes there (and then arm B goes there, or both together), how close do the two arms come, and where? It never moves anything.

The check

  1. Read both arms together (robot.get_observation): 6 joints, tool pose and jaw opening each. Refuse (unknown) if the connector reports fewer arms than asked for, or if the two arms read the same tool pose and joints (a connector that ignores arm_id would answer the first arm twice).
  2. Locate each base from its own reading: base = tool pose x (model tool pose at these joints)^-1, with the tool centre from robot.describe_arm (tcp_offset, tcp_rotation; the YAM's 134.7 mm grasp site otherwise). No base poses or spacing are configured.
  3. Check the model against the connector. robot.forward_kinematics is asked for the tool pose at the current joints and at a test change of all six; the relative motion must match the model's within 5 mm, otherwise this is not the modelled arm (or its joints are ordered differently): unknown. A connector without that tool is trusted and detail says so.
  4. Plan the joint paths. trajectory_a / trajectory_b (gap Trajectory) are taken as joint waypoints from the current joints. poses_a / poses_b (gap PoseSequence) are solved with robot.solve_ik every 2 cm / 10 deg along each straight leg (only at the end for a waypoint with cartesian: false or mode: planned_joint); a solve outside the servo's tolerance or a branch change (a joint jumping 0.8 rad between neighbouring solves) is unknown, since the arm's real path is then not known. An arm with neither stands still. Each path is interpolated in joint space so no joint moves more than 0.01 rad between samples.
  5. Combine the two paths: a_then_b (default; the way the handover and most graphs move, one arm at a time), b_then_a, or together (both resampled by joint arc length, as a lock-step stream would move them).
  6. Clearance at every sample (RoboRSI's rule, spheres replaced by capsules): for every capsule of arm A against every capsule of arm B, segment-to-segment distance minus both radii; the smallest over all pairs and samples is min_clearance_m (negative = overlap), with the two links (closest_link_a, closest_link_b, e.g. arm0:tip_right), the two closest points (world) and at_fraction (0 = now, 1 = the end of the combined motion). Fingertip capsules ride on the jaw opening read now (grip_a / grip_b override it, 1.0 = open); held objects are gap AttachedObject spheres in the tool frame (attached_a, attached_b, or a pose sequence's attached_object).

Inputs

All optional; with none, the check is of the two arms as they stand now.

  • arm_a (0), arm_b (1): the connector's arm ids.
  • trajectory_a, trajectory_b: joint waypoints (gap Trajectory).
  • poses_a, poses_b: tool-pose waypoints (gap PoseSequence).
  • attached_a, attached_b: held-object spheres (gap AttachedObject).
  • grip_a, grip_b: jaw opening fraction during the move (default: as read).
  • finger_travel [m] (from the robot): one finger's slide from closed to full open. Unset, it is half of robot.describe_gripper's span_m (else max_grasp_width_m) less its closed width; with neither the exit is hand_geometry_unknown.
  • order: a_then_b | b_then_a | together.
  • too_close_m (0.005), joint_step_rad (0.01), cartesian_step_m (0.02).
  • skip_links: comma-separated link names to leave out (e.g. gripper,base).

The YAM capsule model

The i2rt YAM with the linear_4310 hand, transcribed from the i2rt MJCF (the chain matches mujoco's own kinematics to 0.13 um over 20 random joint vectors). Every capsule encloses all vertices of its share of the link's collision geometry (a minimum-volume enclosing capsule per k-means cluster of vertices, or per convex piece for the fingertips, +0.5 mm for rounding), so the predicted clearance is a lower bound on the geometry it was fitted to. Radii and counts, per body:

bodycapsulesradii (mm)fitted to
base149MJCF mesh (never near the other arm at 0.61 m spacing)
link1319-26collision mesh, k-means clusters
link2 (upper arm)818-33collision mesh, k-means clusters
link3 (forearm)816-32collision mesh, k-means clusters
link4512-32collision mesh, k-means clusters
link5412-29collision mesh, k-means clusters
gripper housing416-29MJCF mesh (the twin does not collide it; the real one is there)
tip_left, tip_right49 each2-17 (median 6-8)one per convex piece of the fingertip's collision decomposition; they slide 0 to the hand's single-finger travel with the jaw (47.5 mm on the linear_4310)

The constants in the script carry the end points. The base, the hand housing and the D405 wrist camera bracket are not in the twin's arm-to-arm measure; the bracket is not in the model at all (no geometry for it in the MJCF): on the real arm add it as an attached_* sphere, or keep a margin.

Simulation check

RoboSimStudio YAM station twin, both arms (bases 0.61 m apart, arm 0 = left). The twin does not collide the two arms with each other, so the harness measures their clearance itself (arm_gap.py): the closest pair of collision points across link1-5 and the fingertips' convex pieces (mesh vertices; an overlap reads as about 0, never negative; the hand housing and the base are not in it). Ten configurations of both arms were taken from each of two handing-over-between-arms runs recorded every 20 ms (handover point 1 with free_offset_fraction 0.5, where the hands touch, and point 3 with the default 1.0): the closest poll and the polls nearest 1, 2, 3.5, 6, 10, 20, 40, 80 and 200 mm, visited in the order the handover passed them. At each the harness set both jaws, asked this skill for the path clearance of the move there (left arm then right, joint targets), drove the arms there (robot.move_to_joints, polling the measure every 20 ms), and asked the skill again standing still. "full" is the skill as shipped; "matched" leaves out the housing and the base (skip_links="gripper,base") to compare like with like.

runmeasured (mm)predicted, fullpredicted, matchedroutepath measured (polls)path predictedpath route
point 1, offset 0.5190.6175.2178.6clear37.3 (11)27.6clear
point 1, offset 0.576.369.069.0clear75.9 (9)65.4clear
point 1, offset 0.550.643.743.7clear50.6 (9)43.7clear
point 1, offset 0.55.20.30.3too_close5.2 (8)0.2too_close
point 1, offset 0.50.2-9.2-9.2too_close0.2 (9)-13.5too_close
point 1, offset 0.59.71.51.5too_close0.6 (13)-15.1too_close
point 1, offset 0.532.827.227.2clear9.7 (12)1.5too_close
point 1, offset 0.538.633.833.8clear32.8 (10)27.2clear
point 1, offset 0.524.719.719.7clear24.3 (17)16.7clear
point 1, offset 0.538.033.633.6clear24.7 (16)19.7clear
point 3, offset 1.0226.9217.0217.0clear103.9 (12)73.7clear
point 3, offset 1.070.764.664.6clear62.6 (14)50.8clear
point 3, offset 1.072.766.466.4clear70.5 (10)64.5clear
point 3, offset 1.073.767.867.8clear72.9 (8)66.6clear
point 3, offset 1.023.920.020.0clear23.9 (9)20.0clear
point 3, offset 1.00.3-6.2-6.2too_close0.3 (8)-6.3too_close
point 3, offset 1.059.651.451.4clear0.3 (7)-6.2too_close
point 3, offset 1.079.971.971.9clear59.8 (6)51.7clear
point 3, offset 1.053.644.344.3clear53.5 (8)44.3clear
point 3, offset 1.057.954.854.8clear50.3 (7)42.1clear

The table is the last pair of runs (the bundle as shipped). An earlier pair of runs with the same capsules (the outputs then named differently) gave 20 more configurations; the numbers below are over all 40.

  • Standing still, the prediction was under the measure at all 40 configurations, by 3.2-12.0 mm (mean 6.7) matched and 3.2-15.3 mm (mean 6.9) full (the largest are the housing, which the measure leaves out). The closest link pair agreed with the measure's at all 40 matched and 38 of 40 full (at 190-218 mm the full model's closest is the housing). Every configuration under 200 mm was fingertip to fingertip.
  • Routes at the default 5 mm, taking "measured under 5 mm" as truly too close: standing still, false clear 0 of 4, false too_close 4 of 36 (measured 5.2-9.7 mm, predicted 0.3-3.5); along the paths, false clear 0 of 9, false too_close 4 of 31. At a 10 mm threshold: false clear 0 of 8 / 0 of 13, false too_close 1 of 32 / 0 of 27.
  • Along the path the prediction was 3.2-32.8 mm under (mean 9.9). The measured path minimum comes from 3-18 polls of a move that takes well under a second, so it is an upper bound on the true minimum, and the twin's joint servo does not move exactly along the straight joint line sampled here; both widen this number.
  • Bases and model: the bases derived from the arms' readings matched the twin's base bodies to 0.0 mm and 0.0 deg; the model-vs-connector forward kinematics check read under 0.001 mm on every call.
  • Why it is conservative: offline, at 150 random fingertip-to-fingertip poses, the capsules sat 7.3 mm (mean; p90 10.9, min 1.1) under the dense surface of the fingertips' convex pieces, while the harness's vertex measure sat only 0.8 mm (mean) over that surface. Capsules around plate-like fingertip pieces bulge; more, smaller capsules (or boxes) would tighten it. A first model with 6 k-means capsules per fingertip read 7.7-20.9 mm under (mean 14.1).

The handovers themselves transferred the cube in all six runs (three pairs, the first with the 6-capsule fingertips; closest fingertip gaps 0.17-0.43 mm at point 1 / offset 0.5, 0.32-3.12 mm at point 3). The node at the start of each graph (this skill as a subgraph, arms at their start poses, no plan) routed clear at 347 mm (base to base).

Connectors and arm_id

  • RoboSimStudio: robot.get_observation lists both arms (0 = left / work, 1 = right); robot.describe_arm, robot.forward_kinematics and robot.solve_ik take arm_id.
  • The real YAM station bridge (yam_real.py, 2026-11-06) reports one arm in its observation and serves no robot.forward_kinematics or robot.describe_arm: this skill answers unknown ("no separate arm") there. With a dual-arm bridge it would run on the real joint readings; the model's joint zero and order would be checked by step 3 only if that bridge serves forward kinematics.

Provenance

Adapted from RoboRSI's check_dual_arm_collision skill and its dual_arm_collision.py (check_pair_collision, check_trajectory_collision), Apache-2.0: pairwise cross-arm primitive distance minus radii, minimum with the closest pair, attached-object primitives on the hand, the candidate-pose mode through the arm's IK, and the trajectory mode that samples waypoints. Changed: the robot is read only through robot.* tools (no joint state is written to the robot to evaluate a candidate - the model's own forward kinematics is used); YAM link capsules derived from the i2rt model replace the ALOHA sphere YAML; the bases are located from the arms' own readings; whole planned paths of either or both arms are sampled densely, not every 4th planner waypoint of one; the result is routed clear / too_close / unknown instead of a boolean.

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

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

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

Що робить навичка ШІ Checking Dual Arm Clearance?

Predicts, before a move is sent, the minimum clearance between the two arms along the planned path - both arms' joints and tool poses are read together, each planned leg (joint waypoints, or tool poses solved with the arm's IK every 2 cm) is sampled every 0.01 rad, and at every sample a capsule model of the YAM's links (plus held-object spheres) gives the closest cross-arm pair - and routes clear / too_close / unknown with the minimum distance, where along the path it falls and the closest link pair. Use when a bimanual station is about to move one arm near the other (a handover, a two-hand...

Навіщо використовувати Checking Dual Arm Clearance у TypingMind?

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

Як встановити Checking Dual Arm Clearance у TypingMind?

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

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

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

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

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

Чи безкоштовна навичка ШІ Checking Dual Arm Clearance?

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

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

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

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

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

Усі

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

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