Logo Computing Stable Placements

Computing Stable Placements

Tổ chức
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.

Tổng quan

Nhà phát hànhruntime-si
Kho mãRoboSkillHub
Tên kỹ năngcomputing-stable-placements
Sao
242
Bản fork
27
Tệp đi kèm
2
Giấy phépBSD-2-Clause
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 2 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được runtime-si công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Computing Stable Placements trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/runtime-si/RoboSkillHub/tree/main/skills/computing-stable-placements
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Computing Stable Placements trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Computing Stable Placements ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Computing Stable Placements với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Computing Stable Placements làm được gì?

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...

Vì sao nên dùng Computing Stable Placements trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Computing Stable Placements là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Computing Stable Placements trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/runtime-si/RoboSkillHub/tree/main/skills/computing-stable-placements. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Computing Stable Placements?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Computing Stable Placements với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Computing Stable Placements với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Computing Stable Placements có miễn phí không?

Có. Kỹ năng này được runtime-si phát hành trên GitHub theo giấy phép BSD-2-Clause. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇