شعار Detecting Contact From Joint Effort

Detecting Contact From Joint Effort

مؤسسة
runtime-si
detecting-contact-from-joint-effort

Feels for contact without a force sensor - steps the hand along a short straight line a few millimetres at a time and, after each step, decides from proprioception whether something holds it - the joint efforts against a baseline taken in free motion along the same line (i2rt's gripper clog test, generalised to the arm) where the observation carries efforts, otherwise how far the measured tool centre lags the commanded one beyond its free-motion lag. Returns where the hand stopped and which signal fired. Use when a surface's position is known only to a centimetre or so and must be measured by touch (a table or a box floor before a grasp or a place, the top of an object, a wall before a slide), or to check that a line is clear before a move along it.

نظرة عامة

الناشرruntime-si
المستودعRoboSkillHub
اسم المهارةdetecting-contact-from-joint-effort
النجوم
242
التفريعات
27
الملفات المرفقة
2
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

استخدمها في TypingMind

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

يُحمّل النموذج مهارة Detecting Contact From Joint Effort تلقائيًا بمجرد ورود طلب ذي صلة بها.

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

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

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

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

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

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

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

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

detecting-contact-from-joint-effort

A YAM has no force sensor, but it feels a push two ways: its motors work harder (joint effort), and a position-controlled joint that is held stops following its command (tracking lag). This skill moves the hand along a short line in small steps and asks both after every step, against what they read while the hand moved freely along the same line just before.

The probe

  1. Read the hand. With start, go there first (a free move, arrival judged within reach_tolerance); the lag standing there is the first free-motion sample. Without it, the line starts where the hand is, and the first step's lag is the first sample (that step cannot itself fire).
  2. Clip the line at floor_z (a tool-centre floor, e.g. a station's lowest allowed height) and refuse lines over 150 mm. Preview the end with robot.solve_ik (check_reach): a stall at the edge of reach reads exactly like contact.
  3. Close the hand (close_hand, default true; closing a hand that holds something keeps holding it, and the held object becomes the probe).
  4. Look once for joint efforts in robot.get_observation (arms[arm_id].joint_state.efforts, or effort / torques). An observation can render every camera, so a connector without efforts is not asked again.
  5. Step step (2.5 mm) at a time with robot.go_to_pose, the hand's rotation kept. After each step wait until the hand stands still (two reads 0.3 s apart within 0.3 mm, at most 3 s) and judge:
    • lag: commanded minus measured position, along the line. Contact when it exceeds the median of the last three free-motion lags by more than lag_threshold.
    • effort (when published): the mean of effort_samples observations, dropping samples with any joint faster than speed_threshold (i2rt's speed gate). Contact when any joint's residual against the mean of the last three free-motion windows exceeds max(effort_threshold, 4 sigma), sigma from the last five windows once there are three. A step that is not contact adds its lag and window to the baseline.
  6. On contact back off backoff along the line so the hand stops pushing.

signal chooses: auto (efforts when published, and lag always; either fires), effort (no_signal without efforts), lag.

The two connectors this was written against

  • RoboSimStudio's YAM station twin (gap connector): robot.get_observation gives each arm joint_state: {positions} and nothing else - no velocities, no efforts - so the twin decides by lag. Its robot.go_to_pose is a feedback servo with a 4 mm arrival ball that would call a 2.5 mm step reached without moving; step_tolerance (1 mm) is passed as its tolerance. A blocked step ends as a routed timeout after the servo's budget (step_max_steps, passed only when set).
  • The real YAM station (yam_real.py's connector, and the threading station's): the arm state is joints_rad and the tool pose; the motion server publishes no arm efforts (its gripper's effort stays inside the server), so it too decides by lag. A step is a planned move whose wait accepts 12 mm, so a 2.5 mm step returns at once and the settle loop (the station's own still()) decides where the hand stands; a raised "the tool did not reach its target" is read as a step that ended short, not as a refusal. The threading station's connector speaks position / quat_xyzw lists and a label; the skill follows its convention when robot.get_ee_pose answers that way, labelled push... so it runs at the station's base rate. It has no robot.solve_ik, robot.close_gripper or robot.get_observation; the preview and the close are skipped and noted.
  • A connector that publishes efforts (an i2rt MotorChainRobot exposes joint_state.eff and vel) gets the effort test too; it is covered by unit tests only.

On a real station whose tool-centre floor is 8.7-14 mm over the table, closed fingertips 10.2 mm under the tool centre touch the table with the tool centre only 1.5 mm or less over the floor: less than lag_threshold, so the lag test cannot see the table there (the floor ends the line as free). Probe the table with the fingers open or through a held object, or with efforts.

Inputs

  • end (required), start (optional): the line's ends, tool centre, world frame.
  • signal (auto), step (0.0025 m), lag_threshold (0.003 m), effort_threshold (0.5 N.m), speed_threshold (0.3 rad/s), effort_samples (5), floor_z, tip_reach (0; e.g. 0.0102 for closed linear_4310 fingertips), backoff (0.003 m), close_hand (true), check_reach (true), reach_tolerance (0.015 m), step_tolerance (0.001 m; 0 leaves the connector's), step_max_steps (0), the settle constants, arm_id (0; passed only when nonzero).

The constants, and why

  • STEP = 0.0025 m, LAG_THRESHOLD = 0.003 m: the real threading station's SETTLE_STEP and SETTLE_CONTACT, with which it feels for the table before closing on a cable (low at far reach a real YAM stood 5.4 mm over its aim in free air; the next 1.5 mm read as the table).
  • EFFORT_THRESHOLD = 0.5 N.m, SPEED_THRESHOLD = 0.3 rad/s: i2rt's clog_force_threshold and clog_speed_threshold for the YAM's linear_4310 gripper. Not tuned on arm joints, which is why the per-joint 4-sigma floor exists (EFFORT_SIGMAS, a choice).
  • BASELINE_WINDOW = 3: the baseline follows a lag that grows as the arm reaches lower (3.6 to 6.7 mm on the real arm).
  • BACKOFF = 0.003 m: a lag over 3 mm means the hand was pushed back that far from its command; backing off as much stops the push.
  • REACH_TOLERANCE = 0.015 m: no tighter than a real station's 12 mm.

Simulation check

A YAM station twin (left arm, 30 mm cube on the table, MuJoCo at 500 Hz; simulator ground truth only to set the cases up and to measure). The hand was turned top-down with robot.grasp_frame, the skill closed it and probed straight down with its defaults, tip_reach 0.0102 m: from 40 mm over the contact height to 15 mm under it on the table (6 cm from the cube, four directions) and on the cube's top (centre, 5 mm off along x and y); through free air over the table, 55 mm down to 90 mm (four directions) and to 40 mm over it. Twelve rollouts, one probe each:

caseroutefingertip stop vs true surfacecube moved
table x4contact x4 (lag)+0.35 / +0.39 / +0.36 / +0.35 mm0
cube top x3contact x3 (lag)+0.01 / -0.01 / 0.00 mm2.8 / 2.6 / 2.7 mm along +x
free air x5free x5- (whole 55 mm line travelled)0
  • Detection 7/7, false alarms 0/5. The twin's free-motion lag was 0.2-0.35 mm with 0.1-0.2 mm from step to step; a held step read +4.7 to +5.0 mm over it. Contact fired on the second held step (the first read about 2 mm, under the 3 mm threshold), so the command was 5 mm past the surface when it fired.
  • That press pushed the cube 2.6-2.8 mm sideways each time (the jaws' tapered tips on its top). With lag_threshold 1.5 mm (the twin's tracking allows it; a real YAM's does not) contact fired one step earlier: the cube moved 1.1 mm, the stops read +0.15 mm (cube) and +0.32 mm (table), and the 40 mm free-air line stayed free.
  • efforts_available was false in every run: the twin publishes no efforts, so the effort test ran only in the unit tests. Nothing here ran on a real YAM.

What changed from i2rt, and why

i2rt's GripperForceLimiter runs inside the gripper motor's control loop: it averages the motor's effort over 0.1 s and calls the gripper clogged when the mean exceeds clog_force_threshold while the motor turns slower than clog_speed_threshold, then caps the force. Here the same test watches every arm joint from outside, between steps, through the connector; a free-motion baseline replaces the gravity torque i2rt's KDL model would subtract (the connectors expose no model torque); the speed gate drops moving samples instead of vetoing the decision; and because neither connector this ran on publishes efforts, tracking lag (the station's own contact rule) carries the decision there. The force cap is not ported: this skill decides and backs off.

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

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

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

ماذا تفعل مهارة الذكاء الاصطناعي Detecting Contact From Joint Effort؟

Feels for contact without a force sensor - steps the hand along a short straight line a few millimetres at a time and, after each step, decides from proprioception whether something holds it - the joint efforts against a baseline taken in free motion along the same line (i2rt's gripper clog test, generalised to the arm) where the observation carries efforts, otherwise how far the measured tool centre lags the commanded one beyond its free-motion lag. Returns where the hand stopped and which signal fired. Use when a surface's position is known only to a centimetre or so and must be measured...

لماذا تستخدم Detecting Contact From Joint Effort على TypingMind؟

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

كيف أثبّت Detecting Contact From Joint Effort في TypingMind؟

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

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Detecting Contact From Joint Effort؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Detecting Contact From Joint Effort؟

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

هل مهارة الذكاء الاصطناعي Detecting Contact From Joint Effort مجانية؟

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

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

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

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

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

عرض الكل

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

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