Logotipo de Computing Stable Placements

Computing Stable Placements

Organización
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.

Descripción general

Editorruntime-si
RepositorioRoboSkillHub
Nombre de la habilidadcomputing-stable-placements
Estrellas
242
Forks
27
Archivos incluidos
2
LicenciaBSD-2-Clause
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 2

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por runtime-si en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Computing Stable Placements en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/runtime-si/RoboSkillHub/tree/main/skills/computing-stable-placements
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese 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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Computing Stable Placements en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Computing Stable Placements automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Computing Stable Placements no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu 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.

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA 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 en...

¿Por qué usar Computing Stable Placements en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Computing Stable Placements está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Computing Stable Placements en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/runtime-si/RoboSkillHub/tree/main/skills/computing-stable-placements. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Computing Stable Placements?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Computing Stable Placements?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Computing Stable Placements con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Computing Stable Placements?

Sí. runtime-si la ha publicado en GitHub bajo la licencia BSD-2-Clause. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇