Measuring A Held Piece From The Wrist Camera logo

Measuring A Held Piece From The Wrist Camera

Organization
runtime-si
measuring-a-held-piece-from-the-wrist-camera

Measures where a flat held part (a jigsaw piece) sits in the gripper - x, y, yaw and its bottom's height relative to the tool centre, with uncertainty - from one wrist depth frame, by fitting the part's known top-down shape (its mask from before the pick) to what the camera sees past the blades - depth points at the part's top height say "part here", points on the surface below traced back to that height say "no part here" - with a coarse-to-fine search round the expected grip. Use when a pick may have slipped or turned the part and a place needs its true offset and yaw (e.g. seating-a-piece-by-wiggle-search's held_offset and yaw_error_deg), after the pick and again after turning it; no motion, about 1.5 s on CPU.

Overview

Publisherruntime-si
RepositoryRoboSkillHub
Skill namemeasuring-a-held-piece-from-the-wrist-camera
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 Measuring A Held Piece From The Wrist Camera 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/measuring-a-held-piece-from-the-wrist-camera
  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/measuring-a-held-piece-from-the-wrist-camera .claude/skills/measuring-a-held-piece-from-the-wrist-camera
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Measuring A Held Piece From The Wrist Camera 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 Measuring A Held Piece From The Wrist Camera 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 Measuring A Held Piece From The Wrist Camera 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.

measuring-a-held-piece-from-the-wrist-camera

A pick puts the piece in the jaws a little off and a little turned (0.4-3.7 degrees in the YAM station twin), and a turn of the wrist adds more. A slot takes a piece only within a few tenths of a millimetre and a degree, so the place has to know where the piece really is. The wrist camera sees the held piece between and beyond the blades; most of it is hidden, but its shape is known from before the pick, so the visible part is enough to place the whole.

How

  1. Points. The wrist depth frame (every second pixel) is lifted to the world and to the tool frame. Points in the blade tips' footprint (15.5 x 3.9 mm either side of the grip width) are dropped.
  2. The piece's top is the densest 0.5 mm height bin from 3 to 22 mm under the tool centre (a held piece hangs its top 8-12 mm under it; the surface below is further). Points within 1 mm of it are the piece; points 4 mm or more below it are seen past it and are traced back along their rays to the piece's top height: free space there.
  3. Fit. The template is the piece mask (dilated 0.5 mm), its frame on the body centre (the mask opened to remove the knobs, minimum-area rectangle). A pose scores the piece points inside it minus half the free points inside it. The grid search covers +-8 mm and +-20 degrees round the prior in 1 mm / 2 degree steps, then +-1.5 mm and +-3 degrees in 0.25 mm / 0.5 degree steps.
  4. Uncertainty. The standard deviation of the poses scoring at least 97 % of the best; over 1.5 mm or 4 degrees is ambiguous.

Inputs

  • piece_mask, metres_per_pixel: the piece's top-down mask before the pick (e.g. from scanning-the-board-into-a-wrist-mosaic), its +u at image_yaw_deg in the world (0 for that mosaic).
  • prior: where the piece frame is expected in the world now, {x, y, yaw_deg} (after a pick: where it was, yaw 0 for the mosaic's mask; after a turn: that turned about the tool centre).
  • grip_width_m: the jaws' grip width (for the blade footprint).
  • camera (a CameraFrame) or camera_name; thickness (2 mm).

Outputs

tcp_piece {x, y, z, yaw_deg} (tool frame; z the piece's bottom under the tool centre), world_pose, sigma {x, y, yaw_deg}, n_piece_points, n_free_points, score, detail.

Measured

YAM station twin (jigsaw harness: a 21 x 24 mm, 2 mm piece held by its harness grip block, wrist D405 at the real station's calibrated pose; the template is the piece's mesh outline or its mosaic mask; truth is the piece body's pose):

casex / y / z erroryaw errorsigma reported
one held frame (offline), priors 0-6 mm and 0-15 deg off+0.16 / -0.52 / -0.09 mm (every prior)-1.5 deg0.26 / 0.24 mm, 1.3-1.5 deg
end-to-end chain, after the pick (mosaic mask), trial 0-0.17 / -0.48 / -0.09 mm-0.18 deg
same, trial 1+1.59 / +0.93 / -0.11 mm-1.1 deg
same, trial 1 after a 136 deg turn-0.45 / -2.13 / +0.33 mm-1.1 deg

169 piece points (every second pixel) are visible past the blades; a fit takes 1.2-1.5 s. Part of the 1-2 mm errors in the chain is the mosaic mask's own error (0.5 mm per pixel) and the body centre's definition (0.3 mm from the cell centre on this piece). More chain trials are in the pull request.

Limits

  • The shape must be known: a mask of the same piece from before the pick.
  • Flat parts held top-down only; the piece's top must be level within a few degrees (a tilted piece spreads its top over several height bins).
  • The prior must be within the search window (8 mm, 20 degrees).
  • Blade footprint and slab are the YAM linear_4310's (station model); other grippers need their numbers.

The constants, and why

SLAB_M 3-22 mm (blade tips 10 mm under the tool centre; a 2 mm piece held by its edge; the mat 30 mm under the tool 3 cm up), TOP_TOL_M 1 mm, FREE_BELOW_M 4 mm, BLADE_HALF_WIDTH_M 8.5 mm, BLADE_THICKNESS_M 4.5 mm, SEARCH_XY_M 8 mm, SEARCH_YAW_DEG 20, GOOD_FRACTION 0.97, MIN_POINTS 60, MAX_SPREAD_M 1.5 mm, MAX_SPREAD_DEG 4.

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 Measuring A Held Piece From The Wrist Camera AI skill do?

Measures where a flat held part (a jigsaw piece) sits in the gripper - x, y, yaw and its bottom's height relative to the tool centre, with uncertainty - from one wrist depth frame, by fitting the part's known top-down shape (its mask from before the pick) to what the camera sees past the blades - depth points at the part's top height say "part here", points on the surface below traced back to that height say "no part here" - with a coarse-to-fine search round the expected grip. Use when a pick may have slipped or turned the part and a place needs its true offset and yaw (e.g. seating-a-piec...

Why use Measuring A Held Piece From The Wrist Camera on TypingMind?

Because you install it once and use it with any model. Measuring A Held Piece From The Wrist Camera 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 Measuring A Held Piece From The Wrist Camera in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/runtime-si/RoboSkillHub/tree/main/skills/measuring-a-held-piece-from-the-wrist-camera. 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 Measuring A Held Piece From The Wrist Camera?

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 Measuring A Held Piece From The Wrist Camera?

As many as you like. As long as a model supports skills, you can use Measuring A Held Piece From The Wrist Camera with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Measuring A Held Piece From The Wrist Camera 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 👇