Estimating Relative Rotation And Symmetry logo

Estimating Relative Rotation And Symmetry

Organization
runtime-si
estimating-relative-rotation-and-symmetry

How far a part is turned in the image plane between a reference view and the current view (both from the wrist camera at a similar height), and modulo what -- from the two masks and the pixels inside them. The outline gives the turn (principal axis for elongated parts, minimum-area rectangle for square ones), known modulo the part's symmetry (180 deg for a 2 x 4 brick, 90 for a 2 x 2). For a part whose look breaks its outline's symmetry (a face-up domino's pips, a printed piece), the rotated reference pixels pick the full turn, or the skill says the turns look alike. Routes rotation_found, symmetric_ambiguous or low_confidence. Use before a wrist turn to match a reference, to choose the shorter of equivalent wrist turns, or to check a placed part's yaw; camera-only.

Overview

Publisherruntime-si
RepositoryRoboSkillHub
Skill nameestimating-relative-rotation-and-symmetry
Stars
242
Forks
27
Bundled files
2
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by runtime-si on GitHub. Read the source before you install it.

Installation

Install the Estimating Relative Rotation And Symmetry AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/runtime-si/RoboSkillHub/tree/main/skills/estimating-relative-rotation-and-symmetry
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Estimating Relative Rotation And Symmetry in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Estimating Relative Rotation And Symmetry on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Estimating Relative Rotation And Symmetry is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Estimating Relative Rotation And Symmetry AI skill do?

How far a part is turned in the image plane between a reference view and the current view (both from the wrist camera at a similar height), and modulo what -- from the two masks and the pixels inside them. The outline gives the turn (principal axis for elongated parts, minimum-area rectangle for square ones), known modulo the part's symmetry (180 deg for a 2 x 4 brick, 90 for a 2 x 2). For a part whose look breaks its outline's symmetry (a face-up domino's pips, a printed piece), the rotated reference pixels pick the full turn, or the skill says the turns look alike. Routes rotation_found,...

Why use Estimating Relative Rotation And Symmetry on TypingMind?

Because you install it once and use it with any model. Estimating Relative Rotation And Symmetry is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Estimating Relative Rotation And Symmetry in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/runtime-si/RoboSkillHub/tree/main/skills/estimating-relative-rotation-and-symmetry. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Estimating Relative Rotation And Symmetry?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Estimating Relative Rotation And Symmetry?

As many as you like. As long as a model supports skills, you can use Estimating Relative Rotation And Symmetry with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Estimating Relative Rotation And Symmetry AI skill free?

Yes. It is published on GitHub by runtime-si under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇