Logo Centering A Part With The Gripper

Centering A Part With The Gripper

Tổ chức
runtime-si
centering-a-part-with-the-gripper

Centres a loose part between the jaws without perceiving it - closes on it, opens, turns the wrist a quarter turn about the hand's approach axis, closes again (each close squares the part up along one axis), opens and turns back; fails when the jaw gap after a close says nothing is between the pads. Use when the hand already stands around a small part whose estimated position is a few millimetres off (before a pick that must be centred, an insertion of a plug or peg, or threading a ring held in the fingers), the part is free to slide on its support, and the hand is open or empty.

Tổng quan

Nhà phát hànhruntime-si
Kho mãRoboSkillHub
Tên kỹ năngcentering-a-part-with-the-gripper
Sao
242
Bản fork
27
Tệp đi kèm
2
Giấy phépMIT
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 Centering A Part With The Gripper 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/centering-a-part-with-the-gripper
  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/centering-a-part-with-the-gripper .claude/skills/centering-a-part-with-the-gripper
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 Centering A Part With The Gripper 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 Centering A Part With The Gripper 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 Centering A Part With The Gripper 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.

centering-a-part-with-the-gripper

Square a small loose part up between the jaws by touch, with no camera. A parallel gripper closing on a part pushes it toward the jaws' midline along the closing axis; turned a quarter turn and closed again it does the same along the other axis, so after two closes the part sits under the tool centre in both horizontal directions.

The motion

  1. Close (robot.close_gripper). If the measured jaw gap is within min_held_width of the closed stop, open and exit nothing_caught.
  2. Open (robot.open_gripper).
  3. Turn the wrist turn_deg (90) about the hand's approach axis, in place, with robot.go_to_pose_cartesian; judge the turn from a fresh robot.get_ee_pose. If it does not arrive, try the opposite turn (o2ac does the same). If neither does, turn the last joint by the same amounts with robot.move_to_joints from the joints read at the start (joint_fallback); either quarter turn counts. If nothing arrives, exit unreachable.
  4. Close again, with the same empty check (open, turn back, nothing_caught).
  5. Open (skip with release=false to keep the part held), and turn back to the start rotation (return_to_start, default true).

The jaw gap is robot.close_gripper's returned position (or robot.get_gripper), 1.0 = open, converted to metres through robot.describe_gripper's width_fit (or span_m), as verifying-grasps does. A hand that cannot be read is treated as holding something: absent evidence is not a failed centring.

Inputs (all optional)

  • check_held (true): the empty-close test after each close.
  • min_held_width (0.003 m): a close ending within this of the closed stop held nothing. Lower it for parts thinner than about 4 mm.
  • turn_deg (90), clockwise (false): the turn tried first.
  • return_to_start (true), release (true), skip_first_close (false): o2ac's move_back_to_initial_position and skip_first_grasp; release is new.
  • joint_fallback (true): turn the last joint when a pose turn does not arrive. An IK that leaves wrist roll free (RoboSimStudio's default on the YAM) reaches the turned pose without turning; o2ac's own docstring turns "the robot's last joint". A connector that refuses joint moves (the real YAM station bridge) just routes the refusal.
  • rotation_tolerance_deg (10), position_tolerance (0.015 m): arrival bounds of the turn.
  • arm_id (0), passed to the connector only when nonzero.

Preconditions

  • The hand already stands around the part: top-down over it, tool centre at the part's height, the part inside the open jaws in both directions. The skill does not move the hand down or sideways.
  • The part slides on its support and is narrower than the open hand. Neighbours within the open jaws' sweep (the fingers turn through a quarter circle) get pushed too.

Outputs

first_width, second_width (m, -1 when not measured), turned_deg (the turn that arrived, signed, as read back), turned_by (pose or last_joint), returned. The part's position is not measured: the exit says the hand closed on something twice, not where the part ended. Re-perceive it if that matters.

The constants, and why

  • TURN_DEG = 90: o2ac's tau / 4; two closes square the part along two perpendicular axes.
  • MIN_HELD_WIDTH = 0.003 m: o2ac's simple_gripper_check fails under 1 mm (6 mm on its imprecise hand); 3 mm is the hub's verifying-grasps margin, set from an empty close measured at 1.8 mm.
  • ROTATION_TOLERANCE_DEG = 10, POSITION_TOLERANCE = 0.015 m: no tighter than the connectors' own arrival bounds (a servo's 3 deg / 4 mm, a real YAM station's 0.04 rad / 12 mm per move).

Measured in a YAM station twin

RoboSimStudio's YAM station twin (left arm, linear_4310 hand, a 30 mm cube on the table), one rollout, default inputs. A setup script stood the open hand top-down with robot.grasp_frame's rotation, tool centre about 19.7 mm over the cube's bottom (the descent to 18 mm stopped 1.7 mm short), offset from the cube's centre; sim.get_object_obb measured the cube against robot.get_ee_pose before and after:

asked offset (mm)cube off the tool centre beforeafterjaw gap at the two closes
+8, 07.8 mm0.22 mm31.7 / 31.4 mm
0, +87.8 mm0.09 mm31.4 / 31.5 mm
+6, -68.2 mm0.17 mm31.4 / 31.4 mm
-5, +78.6 mm0.39 mm31.4 / 31.4 mm
+7, +79.6 mm1.11 mm31.4 / 31.4 mm
-10, 010.1 mm0.72 mm31.4 / 31.7 mm (first / second)

All six exited centered and turned back. The cube never tipped (tilt 0.0 deg) and turned at most 6 deg about the vertical. Over empty table (the hand 120 mm from the cube) the first close read 0.0 mm and the skill exited nothing_caught without turning; the cube did not move.

The twin's IK leaves wrist roll free, so every pose turn "arrived" without turning the hand (read back 90 deg off): the turns ran by the last joint, and the turn back likewise. A first rollout without the joint fallback routed all six unreachable; its first close alone had already centred the cube along the jaws' axis (0, +8 mm: 7.8 to 0.43 mm) and left it 7.8 mm off across them, which is what the second close is for. On a real YAM station the pose turn is expected to arrive (its IK solves the full rotation) and robot.move_to_joints is refused; that path has not been run on hardware.

Provenance

Adapted from o2ac-ur's center_with_gripper and simple_gripper_check (catkin_ws/src/o2ac_routines/src/o2ac_routines/common.py, MIT, Team O2AC, World Robot Summit 2020 assembly). Changed: robot.* connector tools instead of MoveIt and the Robotiq driver; the hand opens fully between closes instead of to a commanded opening_width, because the YAM station offers only open and close; the empty test converts the jaw gap through robot.describe_gripper; the turn is about the hand's approach axis from its current rotation, judged from a fresh pose reading; refused moves route instead of raising; release is new. o2ac's gripper force and speed arguments have no counterpart here.

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 Centering A Part With The Gripper làm được gì?

Centres a loose part between the jaws without perceiving it - closes on it, opens, turns the wrist a quarter turn about the hand's approach axis, closes again (each close squares the part up along one axis), opens and turns back; fails when the jaw gap after a close says nothing is between the pads. Use when the hand already stands around a small part whose estimated position is a few millimetres off (before a pick that must be centred, an insertion of a plug or peg, or threading a ring held in the fingers), the part is free to slide on its support, and the hand is open or empty.

Vì sao nên dùng Centering A Part With The Gripper 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. Centering A Part With The Gripper 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 Centering A Part With The Gripper 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/centering-a-part-with-the-gripper. 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 Centering A Part With The Gripper?

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 Centering A Part With The Gripper 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 Centering A Part With The Gripper 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 Centering A Part With The Gripper 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 MIT. 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 👇