شعار Checking Pick By Scene Diff

Checking Pick By Scene Diff

مؤسسة
runtime-si
checking-pick-by-scene-diff

Checks whether a pick (or a place, a push, any intended change) happened by showing a VLM one panel - the camera frame from before the step, the frame now, and a hot pixel-difference heatmap side by side - and asking whether anything changed and whether the expected change happened; when the graph knows where the object was (or should go), the pixels there must agree (changed, and emptied for a pick or filled for a place), else the verdict is uncertain. Routes changed_as_expected, changed_otherwise, unchanged, uncertain or no_verdict. Use when a pick (or place) has just run and the gripper width alone cannot tell held from empty (thin or small parts), so a source-side check is wanted, with a robot.get_observation captured before the step; camera-only, no motion.

نظرة عامة

الناشرruntime-si
المستودعRoboSkillHub
اسم المهارةchecking-pick-by-scene-diff
النجوم
242
التفريعات
27
الملفات المرفقة
2
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

ثبّت مهارة الذكاء الاصطناعي Checking Pick By Scene Diff في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/runtime-si/RoboSkillHub/tree/main/skills/checking-pick-by-scene-diff
  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/checking-pick-by-scene-diff .claude/skills/checking-pick-by-scene-diff
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Checking Pick By Scene Diff في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Checking Pick By Scene Diff تلقائيًا بمجرد ورود طلب ذي صلة بها.

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

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

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

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

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

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

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

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

checking-pick-by-scene-diff

A before / after verifier: did the step change the scene the way it should?

text
before (tool: robot.get_observation) -> <pick / place / push> -> check (this skill)

Capture before with a robot.get_observation tool node just before the step; after it, run this skill with a one-line expected_change. It takes a fresh observation, builds the panel and asks once.

What it does

  1. Picks one camera present in both observations (camera, else the first external one, then wrist ones) and requires the two frames to be the same size.
  2. Builds RoboRSI's panel, BEFORE | AFTER | DIFF (hot): the per-pixel sum of absolute RGB differences, normalised to the frame's largest difference and coloured with OpenCV's HOT map, labelled in the top-left corners.
  3. Asks vlm.query with RoboRSI's prompt: report CHANGED: YES/NO (did anything visibly change) and MATCH: YES/NO (did the expected change happen), then a one-line reason.
  4. If the graph gives the source region (source_box_px or source_mask_px: where the picked object was, or where a placed one should land), it measures two numbers there that must agree with the VLM:
    • source_changed_fraction: share of region pixels whose summed RGB difference exceeds 30 (upstream's threshold); at least 15 % must change.
    • source_contrast_ratio: how much the region stands out from a ring around it (mean RGB distance from the ring's median colour), after / before. A pick empties the region (region_expect: vacated, ratio <= 0.85); a place fills it (filled, ratio >= 1.5); changed skips this test.
CHANGEDMATCHregion (if given)exit
yesyesagreeschanged_as_expected
yesyesdisagreesuncertain
noyes-uncertain
yesno-changed_otherwise
nonounchangedunchanged
nonochanged as expecteduncertain
missing line / call failedno_verdict

The panel is returned as panel for the trace.

Inputs

  • before: observation before the step (cameras with name and rgb, a list or a mapping). now: defaults to a fresh robot.get_observation.
  • expected_change: one line, e.g. "the red brick was picked up: it is no longer at its spot on the table" or "the red brick is inside the grey box".
  • camera (auto), source_box_px / source_mask_px (none), region_expect (vacated), diff_threshold (30), min_source_change (0.15), model (the tool's configured one).

Draw the source box about 1.5x the object's image footprint, from the perception that planned the pick (a detection box, a projected OBB).

Live check

run() through the hub's vlm.query (OpenAI-compatible provider on Gemini's endpoint), 11 labelled pairs x 2 repeats per model, one 640 x 480 overhead frame per side. Sim pairs come from a YAM station twin's overhead camera in an earlier sorting run (small 15 mm blocks); real pairs from the station's overhead camera.

pair (BEFORE -> AFTER), expected changetruthsrc changedcontrast ratio
sim: red block on the table -> moved into the box (a blue one dropped near its spot), "red block picked up"yes0.770.77
same pair, "red block put inside the grey box" (region = box, filled)yes0.653.74
sim: same frame twiceno0.001.00
sim: same scene, re-renderedno0.001.00
sim: hand hovering over the block, not yet closedno0.921.65
sim: a blue block appeared, "blue block picked up"no0.722.17
sim: red block in the box stays while a blue one is droppedno0.001.00
real: both arms moved, brick plate stays, "plate picked up"no0.021.00
real: plate removed (synthetic: inpainted out of the real frame)yes0.430.22
real: plate removed, "marker holder picked up"no0.001.01
real: static cable scene, no regionno--
modelskill correctfalse changed_as_expecteduncertainVLM alone (CHANGED and MATCH) correctVLM alone false yes
gemini-3-flash-preview22/220220/222 (blue block appeared, both repeats)
gemini-robotics-er-2-preview22/220220/222 (hand hovering 1/2, block appeared 1/2)

2-8 s per judgment (one flash reply 20 s). What to know:

  • The VLM alone says "picked" when the source is covered or replaced. Both models twice called a pick done when the hand hid the block or another block landed in its spot; the region's contrast ratio (1.65, 2.17: the region got busier, not barer) sent those to uncertain. Nothing true was rejected.
  • The thresholds were set on these same pairs (in-sample): 0.85 sits between the vacated 0.77 and the static 1.00, 1.5 between 1.00 and the filled 3.74, 15 % between 2 % and 43 %. The sim "picked" pair's 0.77 is high because the next block was dropped on nearly the same spot; a bare table gives ~0.2 (the real case).
  • The only real-camera "picked" pair is synthetic (the plate inpainted out of a real frame): no real pick before/after pair was available. Real picks were checked in the twin instead (below).
  • Flash said CHANGED: YES for two re-renders of the same scene (pixel share 0.0), so changed_otherwise can mean "the VLM imagined a change"; ER-2 said NO. The routing never turns that into a pick.
  • Judge after the hand has moved clear of the source, as for judging-step-with-before-now-vlm: a hand over the spot reads as "changed otherwise" or uncertain.

Real picks and misses in the station twin

The arm really picked (or missed) a 25 mm red cube in a YAM station twin (the tracking-gripper-opening-stall sim run on the GCP pool): overhead frames before the approach, after an 8 cm lift (hand over the spot) and after moving 12 cm aside; truth from the cube's simulated pose. Source box 23 x 23 px around the cube (~15 px wide). 8 pairs x 2 repeats per model:

pairtruthflash (2 runs)ER-2 (2 runs)src changedcontrast ratio
pick, hand moved asidepickedas_expected x2as_expected x20.820.03
second pick, hand asidepickedas_expected x2as_expected x20.860.02
a "miss" 40 mm off that grasped the cube anyway (lifted 91 mm), hand asidepickedas_expected x2as_expected x20.900.66
pick, hand still over the spotpickedas_expected x2as_expected x20.770.28
pick whose BEFORE frame has the cube hidden by the parked handpickedotherwise x2otherwise x21.000.13
miss (cube nudged ~6 px by a finger), hand asidenot pickedotherwise x2otherwise x20.820.68
miss, hand over the spotnot pickedotherwise x2otherwise x20.780.63
two BEFORE frames of separate trialsnot pickedotherwise x2otherwise x20.371.26

14/16 per model, no false changed_as_expected; both misses were caught by the VLM. The two "wrong" verdicts are the pair whose BEFORE frame does not show the cube (0 red pixels: the parked hand hides it), so neither model could see a pick; capture BEFORE with the object in view.

The contrast ratio is a coarse veto, not a vacancy test. On these small boxes the misses scored 0.63-0.68 (the nudged cube left part of the box) and one true pick 0.66, so no threshold separates them; here the VLM did all the work and the region check neither vetoed nor was needed. Its use is the first set's: a region that got busier (ratio well above 1: a hand covering the spot, another object landing there) blocks a VLM "yes".

Azure OpenAI was not checked: its variables were not set on the porting machine.

Relation to other skills

  • judging-step-with-before-now-vlm: plain BEFORE / NOW frames and a task-level status with recovery actions; this skill adds the diff heatmap and a pixel check on one region, and answers one question (did this change happen).
  • detecting-disturbed-pieces-by-snapshot-diff: registration-based, per-item movement in mm for items that should NOT have moved; no VLM.
  • verifying-grasps: the gripper side (jaw gap, held object near the hand); this skill is the source side. Use both for thin parts.

Changes from RoboRSI

Adapted from roborsi/embodied/skills/base/visual_diff/robotwin/policy.py (Apache-2.0): the panel, the HOT heatmap normalised to the frame's maximum, the prompt and the CHANGED / MATCH parsing are upstream's.

  • BEFORE is an observation from the graph, not a snapshot anchor cached in the process; AFTER is a fresh robot.get_observation, not a simulator render.
  • The panel goes to the hub's vlm.query as an array; the system and user text are one prompt (the tool has no system prompt).
  • The two answers become exits; a missing line routes no_verdict (upstream read it as NO).
  • New: the source-region pixel share and contrast ratio, and the uncertain exit when they disagree with the VLM.

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

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

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

ماذا تفعل مهارة الذكاء الاصطناعي Checking Pick By Scene Diff؟

Checks whether a pick (or a place, a push, any intended change) happened by showing a VLM one panel - the camera frame from before the step, the frame now, and a hot pixel-difference heatmap side by side - and asking whether anything changed and whether the expected change happened; when the graph knows where the object was (or should go), the pixels there must agree (changed, and emptied for a pick or filled for a place), else the verdict is uncertain. Routes changed_as_expected, changed_otherwise, unchanged, uncertain or no_verdict. Use when a pick (or place) has just run and the gripper...

لماذا تستخدم Checking Pick By Scene Diff على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Checking Pick By Scene Diff عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Checking Pick By Scene Diff في TypingMind؟

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

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Checking Pick By Scene Diff؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Checking Pick By Scene Diff؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Checking Pick By Scene Diff معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Checking Pick By Scene Diff مجانية؟

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

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

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

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

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

عرض الكل

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

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