Logo de Computing Stable Placements

Computing Stable Placements

Organização
runtime-si
computing-stable-placements

Enumerates the stable resting faces of a rigid object - from its oriented bounding box or a perceived point cloud closed down to the table - by convex hull and centre-of-mass projection, and reports for each rest the tipping angle, the centre-of-mass height, the turn from the object's current orientation that puts that face down, its footprint, and (given a goal point) the resting pose; also says which rest the object is on now, or that it is on none (leaning, tilted, held). Routes placements or no_stable_pose. Use when a graph must choose how to set a part down (a brick, a domino on its end or flat, a jigsaw piece), decide whether a part lying on the table needs a regrasp or flip, or reject a placement too easy to tip; geometry only, no motion.

Visão geral

Publicado porruntime-si
RepositórioRoboSkillHub
Nome da habilidadecomputing-stable-placements
Estrelas
242
Forks
27
Arquivos incluídos
2
LicençaBSD-2-Clause
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 2

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por runtime-si no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Computing Stable Placements no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/runtime-si/RoboSkillHub/tree/main/skills/computing-stable-placements
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

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/computing-stable-placements .claude/skills/computing-stable-placements
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Computing Stable Placements em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Computing Stable Placements automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Computing Stable Placements não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

computing-stable-placements

Which faces can this part rest on, how firmly, and how far must it turn to get there?

text
perceive (OBB or cloud) -> rests (this skill) -> choose a rest -> place / flip / regrasp

What it computes

TSR's stable_poses_mesh, unchanged in substance: the convex hull of the object, its facets grouped into faces by coplanarity (a 4D grid over normal and offset, matched against each group's first plane), and for each face the centre of mass projected onto it. A face is a rest when the projection lies inside the face's support polygon (the 2D hull of its contact points) by more than the length tolerance; the tipping angle is atan(support_margin / com_height): how far the object must be tilted about the nearest support edge before the COM passes over it. Rests are sorted most stable first (upstream place_mesh).

Each rest in rests:

fieldmeaning
label+x ... -z (the OBB's local face) or face-k for a cloud
tipping_deg, support_margin_m, com_height_mstability, as above
center_height_mheight of the reference point (OBB centre, or the COM for a cloud) over the support when resting
turn_deg, rotation_to_restthe minimal world rotation from the current orientation that puts this face down (yaw is then free)
face_normal_worldthe face's outward normal now
footprint_radius_mfarthest horizontal reach from the COM at rest (what a free yaw sweeps)
posewith goal_position: the reference point's world pose resting there (rotation = rotation_to_rest x current)

current_index is the rest whose face points within current_tol_deg (10) of straight down, or -1: the object is not resting on a stable face (tilted, leaning on something, or held).

Inputs

  • object_obb (world, half-extents): the exact path, a box with the COM at its centre unless com is given. Use it for bricks, dominoes, holders, jigsaw pieces.
  • points (world cloud) with support_z: a top-down camera sees no underside, so the cloud is closed down to the support:
    • closing: prism (default): footprint of the points in the upper half of the object's height (mixed depth pixels at the edges fall below it), simplified (3 mm Douglas-Peucker) and extruded from the support to the top (p98). Exact geometry, so upstream's tight tolerances apply.
    • closing: drop: every point plus its drop onto the support; the hull of the raw cloud, with faces merged within 0.05 rad and 2 mm.
    • closing: none / no support_z: the cloud as given (a registered mesh's vertices, a multi-view scan).
  • com: defaults to the OBB centre or the hull's volume centroid (uniform density). Pass it for top-heavy or compound parts.
  • min_margin_deg (0, upstream's default): drop rests that tip more easily. 5 degrees removes the knife-edge rests a noisy footprint produces.
  • surface_half_extents [hx, hy]: drop rests whose footprint does not fit at every yaw (upstream _fits, about the COM here).

Checks

Exact geometry (unit tests): a domino 48 x 24 x 7.5 mm and a LEGO 2x4 brick 31.8 x 15.8 x 11.4 mm give six rests each with tipping angles equal to the analytic atan(min half-side / half-height) to 0.01 deg (domino: flat 72.65, on its long edge 17.35, on its end 8.88; brick: 54.19 / 35.81 / 19.72). A COM moved 10 mm toward one end of the domino gives 15.0 and 6.3 deg on the two ends (atan(3.75/14), atan(3.75/34)). A box cloud tilted 30 deg reports six rests with turns 30.6 / 60 / 90 / 120 / 150 deg and no current rest.

Real station (overhead D405 frame top_before.npz of a gsota probe run, points inside each holder's measured footprint + 6 mm, over the table), against the holders' wrist-measured boxes:

grey holder (wrist: 76.2 x 100.4 x 24.5 mm)restsflat rest: tipping, COM heightcurrent
measured box, OBB path672.2 deg, 12.2 mmflat
OBB fitted to the cloud (minAreaRect of the upper points, p98 top: 73.0 x 97.0 x 23.7 mm)672.0 deg, 11.8 mm; sides 18.0 / 13.7 deg vs 17.8 / 13.7flat
cloud, prism (7-gon 73.0 x 99.5 x 23.7 mm)768.8 deg, 11.8 mmflat
cloud, drop (raw hull)376.1 deg, 9.3 mmflat
  • For box-like parts fit an OBB first. The fitted OBB matched every rest of the measured box within 0.2 deg and 1.7 mm. The prism keeps the flat rest and the current one right, but its footprint polygon has cut corners (the holder's footprint fills 78 % of its rectangle), so one short side splits into two bent segments: rests at 4.0 deg and the side angles off by up to 3 deg. The raw drop hull is a rounded frustum (mixed pixels widen its base to 88 x 112 mm): 3 rests of 6, COM 3 mm low.
  • Uniform density is an assumption. The black holder with 12 markers standing in it (cloud top 126 mm) becomes a solid 68 x 91 x 124 mm prism whose most stable rest is on its side (34 deg vs 25.6 deg upright); the real object's mass is in the holder. Pass com for such parts.
  • No arm motion, so no simulation check; nothing was placed to confirm a rest physically.

Relation to other skills

  • standing-a-lying-domino-by-reorient-and-regrasp, tipping-over-a-surface-edge: the motions that change the rest; this skill says which rest to aim for and whether the part is on one now.
  • placing-with-contact-descent / placing-into-container-obb: use best_pose / center_height_m for the release height.

Changes from TSR

Adapted from src/tsr/placement/_stable_poses.py and the place_mesh / _fits logic of stable_placer.py (BSD-2-Clause, licence in LICENSE.tsr):

  • Input is a world OBB or a perceived cloud instead of a mesh in its own frame; the cloud closings (prism, drop) and the cloud tolerances are new.
  • COM defaults to the hull's volume centroid.
  • Output is per-rest world numbers (turn, normal now, pose at a goal) instead of TSR templates with sampling bounds; the current rest is identified.
  • The surface fit is measured about the COM, from given half-extents.
  • The analytic primitives (cylinder, sphere, torus, compound shapes) are not ported; a cylinder lying on its side is not a rest in upstream either.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Computing Stable Placements faz?

Enumerates the stable resting faces of a rigid object - from its oriented bounding box or a perceived point cloud closed down to the table - by convex hull and centre-of-mass projection, and reports for each rest the tipping angle, the centre-of-mass height, the turn from the object's current orientation that puts that face down, its footprint, and (given a goal point) the resting pose; also says which rest the object is on now, or that it is on none (leaning, tilted, held). Routes placements or no_stable_pose. Use when a graph must choose how to set a part down (a brick, a domino on its en...

Por que usar Computing Stable Placements no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Computing Stable Placements é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Computing Stable Placements no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/runtime-si/RoboSkillHub/tree/main/skills/computing-stable-placements. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Computing Stable Placements?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Computing Stable Placements?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Computing Stable Placements com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Computing Stable Placements é gratuita?

Sim. A habilidade é publicada no GitHub por runtime-si sob a licença BSD-2-Clause. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇