微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🤖

Vector 机器人本地智控中枢

Vector Control · v1.0.0
AI 增强 安全 S+ 级 作者 dbeadle1 公开目录收录
2.4k 下载 2 安装 8.1k 收藏 20 浏览

简介

通过 Wirepod 本地 HTTP API 远程控制 Vector 机器人,支持移动、摄像头、语音及自主巡逻探索任务。

原始描述

Control a Vector robot via Wirepod’s local HTTP API on the same network. Use when you need to move Vector, tilt head/lift, speak text, capture camera frames, or run patrol/explore routines from the Pi/Wirepod host. Includes a CLI helper script and endpoint reference.

通过你的 Agent 添加

安装目录:vector-control/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/vector-control/
Codex CLI~/.codex/skills/vector-control/
DeepSeek Harness~/.agents/skills/vector-control/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

vector-control 是一款面向 Anki Vector 机器人的本地化控制工具,通过 Wirepod 开源框架提供的 /api-sdk/* HTTP 端点与机器人交互。用户可通过捆绑的 Python CLI 脚本完成设备接管、运动控制、头部/升降台调节、语音合成、摄像头抓拍、音频播放以及自主巡逻/探索等操作。

使用前需确保机器人与 Wirepod 主机(通常为 Raspberry Pi)处于同一本地网络,并获取设备的 ESN 序列号(可从 /etc/wire-pod/wire-pod/jdocs/botSdkInfo.json 读取)。所有控制指令均通过 localhost:8080 本地端口发送,无需互联网连接。

显著优点

  1. 纯本地架构:所有通信局限于本地网络,无数据外泄风险,物理隔离外部攻击面
  2. 零依赖设计:仅使用 Python 标准库(urllib、subprocess、uuid 等),彻底消除供应链攻击隐患
  3. 功能完整:覆盖 Vector 机器人核心能力——差速移动、头部俯仰、升降台调节、TTS 语音、MJPG 视频流、音频播放、自主巡逻与随机探索
  4. CLI 友好:提供结构化的命令行接口,支持脚本化自动化和快速调试

潜在缺点与局限性

  • 硬件绑定:必须拥有 Vector 机器人及 Wirepod 搭建的本地环境,普适性受限
  • 网络隔离依赖:虽为安全特性,但也意味着无法远程操控,适用场景局限于局域网覆盖范围
  • T3 来源可信度:由个人开发者维护,非企业级背书,长期维护承诺存在不确定性
  • 功能边界明确:定位为底层控制工具,不提供高级 AI 视觉分析或复杂任务规划能力

适合的目标群体

  • Vector 机器人爱好者:希望深度定制机器人行为、开发个性化互动的硬件玩家
  • 教育机器人实验者:用于机器人学、物联网、嵌入式系统教学的师生团队
  • 本地自动化需求者:需要在隔离网络环境中部署可控硬件实体的开发者或研究机构
  • 隐私敏感型用户:拒绝云端服务、追求数据完全本地化的极客用户

使用风险

尽管安全评级达 S+,仍需注意以下常规风险:

  • 物理安全风险:运动控制指令若参数不当可能导致机器人跌落或碰撞,建议始终在 assume 控制状态下操作并配备 release 应急机制
  • 资源竞争冲突:语音合成与运动指令存在中断竞争,需在设计序列时预留缓冲延迟
  • 设备状态依赖:Wirepod 服务稳定性直接影响控制可靠性,需确保主机供电及网络连通
  • 版本兼容性:Wirepod API 升级可能导致端点变更,建议锁定测试通过的版本组合

技能正文


name: vector-control description: Control a Vector robot via Wirepod’s local HTTP API on the same network. Use when you need to move Vector, tilt head/lift, speak text, capture camera frames, or run patrol/explore routines from the Pi/Wirepod host. Includes a CLI helper script and endpoint reference.

Vector Control

Overview

Control Vector through Wirepod’s /api-sdk/* endpoints and the camera stream at /cam-stream. Use this skill for movement, speech, camera snapshots, patrols, and exploration from the Pi.

Quick start (CLI)

Use the bundled script:

python3 skills/vector-control/scripts/vector_control.py --serial <ESN> assume
python3 skills/vector-control/scripts/vector_control.py --serial <ESN> say --text "Hello Dom"
python3 skills/vector-control/scripts/vector_control.py --serial <ESN> move --lw 160 --rw 160 --time 1.5
python3 skills/vector-control/scripts/vector_control.py --serial <ESN> snapshot --out /tmp/vector.mjpg

Find ESN/serial

If you don’t have it, read:

  • /etc/wire-pod/wire-pod/jdocs/botSdkInfo.json

Tasks

1) Assume / Release control

Always assume before movement, and release if the bot tips or a human needs manual control.

python3 .../vector_control.py --serial <ESN> assume
python3 .../vector_control.py --serial <ESN> release

2) Movement

  • move sends wheel speeds (0–200 typical). Use short timed moves.
python3 .../vector_control.py --serial <ESN> move --lw 120 --rw 120 --time 1.0

3) Head / Lift

python3 .../vector_control.py --serial <ESN> head --speed -2 --time 1.0
python3 .../vector_control.py --serial <ESN> lift --speed 2 --time 1.0

4) Speech

Speech can be interrupted by motion/camera. If it fails, pause after speaking before moving.

python3 .../vector_control.py --serial <ESN> say --text "Sneaking forward"
# wait 1–2s, then move

5) Camera snapshot

/cam-stream returns MJPG. Save it and convert to JPEG if needed (ffmpeg).

python3 .../vector_control.py --serial <ESN> snapshot --out /tmp/vector.mjpg
ffmpeg -y -loglevel error -i /tmp/vector.mjpg -frames:v 1 /tmp/vector.jpg

6) Play Audio (MP3/WAV)

Streams an audio file through Vector's speaker. Automatically converts to the required format (8kHz mono WAV).

python3 .../vector_control.py --serial <ESN> play --file /path/to/music.mp3

7) Patrol (deterministic sweep)

python3 .../vector_control.py --serial <ESN> patrol --steps 6 --speed 140 --step-time 1.2 --turn-time 0.8 --speak --phrase "Patrolling"

8) Explore (randomized wander)

python3 .../vector_control.py --serial <ESN> explore --steps 8 --speak --phrase "Exploring"

References

  • references/wirepod-api.md — endpoint list and notes.

Resources

scripts/

  • vector_control.py — CLI for basic control + patrol/explore routines.

references/

  • wirepod-api.md — HTTP API endpoints and usage notes.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

roboticsvectorwirepodlocal-apiiotcli-toolcamera-streamhome-automation

同类 Skill