Estimating Relative Rotation And Symmetryのロゴ

Estimating Relative Rotation And Symmetry

組織
runtime-si
estimating-relative-rotation-and-symmetry

手首カメラで似た高さから撮影した参照画像と現在の画像の間で、画像平面上のパーツの回転角と、対称性を考慮した角度を2つのマスクとその内部のピクセルから求めます。輪郭から回転角を算出します(細長いパーツは主軸、正方形のパーツは最小面積の矩形を使用)。2 x 4ブロックなら180 deg、2 x 2なら90 degといった、パーツの対称性を考慮した角度がわかります。表向きのドミノの目や印刷されたピースなど、見た目によって輪郭の対称性が崩れるパーツでは、回転させた参照画像のピクセルから正確な角度を特定します。見た目から角度を区別できない場合は、その旨を返します。rotation_found、symmetric_ambiguous、low_confidenceのいずれかを返します。参照画像と向きを合わせるための手首回転の前、同等の手首回転から短い方を選ぶ場合、または配置したパーツのヨー角を確認する場合に使います。カメラのみで動作します。

概要

公開者runtime-si
リポジトリRoboSkillHub
スキル名estimating-relative-rotation-and-symmetry
スター
242
フォーク
27
同梱ファイル
2
ライセンスApache-2.0
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 2個の同梱ファイル

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

  • オープンソース

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

インストール

AIスキル「Estimating Relative Rotation And Symmetry」を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/estimating-relative-rotation-and-symmetry
  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/estimating-relative-rotation-and-symmetry .claude/skills/estimating-relative-rotation-and-symmetry
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

関連するリクエストがあるとすぐに、モデルが自動的にEstimating Relative Rotation And Symmetryを読み込みます。

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

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

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

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

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

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

スキルの指示

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

estimating-relative-rotation-and-symmetry

python
r = run(
    ctx, reference_frame=ref_cam, reference_mask=ref_mask, frame=cam, mask=mask, symmetry_order=1
)  # a face-up domino: the pips break the 180-degree symmetry
if r["route"] == "rotation_found":
    turn = r["rotation_deg"]  # current = reference turned by this, clockwise + in the image
    # any turn + k * r["period_deg"] is equivalent: take the one inside the wrist's limits
  1. Outline: elongation sqrt(lambda1 / lambda2) of each mask's pixel covariance. Over 1.3 the outline is 2-fold: angle = principal axis, mod 180. Otherwise it is 4-fold: angle = the side of cv2.minAreaRect, mod 90. The turn is the difference, folded into the period.
  2. symmetry_order (default: the outline's) says how many turns look the same. Equal to the outline's: done, rotation_found modulo 360 / order.
  3. Lower (a face-up domino, a printed part): each of the outline's candidate turns (refined +-4 deg in 0.5 deg steps) is tried by rotating the reference patch about its centroid and correlating it with the current patch inside both masks (normalised, grey). The best wins if it beats the next by more than 0.05; otherwise symmetric_ambiguous.

The skill only uses appearance when told the part's look is asymmetric. Under directional light a plain 2 x 4 brick turned by 180 deg looks different in its shading, and that is not information about the part: asked to pick among a plain brick's half-turns by appearance, the correlation chose the wrong one in about half the pairs, with clear margins (0.3-0.8). The symmetry of a known part comes from its catalogue entry (domino face-up 1, face-down 2; brick 1 x N or 2 x N 2; N x N 4).

Measured

80 pairs of the same part in two wrist views (left wrist D405 intrinsics, 0.15-0.25 m over the table, up to 12 deg tilt, random camera yaw, random turn between the views). Parts: LEGO bricks and plates 1 x 1 - 2 x 4, DUPLO 2 x 2 - 2 x 4, dominoes face-up (pips) and face-down. They were rendered in MuJoCo and composited on real wrist frames, with the true turn from the projected part axis; see tools/README.md for the renders. Error = |reported - true| modulo the reported period. Reproduce with tests/bundles/_relative_rotation_eval.py.

methodmaskswithin 5 degwithin 10 degmedian errorface-up dominoes: half-turn resolvedGPU
this skill (catalogue symmetry)rendered80 / 8080 / 800.34 deg10 / 12 right, 2 ambiguous, 0 wrongnone
this skillSAM 2.1 base-plus from the box (mask IoU 0.98)78 / 8079 / 800.46 deg11 / 12 resolved: 10 right, 1 wrong; 1 ambiguousnone
this skill, outline only (symmetry not given)rendered80 / 8080 / 800.34 deg(reports modulo 180)none
Orient Anything V2, crops masked to whiterendered53 %72 %4.1 deg1 / 6 half-turns7.2 GB
Orient Anything V2, raw crops--8 %14 %40 deg0 / 67.2 GB
  • By outline: elongated parts 0.56 deg median, square parts 0.37 deg (the rectangle fit; the principal axis gave 6 deg on them).
  • Orient Anything V2's symmetry order on masked crops: 17 of 19 square parts right, but 45 of 49 2-fold parts called 4-fold. It is trained on object-level renders; a 2-3 cm part seen from above is out of its domain. It was not ported.
  • Time on the CPU: 2.4 ms per pair (median; 2.6 ms p90) from the outline, 10 ms (14 ms p90) with the appearance test.

Limits

  • Image-plane turn: the camera must look roughly down on the part (tilt up to 12 deg tested) at a similar height in both views. A big height change scales the patch; the outline turn is unaffected, the appearance test degrades.
  • Rendered parts on real backgrounds, not real photographs of the parts.
  • A part touching another: segment it alone first (its mask decides the outline).

同梱ファイル

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

よくある質問

AIスキル「Estimating Relative Rotation And Symmetry」では何ができますか?

手首カメラで似た高さから撮影した参照画像と現在の画像の間で、画像平面上のパーツの回転角と、対称性を考慮した角度を2つのマスクとその内部のピクセルから求めます。輪郭から回転角を算出します(細長いパーツは主軸、正方形のパーツは最小面積の矩形を使用)。2 x 4ブロックなら180 deg、2 x 2なら90 degといった、パーツの対称性を考慮した角度がわかります。表向きのドミノの目や印刷されたピースなど、見た目によって輪郭の対称性が崩れるパーツでは、回転させた参照画像のピクセルから正確な角度を特定します。見た目から角度を区別できない場合は、その旨を返します。rotation_found、symmetric_ambiguous、low_confidenceのいずれかを返します。参照画像と向きを合わせるための手首回転の前、同等の手首回転から短い方を選ぶ場合、または配置したパーツのヨー角を確認する場合に使います。カメラのみで動作します。

TypingMindでEstimating Relative Rotation And Symmetryを使うメリットは何ですか?

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

TypingMindにEstimating Relative Rotation And Symmetryをインストールするにはどうすればよいですか?

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

Estimating Relative Rotation And Symmetryを使えるAIモデルはどれですか?

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

Estimating Relative Rotation And Symmetryで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもEstimating Relative Rotation And Symmetryを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Estimating Relative Rotation And Symmetry」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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