Detecting In Hand Slip And Twist From The Wrist Cameraのロゴ

Detecting In Hand Slip And Twist From The Wrist Camera

組織
runtime-si
detecting-in-hand-slip-and-twist-from-the-wrist-camera

指と一緒に剛体として動く手首カメラで、把持した部品がジョーの中で滑る、ねじれる、または落ちるかを監視します。部品の領域は、カメラ前方の近距離深度帯にある部分として識別します。開始時に撮影したフレームとの高密度FarnebackオプティカルフローにRANSACによる相似変換をフィットさせ(静止した指の動きが部品の動きに混ざるのを防ぎます)、滑り量(mm)とカメラ軸まわりの回転を求めます。領域の深度平面の法線からジョーの閉じる軸まわりのねじれを推定します。これは画像だけでは分かりません。領域が小さくなった場合は落下と判定します。ジョーで部品を運ぶ、または押す際、触覚センサーや力センサーなしで部品が手の中で動いたか(ドミノがパッドからずれる、棒やペグが把持部を軸に回転する、部品がハンドから外れるなど)を確認してから、その姿勢を前提に次の処理を行う必要がある場合に使用します。

Add to TypingMind

概要

公開者runtime-si
リポジトリRoboSkillHub
スキル名detecting-in-hand-slip-and-twist-from-the-wrist-camera
スター
242
フォーク
27
同梱ファイル
2
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    runtime-siがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Detecting In Hand Slip And Twist From The Wrist Camera」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/runtime-si/RoboSkillHub/tree/main/skills/detecting-in-hand-slip-and-twist-from-the-wrist-camera
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをその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/detecting-in-hand-slip-and-twist-from-the-wrist-camera .claude/skills/detecting-in-hand-slip-and-twist-from-the-wrist-camera
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDetecting In Hand Slip And Twist From The Wrist Cameraを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にDetecting In Hand Slip And Twist From The Wrist Cameraを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Detecting In Hand Slip And Twist From The Wrist Cameraは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

detecting-in-hand-slip-and-twist-from-the-wrist-camera

A YAM has no tactile or force sensing in its jaws, but its wrist camera is bolted to them. Whatever the held part does relative to the camera, it does relative to the fingers. This skill compares wrist frames with the one taken when it starts, inside the part's region, in the manner of the optical-flow slip detector of Applied Sciences 13(15):8620 (2023). That paper reports 82-87 % accuracy and 87-95 % recall with a wrist D435.

How

  1. Take the wrist camera (named camera, else the first whose name has wrist or eye_in_hand). Its first frame is the reference. The part's region is every pixel with depth in near-far (0.02-0.20 m).
  2. Every period_s (0.2 s) for duration_s (2 s), compare the new frame with the reference:
    • slip and spin: Farneback dense flow, sampled in the reference region. A RANSAC similarity fit (cv2.estimateAffinePartial2D) takes the dominant motion; the still fingers count as outliers when the part dominates the region. Its translation in pixels, times the region's median depth over the focal length, is the slip in mm. Its rotation is the spin about the camera axis.
    • twist: fit a plane to the region's depth points in both frames and measure the normal's turn about the jaws' closing axis (the tool frame's y axis, from robot.get_ee_pose, taken into the camera frame by the camera's pose).
    • drop: the region's pixel count against the reference.
  3. Report the worst frame and route on it.

Inputs

duration_s (2.0), period_s (0.2; 0 compares back to back), camera, near / far (0.02 / 0.20 m), slip_mm (2.0), twist_deg (3.0), drop_fraction (0.4), jaw_width_m (0: off), arm_id.

With jaw_width_m (the jaw opening, e.g. the part's width across the jaws) and a camera pose in the observation, the region is the jaw box instead of the band: depth points in the tool frame with |x| (the closing axis) inside the opening less 1.5 mm, |y| under 40 mm and under 15 mm past the tool centre. Slip, twist and spin then come from a rigid 3D fit (Kabsch, trimmed) to the flow's point matches. Use it: the plain band is not reliable (below).

Outputs

slip_mm, twist_deg (about the closing axis, signed), spin_deg (about the camera axis, signed), area_fraction, frames.

The constants, and why

  • TWIST_DEG = 3: over the 0.7-2 deg a station twin's 30-100 g parts settle by when lifted (SIM_GRIP.md), and under the ~10 deg per push that inserting-mid-air-between-two-held-parts turned its parts.
  • SLIP_MM = 2: about a quarter of a domino's 7 mm thickness. A domino lift slid 4.6 mm in the twin.
  • NEAR / FAR: a D405 on a YAM sees the closed fingertips at about 0.07-0.12 m. The table lies beyond 0.2 m while carrying. Lower far before reading near the table.

Limits

  • Texture: the flow needs texture. A plain part (a white domino back, a bare cube) gives weak flow, and then the depth plane carries the decision. A slip along a flat face of a featureless part can be missed.
  • Fingers: they sit inside the band too. Their region does not move, so they show as outliers in the fit, but if they cover most of the region the dominant motion is theirs (zero) and slip is under-read.
  • The closing axis is the tool's x (robot.get_ee_pose frame): a held domino's thickness axis lies within 0.04 of it in the station twin. Version 0.1.0 used y.

Station twin check (2026-11-10, privileged truth, wrist D405 at the real fit)

Domino lift (refilling-a-domino-loading-rack, 2 racks), first 3 s of each hold; DUPLO and peg mid-air insertion (inserting-mid-air-between-two-held-parts) as stable holds before the parts meet:

casetruthband (0.1.0)jaw box + rigid fit (jaw_width_m)
domino, full speed (4 lifts)3.0-3.4 mm slipslip 0.0 mm; fired on a false 33 deg twistslip 2.4-3.7 mm, 4/4 fire (3/4 on slip > 2 mm)
domino, held_speed_scale 0.25 (6 lifts)0.6-1.3 mm6/6 false alarms (23-32 deg twist)slip 0.6-2.6 mm: 2/6 false alarms
mid-air, held before contact (264 frames)0.9-1.8 mm, < 1.7 deg97-134 deg twist, area < 0.4 ("dropped")max 0.8 mm, 0.6 deg: 0 false alarms

The band took in the fingers (the flow fit locked on their zero motion) and the table (its plane read as 100+ deg of twist when the part left it). Still open: once the mid-air parts meet, the other part enters the jaw box and the fit reads false twist (up to 90 deg); twists about the approach axis (8-13 deg on a domino) read 3-8 deg; the jigsaw turn-fling case (#191) was not recorded.

Second part in the jaw box, two-frame confirmation (0.3.0, same recordings)

In the jaw-box mode each flow match must land within GATE_M (4 mm) of where the last frame's fit puts the held point; with under MIN_MATCHED (25 %) left the frame is occluded (counted in occluded_frames, not judged). A reading counts when two frames in a row agree. The area fraction is the reference region still in the box.

case0.2.00.3.0
mid-air after the parts meet (DUPLO 440 + peg 1322 frames)181 frames fired, twist up to 94 deg0 fired; peg run 1131 of 1322 frames occluded
mid-air before contact (384 frames)0 fired0 fired
domino, held_speed_scale 0.25 (6 lifts)2/6 false alarms1-2/6 (two-frame slip 2.0 and 2.3 mm on 1.1 mm true, both the third tile)
domino, full speed (4 lifts, 3.0-3.4 mm true)4/43/4 (second tile 2.1-2.3 mm; first tile once on a 3.2 deg spin, once missed at 1.1 mm)

Open: after contact the peg run's parts slipped 3.4-3.6 mm while most frames were occluded and the rest read 1.5-1.8 mm (missed); the gate costs the first tile's full-speed slip; the jigsaw turn that flings a bare 2 mm piece (#191) leaves nothing in the jaw box (the flat piece is not seen between the jaws), and the band mode reads the table as 30-38 deg of twist there, as before.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Detecting In Hand Slip And Twist From The Wrist Camera」では何ができますか?

指と一緒に剛体として動く手首カメラで、把持した部品がジョーの中で滑る、ねじれる、または落ちるかを監視します。部品の領域は、カメラ前方の近距離深度帯にある部分として識別します。開始時に撮影したフレームとの高密度FarnebackオプティカルフローにRANSACによる相似変換をフィットさせ(静止した指の動きが部品の動きに混ざるのを防ぎます)、滑り量(mm)とカメラ軸まわりの回転を求めます。領域の深度平面の法線からジョーの閉じる軸まわりのねじれを推定します。これは画像だけでは分かりません。領域が小さくなった場合は落下と判定します。ジョーで部品を運ぶ、または押す際、触覚センサーや力センサーなしで部品が手の中で動いたか(ドミノがパッドからずれる、棒やペグが把持部を軸に回転する、部品がハンドから外れるなど)を確認してから、その姿勢を前提に次の処理を行う必要がある場合に使用します。

TypingMindでDetecting In Hand Slip And Twist From The Wrist Cameraを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Detecting In Hand Slip And Twist From The Wrist Cameraはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDetecting In Hand Slip And Twist From The Wrist Cameraをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/runtime-si/RoboSkillHub/tree/main/skills/detecting-in-hand-slip-and-twist-from-the-wrist-cameraを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Detecting In Hand Slip And Twist From The Wrist Cameraを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Detecting In Hand Slip And Twist From The Wrist Cameraで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDetecting In Hand Slip And Twist From The Wrist Cameraを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Detecting In Hand Slip And Twist From The Wrist Camera」は無料ですか?

はい。runtime-siがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇