Логотип Assigning Bricks To Two Arms

Assigning Bricks To Two Arms

Организация
runtime-si
assigning-bricks-to-two-arms

Assigns every brick of a LEGO or DUPLO build sequence to an arm - which arm places it, from which stock brick, with which grasp (jaws across the brick's x or y, offset along it), and which other arm holds the structure while it is pressed - with APEX-MR's task-assignment MILP (each task one arm, one brick of its type and one grasp; a support arm that is never the placing arm and takes the same grasp side; stock bricks used once unless they are reusable stations; stock precedence; the per-arm load balanced in every window of n consecutive tasks, weight 1000, so the arms alternate), solved with SciPy's HiGHS. Costs are travel distances from each arm's base to the stock and on to the target, and grasps off the brick's centre cost more. Arm reach (a radius, and optionally an IK preview) and the fingers' room beside the target decide what is feasible. Use after planning-brick-assembly-order, when two arms build together and the graph needs per-brick arm, grasp and support duties before computing poses.

Обзор

Издательruntime-si
РепозиторийRoboSkillHub
Название навыкаassigning-bricks-to-two-arms
Звёзды
242
Форки
27
Файлы в комплекте
2
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

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

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

  • Открытый исходный код

    Издатель навыка на GitHub — runtime-si. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Assigning Bricks To Two Arms в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/runtime-si/RoboSkillHub/tree/main/skills/assigning-bricks-to-two-arms
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
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/assigning-bricks-to-two-arms .claude/skills/assigning-bricks-to-two-arms
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Assigning Bricks To Two Arms в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Assigning Bricks To Two Arms, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Assigning Bricks To Two Arms не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

assigning-bricks-to-two-arms

Two arms can build faster than one, and some bricks need two: one arm holds an overhang while the other presses a brick onto it. This skill decides, for a fixed placement order, which arm does what for each brick, using APEX-MR's task-assignment model.

How it composes

  • Before it: planning-brick-assembly-order gives the placement sequence (its sequence_json, with a plate origin), or world-pose tasks from computing-brick-pose-from-stud-grid. A task's needs_support comes from a stability analysis (APEX-MR used a force-balance model with Gurobi, which is not ported) or by hand for overhangs. planning-brick-assembly-order's own two-arm split is a split by x with reach; this skill replaces it when stock, grasps, support or balance matter.
  • After it: per task, the arm's arm_id, close_along and grasp_offset_m go to the grasp and press skills (pressing-a-brick-onto-studs on that arm). support_arm_id tells holding-steady-while-other-arm-acts which arm holds. checking-dual-arm-clearance should still gate simultaneous motions.

The model (APEX-MR's MILP)

Binary x[arm, task, stock brick, grasp] and y[arm, task, side], integer window loads z[arm, window] with their max and min:

  • each task: exactly one x;
  • an arm does not both place and support one task;
  • a task that needs support has exactly one y, and on the placing grasp's side (APEX-MR's support pose depends on the press side);
  • a stock brick that is not reusable (a station) is used at most once;
  • stock precedence [a, b]: a is used no later than b, using APEX-MR's (m - j) weights (which also means b is used only if a is);
  • every window of n consecutive tasks (n = number of arms): each arm's load (placements + supports) is z; minimise travel + offsets + support travel
    • 1000 x sum(z_max - z_min). The balance term, APEX-MR's lambda_balance, makes the arms take turns, which is what lets them run asynchronously.

APEX-MR filled its cost tensors from its MoveIt planner's CSVs (planning times, a large number when infeasible). Here they come from geometry:

  • travel: base to the stock brick, then to the target (no stock: twice base to target), plus offset_cost (1 cm) per pitch of grasp offset;
  • feasible: the target and the stock brick are within the arm's reach_m (horizontal), and with check_ik robot.solve_ik accepts a top-down hover hover (5 cm) over both with that grasp's yaw (arm_id passed when nonzero);
  • grasps: jaws closing along the brick's x or y (APEX-MR's two press sides) if that span plus 4 mm fits the jaws' jaw_opening, times up to num_offsets (7, APEX-MR's) offsets along the other axis in half-pitch steps from the centre (over and between the stud columns) while the finger_width finger stays on the brick (with a 20 mm finger, a DUPLO 2x4 across its short side: -16, -8, 0, +8, +16 mm; a LEGO 2x4: -4, 0, +4 mm), nearest the centre first. A grasp is dropped when a brick placed earlier at the target's height stands where a finger (+3 mm) goes down beside it (planning-brick-assembly-order's finger boxes);
  • support: distance from the base to support_position (default: one brick height under the target), if reachable.

Infeasible combinations get no variable at all (APEX-MR gives them a 1,000,000 cost and reports "Infeasible" when the optimum exceeds it). If the full model has no solution but the model without support does, needs_support_arm names the support points no second arm reaches.

Inputs

  • arms (required): [{arm_id, base, reach_m}].
  • tasks, or sequence_json + plate_origin (world position of cell (0, 0)'s corner on the plate top) + plate_yaw_deg.
  • stock, stock_precedence; system (duplo / lego; pitch and heights).
  • num_offsets, balance_weight, offset_cost, jaw_margin, finger_margin, check_ik, hover, time_limit_s (30).
  • The hand: jaw_opening (the open jaws' span), finger_thickness (a fingertip's depth along the closing axis), finger_width (across it), or hand in robot.describe_gripper's fields (span_m, finger.thickness_m, finger.width_m). What is not given is read from robot.describe_gripper on every arm (the narrowest opening and largest fingertip of them); with neither the skill routes hand_geometry_unknown. A YAM linear_4310, for example: {span_m: 0.094, finger: {thickness_m: 0.010, width_m: 0.020}} (its describe_gripper states the span but not the finger sizes).

Outputs

route, detail, assignment_json (per task: task, arm_id, stock, close_along (x / y of the brick), grasp_offset_m, grasp_yaw_deg, support_arm_id), by_arm_json (arm -> task ids), n_tasks, n_support, objective, imbalance (sum over windows of z_max - z_min), travel (m), solve_s.

Checked

No arm motion (IK previews only), so no simulation check is needed. Tests (tests/bundles/test_assigning_bricks_to_two_arms.py) cover alternation in the windows, reach, a support arm on the same side and never the placing one, needs_support_arm, flush neighbours forcing the other grasp side and walling a brick in, narrow jaws, centred offsets, single-use and reusable stock, size matching (a 4x2 brick for a 2x4 task), stock precedence, an IK preview ruling out an arm, sequences from planning-brick-assembly-order, and the MILP's objective against brute force (every arm choice enumerated for 4 tasks, 5 random instances: equal).

APEX-MR's own assembly tasks (config/lego_tasks/assembly_tasks, copied to tests/bundles/data/apex_mr). Each instance uses APEX-MR's plate calibration (taken as the 48 x 48 plate's centre) and its two GP4 bases 0.88 m apart, a 0.55 m reach per arm, and one reusable station per brick type in front of each arm:

modeltasksneed supportroute (YAM 20 mm fingers)placed by arm 0 / 1arm changes between consecutive taskswindow imbalancetravel mtime s
cliff123assignment_ready5 / 79 of 1119.20.15
stairs_rotated144assignment_ready5 / 99 of 13110.4< 0.01
S136assignment_ready4 / 97 of 1219.1< 0.01
faucet143assignment_ready7 / 713 of 13610.0< 0.01
guitar240assignment_ready12 / 1223 of 23016.5< 0.01
R210assignment_ready11 / 1020 of 20015.4< 0.01
bridge3818assignment_ready10 / 28 (arm 0 supports the 18 overhangs)20 of 37127.80.01
fish_high2912infeasible: tasks 12 and 17----< 0.01
fish_high, 6 mm finger2912assignment_ready11 / 1821 of 281220.90.01
rss4712assignment_ready18 / 2934 of 461033.20.01

Every supported task got the other arm, on the placing grasp's side. Where nothing needs support, the arms alternate on every task (guitar, R: zero imbalance). With support, the supporting arm's load counts in the windows, so the arm that supports places less (bridge). Every grasp came out centred. fish_high's tasks 12 and 17 are LEGO 2x4s with flush neighbours along a whole face. A 20 mm YAM finger on the free faces overhangs the 16 mm brick into a neighbour, so a parallel gripper cannot place them in APEX-MR's order; APEX-MR's own end-of-arm tool needs no finger room (a 6 mm finger solves it). planning-brick-assembly-order's finger check finds the same kind of brick.

Limits

  • Costs are distances, not plans: no collision-checked motion, no timing. APEX-MR's planner costs encode both. With check_ik each pose is only IK-previewed; checking-dual-arm-clearance (or a planner) still gates the motions.
  • Support need is an input: APEX-MR's stability analysis (Gurobi) is not ported. Overhangs must be flagged by the caller.
  • The order is fixed: like APEX-MR's assignment, the task order is given (by planning-brick-assembly-order). The temporal plan graph that lets the arms run asynchronously (APEX-MR's TPG / ADG) is not part of this skill.
  • Grasp sides only on the brick's own axes, offsets in half-pitch steps.

The constants, and why

  • LAMBDA_BALANCE = 1000, NUM_OFFSETS = 7: APEX-MR's lambda_balance and num_offsets.
  • OFFSET_COST = 0.01 m per pitch: chosen; centred grasps first unless a centred one is blocked.
  • JAW_MARGIN = 0.004, FINGER_MARGIN = 0.003: planning-brick-assembly-order's margins. The hand's own sizes are inputs (the table above used a YAM linear_4310: 94 mm span, 10 x 20 mm fingertips).
  • SAME_LAYER_FRACTION = 0.5: a brick whose bottom is within half a brick height of the target's is beside it, where the fingers go.

Provenance

The MILP is APEX-MR's TaskAssignmentSolver.solve_problem (MIT; Huang et al., "APEX-MR", RSS 2025, arXiv:2503.15836), solved with SciPy's HiGHS instead of PuLP / CBC. The cost tensors are built in the skill from geometry instead of the MoveIt planner's CSVs. The script's header lists the changes; licence in LICENSE.apexmr.

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ Assigning Bricks To Two Arms?

Assigns every brick of a LEGO or DUPLO build sequence to an arm - which arm places it, from which stock brick, with which grasp (jaws across the brick's x or y, offset along it), and which other arm holds the structure while it is pressed - with APEX-MR's task-assignment MILP (each task one arm, one brick of its type and one grasp; a support arm that is never the placing arm and takes the same grasp side; stock bricks used once unless they are reusable stations; stock precedence; the per-arm load balanced in every window of n consecutive tasks, weight 1000, so the arms alternate), solved wi...

Зачем использовать Assigning Bricks To Two Arms в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Assigning Bricks To Two Arms — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Assigning Bricks To Two Arms в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/runtime-si/RoboSkillHub/tree/main/skills/assigning-bricks-to-two-arms. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Assigning Bricks To Two Arms?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Assigning Bricks To Two Arms?

С любым количеством. В TypingMind вы можете использовать Assigning Bricks To Two Arms с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Assigning Bricks To Two Arms?

Да. Навык опубликован на GitHub по лицензии MIT. Издатель — runtime-si. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇