Logo: Correcting In Plane Offset By Discrete Moves

Correcting In Plane Offset By Discrete Moves

Organisatioun
runtime-si
correcting-in-plane-offset-by-discrete-moves

Final x, y and yaw alignment of a held part (or the hand) over its target from the wrist camera, by a small classifier that looks at one cropped wrist frame and says which way to nudge - +/-x, +/-y, +/-yaw or stay per axis (27 classes); the hand steps 1 mm / 0.5 deg and repeats until three "aligned" in a row. The classifier is trained per target from images the arm labels itself (collect_offsets jogs from a taught aligned pose to random offsets and records each offset). Use when a part must sit over a slot, stud grid or rack within a millimetre and the target has no reference image or keypoints to servo on (textureless bricks, domino backs, slots).

Iwwersiicht

Editeurruntime-si
RepositoryRoboSkillHub
Skill-Nummcorrecting-in-plane-offset-by-discrete-moves
Stären
242
Forks
27
Matgeliwwert Dateien
4
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 4 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    runtime-si huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Correcting In Plane Offset By Discrete Moves an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/runtime-si/RoboSkillHub/tree/main/skills/correcting-in-plane-offset-by-discrete-moves
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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/correcting-in-plane-offset-by-discrete-moves .claude/skills/correcting-in-plane-offset-by-discrete-moves
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Correcting In Plane Offset By Discrete Moves an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Correcting In Plane Offset By Discrete Moves automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Correcting In Plane Offset By Discrete Moves net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

correcting-in-plane-offset-by-discrete-moves

This is the closed loop of vision-guided rack insertion (Liverpool, Opentrons OT-2, 90.3 % insertion success upstream). It brings a held part, or the hand itself, over its target using the wrist camera.

Upstream used ResNet18 with 27 classes. The classifier is tools/move-classifier; it is trained per target on images the arm labels itself, so no hand labelling is needed.

Two scripts

  1. collect_offsets collects training data. Start at the taught aligned pose. It jogs samples times to random offsets: +-12 mm in x and y, +-5 deg in yaw (upstream's ranges). Yaw is turned with the last joint. At each offset it saves the cropped wrist frame. The label is the hand's offset read back after the move (not the commanded one), written to index.jsonl. At the end it returns to the taught pose. Exits: collected, move_refused, no_frame.

  2. align runs the loop. Each decision:

    • calls move-classifier.predict on the crop;
    • steps step_m (1 mm, upstream) in x / y and step_yaw_deg (0.5 deg) about +z, by the sign of each axis.

    It ends when three predictions in a row say "000" (upstream's rule).

Then train once: move-classifier.train(dataset_dir, model_path).

Labels are world-frame signs per axis ("+x", "-y", "0" ...). Upstream's two loops used "Move Up / Move Left" strings whose direction differed between the loops, so world-frame signs avoid that trap.

tolerance is passed to the move tool only when set. A servo connector's default 4 mm arrival ball turns every 1 mm step into a no-op that reports "reached". That happened in the twin (80 decisions, no motion), so pass e.g. tolerance=0.0003.

Measured (YAM station twin, wrist D405 render)

Setup:

  • Target: the station's open box, seen by the left wrist D405 rendered at the real station's calibrated mount. The aligned pose is the hand top-down, 10 cm over the box centre.
  • Data: collect_offsets gathered 600 frames on two hosts (0 jogs refused). The read-back offset differed from the command by a median 1.5 mm in x (the default go_to_pose arrival ball), which is why labels are read back.
  • Training: move-classifier.train for 20 epochs on 510 frames, 27 s on an RTX PRO 6000. On 90 held-out frames, all three axes were right 0.73 of the time; per axis, x 0.91, y 0.92, yaw 0.90.
  • Trials: 7 closed-loop runs from random offsets (2.9-13.0 mm, up to 4.0 deg), tolerance 0.3 mm, 60-decision cap. Errors are the hand's read-back against the taught pose.
trialsstart errorend erroryaw at end
no correction (open loop)72.9-13.0 mm (mean 8.1)= startup to 4.0 deg
this skill7same0.20-1.73 mm (median 0.52)0.02-0.55 deg

Exits: 1 of 7 ended aligned (14 decisions, 0.26 mm / 0.54 deg). The other 6 ended max_steps while already within 0.2-1.7 mm.

Why the stop rule rarely fires: only 7 of the 600 random jogs fell inside the "000" dead-band (0.5 mm and 0.2 deg on all three axes at once). The classifier therefore seldom says "000" three times in a row, and it dithers one step about the goal. Collect extra samples near the aligned pose (for example max_offset_m=0.001, max_yaw_deg=0.3 for a quarter of the set) before relying on the aligned exit. Until then, treat max_steps with a small moved_m change as aligned.

Not measured:

  • a held part;
  • a LEGO, domino or jigsaw target;
  • the real arm;
  • upstream's LLaVA variant.

Licence

Adapted from vision-guided-rack-insertion-ot2 (MIT, Copyright (c) 2026 Hadi Beyzaee Juneghani). See the script headers and NOTICE.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Correcting In Plane Offset By Discrete Moves?

Final x, y and yaw alignment of a held part (or the hand) over its target from the wrist camera, by a small classifier that looks at one cropped wrist frame and says which way to nudge - +/-x, +/-y, +/-yaw or stay per axis (27 classes); the hand steps 1 mm / 0.5 deg and repeats until three "aligned" in a row. The classifier is trained per target from images the arm labels itself (collect_offsets jogs from a taught aligned pose to random offsets and records each offset). Use when a part must sit over a slot, stud grid or rack within a millimetre and the target has no reference image or keypo...

Firwat Correcting In Plane Offset By Discrete Moves op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Correcting In Plane Offset By Discrete Moves besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Correcting In Plane Offset By Discrete Moves an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/runtime-si/RoboSkillHub/tree/main/skills/correcting-in-plane-offset-by-discrete-moves an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Correcting In Plane Offset By Discrete Moves benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Correcting In Plane Offset By Discrete Moves benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Correcting In Plane Offset By Discrete Moves domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Correcting In Plane Offset By Discrete Moves gratis?

Jo. runtime-si huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇