Detecting In Hand Slip And Twist From The Wrist Camera 标志

Detecting In Hand Slip And Twist From The Wrist Camera

组织
runtime-si
detecting-in-hand-slip-and-twist-from-the-wrist-camera

通过腕部相机观察被夹持的零件;相机与手指刚性连接,可判断零件是否在夹爪中滑动、扭转或掉落。零件区域定义为相机前方近距离深度带内的部分;将密集 Farneback 光流与起始帧进行比较,并使用 RANSAC 拟合相似变换(避免静止的手指带动计算结果),得出滑动距离(毫米)和绕相机轴的旋转角度。区域的深度平面法线用于测量绕夹爪闭合轴的扭转,这是仅凭图像无法判断的;区域缩小则表示零件掉落。适用于在夹爪中夹持或推动零件,且计算图需要在没有触觉或力传感器的情况下,确认零件是否在手中移动(例如多米诺骨牌沿夹垫滑动、杆件或销钉绕夹持点转动、零件脱手),再依赖其姿态的场景。

Add to TypingMind

概览

发布者runtime-si
代码仓库RoboSkillHub
技能名称detecting-in-hand-slip-and-twist-from-the-wrist-camera
星标数
242
复刻数
27
附带文件
2
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 2 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 runtime-si 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Detecting In Hand Slip And Twist From The Wrist Camera AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/runtime-si/RoboSkillHub/tree/main/skills/detecting-in-hand-slip-and-twist-from-the-wrist-camera
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
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-in-hand-slip-and-twist-from-the-wrist-camera .claude/skills/detecting-in-hand-slip-and-twist-from-the-wrist-camera
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Detecting In Hand Slip And Twist From The Wrist Camera,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Detecting In Hand Slip And Twist From The Wrist Camera。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Detecting In Hand Slip And Twist From The Wrist Camera 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

detecting-in-hand-slip-and-twist-from-the-wrist-camera

A YAM has no tactile or force sensing in its jaws, but its wrist camera is bolted to them. Whatever the held part does relative to the camera, it does relative to the fingers. This skill compares wrist frames with the one taken when it starts, inside the part's region, in the manner of the optical-flow slip detector of Applied Sciences 13(15):8620 (2023). That paper reports 82-87 % accuracy and 87-95 % recall with a wrist D435.

How

  1. Take the wrist camera (named camera, else the first whose name has wrist or eye_in_hand). Its first frame is the reference. The part's region is every pixel with depth in near-far (0.02-0.20 m).
  2. Every period_s (0.2 s) for duration_s (2 s), compare the new frame with the reference:
    • slip and spin: Farneback dense flow, sampled in the reference region. A RANSAC similarity fit (cv2.estimateAffinePartial2D) takes the dominant motion; the still fingers count as outliers when the part dominates the region. Its translation in pixels, times the region's median depth over the focal length, is the slip in mm. Its rotation is the spin about the camera axis.
    • twist: fit a plane to the region's depth points in both frames and measure the normal's turn about the jaws' closing axis (the tool frame's y axis, from robot.get_ee_pose, taken into the camera frame by the camera's pose).
    • drop: the region's pixel count against the reference.
  3. Report the worst frame and route on it.

Inputs

duration_s (2.0), period_s (0.2; 0 compares back to back), camera, near / far (0.02 / 0.20 m), slip_mm (2.0), twist_deg (3.0), drop_fraction (0.4), jaw_width_m (0: off), arm_id.

With jaw_width_m (the jaw opening, e.g. the part's width across the jaws) and a camera pose in the observation, the region is the jaw box instead of the band: depth points in the tool frame with |x| (the closing axis) inside the opening less 1.5 mm, |y| under 40 mm and under 15 mm past the tool centre. Slip, twist and spin then come from a rigid 3D fit (Kabsch, trimmed) to the flow's point matches. Use it: the plain band is not reliable (below).

Outputs

slip_mm, twist_deg (about the closing axis, signed), spin_deg (about the camera axis, signed), area_fraction, frames.

The constants, and why

  • TWIST_DEG = 3: over the 0.7-2 deg a station twin's 30-100 g parts settle by when lifted (SIM_GRIP.md), and under the ~10 deg per push that inserting-mid-air-between-two-held-parts turned its parts.
  • SLIP_MM = 2: about a quarter of a domino's 7 mm thickness. A domino lift slid 4.6 mm in the twin.
  • NEAR / FAR: a D405 on a YAM sees the closed fingertips at about 0.07-0.12 m. The table lies beyond 0.2 m while carrying. Lower far before reading near the table.

Limits

  • Texture: the flow needs texture. A plain part (a white domino back, a bare cube) gives weak flow, and then the depth plane carries the decision. A slip along a flat face of a featureless part can be missed.
  • Fingers: they sit inside the band too. Their region does not move, so they show as outliers in the fit, but if they cover most of the region the dominant motion is theirs (zero) and slip is under-read.
  • The closing axis is the tool's x (robot.get_ee_pose frame): a held domino's thickness axis lies within 0.04 of it in the station twin. Version 0.1.0 used y.

Station twin check (2026-11-10, privileged truth, wrist D405 at the real fit)

Domino lift (refilling-a-domino-loading-rack, 2 racks), first 3 s of each hold; DUPLO and peg mid-air insertion (inserting-mid-air-between-two-held-parts) as stable holds before the parts meet:

casetruthband (0.1.0)jaw box + rigid fit (jaw_width_m)
domino, full speed (4 lifts)3.0-3.4 mm slipslip 0.0 mm; fired on a false 33 deg twistslip 2.4-3.7 mm, 4/4 fire (3/4 on slip > 2 mm)
domino, held_speed_scale 0.25 (6 lifts)0.6-1.3 mm6/6 false alarms (23-32 deg twist)slip 0.6-2.6 mm: 2/6 false alarms
mid-air, held before contact (264 frames)0.9-1.8 mm, < 1.7 deg97-134 deg twist, area < 0.4 ("dropped")max 0.8 mm, 0.6 deg: 0 false alarms

The band took in the fingers (the flow fit locked on their zero motion) and the table (its plane read as 100+ deg of twist when the part left it). Still open: once the mid-air parts meet, the other part enters the jaw box and the fit reads false twist (up to 90 deg); twists about the approach axis (8-13 deg on a domino) read 3-8 deg; the jigsaw turn-fling case (#191) was not recorded.

Second part in the jaw box, two-frame confirmation (0.3.0, same recordings)

In the jaw-box mode each flow match must land within GATE_M (4 mm) of where the last frame's fit puts the held point; with under MIN_MATCHED (25 %) left the frame is occluded (counted in occluded_frames, not judged). A reading counts when two frames in a row agree. The area fraction is the reference region still in the box.

case0.2.00.3.0
mid-air after the parts meet (DUPLO 440 + peg 1322 frames)181 frames fired, twist up to 94 deg0 fired; peg run 1131 of 1322 frames occluded
mid-air before contact (384 frames)0 fired0 fired
domino, held_speed_scale 0.25 (6 lifts)2/6 false alarms1-2/6 (two-frame slip 2.0 and 2.3 mm on 1.1 mm true, both the third tile)
domino, full speed (4 lifts, 3.0-3.4 mm true)4/43/4 (second tile 2.1-2.3 mm; first tile once on a 3.2 deg spin, once missed at 1.1 mm)

Open: after contact the peg run's parts slipped 3.4-3.6 mm while most frames were occluded and the rest read 1.5-1.8 mm (missed); the gate costs the first tile's full-speed slip; the jigsaw turn that flings a bare 2 mm piece (#191) leaves nothing in the jaw box (the flat piece is not seen between the jaws), and the band mode reads the table as 30-38 deg of twist there, as before.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Detecting In Hand Slip And Twist From The Wrist Camera AI 技能有什么作用?

通过腕部相机观察被夹持的零件;相机与手指刚性连接,可判断零件是否在夹爪中滑动、扭转或掉落。零件区域定义为相机前方近距离深度带内的部分;将密集 Farneback 光流与起始帧进行比较,并使用 RANSAC 拟合相似变换(避免静止的手指带动计算结果),得出滑动距离(毫米)和绕相机轴的旋转角度。区域的深度平面法线用于测量绕夹爪闭合轴的扭转,这是仅凭图像无法判断的;区域缩小则表示零件掉落。适用于在夹爪中夹持或推动零件,且计算图需要在没有触觉或力传感器的情况下,确认零件是否在手中移动(例如多米诺骨牌沿夹垫滑动、杆件或销钉绕夹持点转动、零件脱手),再依赖其姿态的场景。

为什么在 TypingMind 中使用 Detecting In Hand Slip And Twist From The Wrist Camera?

因为您只需安装一次,就能搭配任何模型使用。Detecting In Hand Slip And Twist From The Wrist Camera 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Detecting In Hand Slip And Twist From The Wrist Camera?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/runtime-si/RoboSkillHub/tree/main/skills/detecting-in-hand-slip-and-twist-from-the-wrist-camera。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Detecting In Hand Slip And Twist From The Wrist Camera?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Detecting In Hand Slip And Twist From The Wrist Camera 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Detecting In Hand Slip And Twist From The Wrist Camera 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Detecting In Hand Slip And Twist From The Wrist Camera AI 技能免费吗?

是的。runtime-si 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇