شعار Correcting Insertion Offset From Port Opening

Correcting Insertion Offset From Port Opening

مؤسسة
runtime-si
correcting-insertion-offset-from-port-opening

Re-centres a held part over a port before or after a failed insertion using cameras only - finds the dark opening near its projected mouth in every available view (hand and part masked out by depth), meets each view's ray with the port plane, keeps the views that agree within 3 mm, and steps the hand toward that consensus in moves of at most 1 mm (6 mm total, 8 steps) until the part's descent line is centred on the opening in at least two views. Use when an insertion stopped short or a camera's port estimate is only good to a few millimetres, the hand holds the part over the mouth, and two cameras see the opening (the inserting arm's wrist camera plus the other arm's parked wrist camera or the overhead camera); no force sensor.

نظرة عامة

الناشرruntime-si
المستودعRoboSkillHub
اسم المهارةcorrecting-insertion-offset-from-port-opening
النجوم
242
التفريعات
27
الملفات المرفقة
2
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 2

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها runtime-si على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Correcting Insertion Offset From Port Opening في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/runtime-si/RoboSkillHub/tree/main/skills/correcting-insertion-offset-from-port-opening
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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-insertion-offset-from-port-opening .claude/skills/correcting-insertion-offset-from-port-opening
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Correcting Insertion Offset From Port Opening في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Correcting Insertion Offset From Port Opening تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Correcting Insertion Offset From Port Opening بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

correcting-insertion-offset-from-port-opening

A port estimated from one camera is good to a few millimetres; a part with a millimetre of clearance needs better, and without a force sensor the arm cannot feel its way in. Two cameras can measure the last millimetres instead: each sees the opening as a dark blob next to where it should be, each blob's ray meets the port plane at a point, and where two views agree that is the hole. The hand then steps toward it in small capped moves, re-measuring each time.

Where it sits in a graph

perceiving-functional-features (aperture centre + inward axis + radius)
  -> carry the part over the mouth (inserting-a-peg-with-pose-refinement's align,
     or approaching-above-a-target)
  -> correcting-insertion-offset-from-port-opening      <- this skill
       centered        -> push in (inserting-a-peg-with-pose-refinement's push_insert,
                          or a straight stop-on-contact move)
       no_convergence  -> searching-insertion-spiral around hole_position
       offset_too_large / views_disagree / opening_not_found -> re-perceive
  -> verifying-insertion-by-probe-push

After a push that stopped short (stopped_short), lift the part back to just above the mouth and run this skill again before retrying: the source used it exactly there, as the first try before a full retract.

The method, per pass (up to max_steps + 1 passes)

  1. Read the hand; the part's tip is the tool centre plus tip_in_tcp (zero by default). Its descent line meets the port plane at the intercept: comparing the opening with the intercept, not the tip, keeps a tip above or below the plane from adding parallax that differs between cameras.
  2. For each camera in the observation with rgb, intrinsics and a camera-to-world pose (OpenCV axes), project the mouth's four corners (a square or rectangle of opening_size x opening_height on the port plane, port_x_axis along its width).
  3. Mask out every pixel whose depth is more than mask_above_plane (8 mm) nearer the camera than the port plane - the hand, the fingers, the held part - plus any ignore_masks[camera].
  4. Find the opening (the source's detector, unchanged): inside the quad scaled by 1.55 about its centre, require a grey spread (p90 - p10) of at least 24; threshold at min(Otsu, median - 0.1 x spread), open/close with a 3 px kernel when the quad's shortest edge is 9 px or more, and keep the connected component with area 0.16-1.35 x the quad's and centroid within 0.75 sqrt(area) of the quad's centre that scores lowest on 2.5 x centre distance + 0.35 x |log(area ratio / 0.55)| + 0.3 x mean darkness. Its centroid is the opening's centre - unless more than 15% of its outline borders masked pixels (an occluder cuts it): then the projected mouth quad is slid over the image to best cover its visible pixels, and the slid quad's centre is used. With opening_query set (e.g. "the ring's opening"), sam3 masks of that text, clipped to the search polygon, are the candidates instead of the dark threshold - for an opening that is not darker than its surround.
  5. Each found centre's ray meets the port plane. Keep the closest-agreeing pair of views if within max_view_disagreement (3 mm), plus every other view within that of the pair's mean; their mean is the hole.
  6. More than max_port_offset (8 mm) from the estimate: offset_too_large.
  7. Centred when the intercept projects within max(2 px, pixel_tol_frac x sqrt(quad area)) of the found centre in at least min_views views: centered.
  8. Otherwise step the hand toward hole - intercept in the port plane, at most max_step (1 mm), keeping its rotation, unless the total commanded correction would pass max_total (6 mm).

Inputs

  • port_position (Vec3): the mouth's estimated centre, world frame (perceiving-functional-features' aperture_center).
  • opening_size (m): the opening's width (or diameter); opening_height its other side when rectangular (default: square). 2 x aperture_radius from perceiving-functional-features.
  • port_axis (Vec3): the inward insertion axis (fixture_axis); default straight down.
  • tip_in_tcp (Vec3): the held part's tip in the tool-centre frame, e.g. from registering-held-objects; only its sideways part matters.
  • cameras: names to use; default every camera in the observation.
  • min_views (2): 1 skips the agreement check and trusts a single view - only for a well calibrated camera that sees the opening square on.
  • pixel_tol_frac (0.12, upstream): how close counts as centred, as a fraction of the opening's projected size - so about that fraction of opening_size in metres. Set it near clearance / opening_size: upstream's 0.12 is 2.9 mm on a 24 mm opening, and in the simulation check it stopped 1.8-2.5 mm off centre, where the closed fingertips caught the rim three times in seven.
  • opening_query: a sam3 text for the opening, used instead of the dark threshold. ignore_masks: {camera: mask} of pixels never to use. mask_above_plane (8 mm): the depth margin of the hand mask; 0 turns it off.
  • max_steps, max_step, max_total, max_port_offset, max_view_disagreement: the bounds below.
  • move_tolerance: passed to robot.go_to_pose as tolerance only when set. Set it below 1 mm on a connector whose own arrival tolerance is larger than a step (RoboSimStudio's servo: 4 mm), or it reports a 1 mm move done without moving.

Required end states

  • centered: the hand is over the opening; push next.
  • opening_not_found: give the skill a second view (park the other arm's wrist camera looking at the port, e.g. with approaching-above-a-target), raise the hand so it hides less of the mouth, or pass opening_query.
  • views_disagree: check the cameras' extrinsics; re-perceive.
  • offset_too_large, no_convergence: re-perceive the port, or hand hole_position to searching-insertion-spiral.
  • unreachable: the region is out of reach.

The constants, and why

All the motion bounds and detector gates are the source's own values, tuned on the AI for Industry Challenge's SFP-port insertion (simulated wrist cameras, 442x393 frames and full-resolution streams): steps of 1 mm, 6 mm total, 8 steps, 8 mm offset bound, 3 mm view agreement, pixel tolerance 0.12 sqrt(area) with a 2 px floor, and the detector's 1.55 / 24 / 0.16-1.35 / 0.75 gates. MASK_ABOVE_PLANE (8 mm) and OCCLUSION_REFIT (0.15 of the outline) are new (see below).

What changed from the source, and why

  • Gripper masks by depth. The source loads three calibrated PNG silhouettes of its own gripper, one per wrist camera. A YAM station has different cameras, and the second view may be the overhead camera or the other arm's wrist camera, where the hand moves through the frame. Pixels nearer than the port plane by 8 mm are masked instead - camera-only, any camera. The YAM's gripper is black, so without this mask the hand itself is the darkest blob near the mouth.
  • Each step from the last target, not the read-back pose. The source sends read-back + step to a compliant controller. A YAM lags its command under gravity by a millimetre or more, so read-back + 1 mm can land where it started; integrating the targets absorbs the lag, and the 6 mm cap still bounds it.
  • Occluded openings refitted. The wrist camera of the arm holding the part sees the fingertips over the far half of the mouth; the visible half's centroid sat 3.5 mm from the true centre in the simulation check, so a view whose opening is cut by masked pixels is re-centred by sliding the projected quad over what is visible (0.7 mm). Unoccluded views keep the source's centroid.
  • pixel_tol_frac exposed (the source's constant): see Inputs.
  • Named exits instead of a fall-back. The source falls back to its force-based sweep on any failure; here each failure is an exit the graph can route (no force sensor on a YAM).
  • The port quad from a centre, axis and size instead of the task's CAD keypoints; sam3 as an alternative detector; no debug-image logging.

Checked in simulation

RoboSimStudio, the YAM station twin, left arm. The closed empty hand stands in for a held part (its fingertips 10.2 mm below the tool centre); the port is a 24 mm square opening with a black floor in a light 12 mm-walled frame, 15 mm deep. Three cameras: the station's calibrated overhead camera, a wrist camera on the inserting arm (60 mm beside and 90 mm behind the tool centre, looking at the fingertips, like the YAM's D405) and a fixed camera 0.3 m from the port at 50 degrees elevation, standing in for the other arm's parked wrist camera. The hand is put top-down 30 mm (tool centre) over an estimate a few millimetres off the true mouth; pixel_tol_frac 0.04, move_tolerance 0.5 mm. Then a straight stop-on-contact descent from where the hand is: the control at the estimate before the skill, and again after it. Tip depth is how far below the mouth the fingertips stopped (11.3 mm when centred: the tapered fingers then meet the walls).

estimate off by (mm)hand off at startcontrol tip depthexit, stepshand off aftercameras' hole errortip depth after
(0, 0)0.57 mm11.3 mmcentered, 00.11 mm0.16 mm11.1 mm
(0, -4)4.048.0centered, 40.150.2011.0
(3, 3)4.033.1centered, 40.220.1910.9
(4, 0)4.68on the rimcentered, 40.820.139.8
(-2, -5)5.157.2centered, 60.480.1510.8
(-4, 2)3.5711.3centered, 50.500.2810.2
(-5, -3)5.3111.6centered, 60.270.2410.6
(10, 0)10.69on the rimoffset_too_large after 19.291.44on the rim
  • The overhead camera rarely found the opening (from behind the arms the hand hides the mouth; in these runs only with the hand 10 mm off); the wrist and the side camera carried every centred run. The wrist view had 16-28% of the opening's outline on masked fingertip pixels in every run, so it always went through the refit.
  • With upstream's pixel_tol_frac 0.12 (an earlier build, before the refit was anchored on the projected centre) the six runs that needed a correction ended centered 1.8-2.6 mm off, and three descents stopped 1.6-3.5 mm shallower than when centred.
  • Before the occlusion refit, the wrist view's centroid leaned 3.5 mm toward the camera: two of seven runs ended views_disagree (3.0 and 4.0 mm) and the consensus was 1.0-1.7 mm off in the rest.
  • The fingers are not symmetric: from 4-5 mm toward -x the control descent went in anyway, so the depth column says more on the +x and y offsets.

Not checked: a real held part, a real port, real camera calibration error, the sam3 detector against a live model, a real YAM's lag.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Correcting Insertion Offset From Port Opening؟

Re-centres a held part over a port before or after a failed insertion using cameras only - finds the dark opening near its projected mouth in every available view (hand and part masked out by depth), meets each view's ray with the port plane, keeps the views that agree within 3 mm, and steps the hand toward that consensus in moves of at most 1 mm (6 mm total, 8 steps) until the part's descent line is centred on the opening in at least two views. Use when an insertion stopped short or a camera's port estimate is only good to a few millimetres, the hand holds the part over the mouth, and two...

لماذا تستخدم Correcting Insertion Offset From Port Opening على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Correcting Insertion Offset From Port Opening عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Correcting Insertion Offset From Port Opening في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/runtime-si/RoboSkillHub/tree/main/skills/correcting-insertion-offset-from-port-opening. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Correcting Insertion Offset From Port Opening؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Correcting Insertion Offset From Port Opening؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Correcting Insertion Offset From Port Opening معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Correcting Insertion Offset From Port Opening مجانية؟

نعم. نشرها runtime-si على GitHub بموجب ترخيص Apache-2.0. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇