返回顶部
s

soarm-controlSOARM机械臂控制

Control the robotic arm through the OpenClaw SOARM API. Use this skill when reading current joint state, moving by joint angles, moving by XYZ coordinates, or handling SOARM robot-control requests.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
388
下载量
免费
免费
2
收藏
概述
安装方式
版本历史

soarm-control

🦐 SOARM 控制技能

使用现有的 SOARM API 直接控制机械臂。

⚙️ 配置说明

默认本地设置(同一台机器时):

  • - API 基础 URL:http://127.0.0.1:8000

🔍 关键 API 及示例

读取当前状态

bash
curl -sS http://127.0.0.1:8000/joints

返回当前关节值和 XYZ 末端执行器位置。



通过关节角度移动到指定位置

bash
curl -sS -X POST http://127.0.0.1:8000/move/joints \
-H Content-Type: application/json \
-d {angles:[0,0,0,0,0,0]}

参数说明:

  • - 关节顺序:shoulderpan(肩部旋转)、shoulderlift(肩部抬升)、elbowflex(肘部弯曲)、wristflex(腕部弯曲)、wrist_roll(腕部旋转)、gripper(夹爪)
  • 前 5 个关节使用 度(deg)
  • 夹爪使用 0-100 范围

固定位置:

名称shoulderpanshoulderliftelbowflexwristflexwristrollgripper
initial(初始)0-1049565-9510
topdown(俯视)
0 | -50 | 30 | 90 | -95 | 70 |

示例:

回到 initial(初始位置):

bash
curl -sS -X POST http://127.0.0.1:8000/move/joints \
-H Content-Type: application/json \
-d {angles:[0,-104,95,65,-95,10]}

回到 top_down(俯视位置):

bash
curl -sS -X POST http://127.0.0.1:8000/move/joints \
-H Content-Type: application/json \
-d {angles:[0,-50,30,90,-95,70]}



通过 XYZ 坐标移动

bash
curl -sS -X POST http://127.0.0.1:8000/move/xyz \
-H Content-Type: application/json \
-d {x:0.2,y:0.0,z:0.2}

参数说明:

  • - x:前进/后退(正数 = 前进)
  • y:左/右(正数 = 向左)
  • z:上/下(正数 = 向上)
  • 数值单位为



触发抓取任务

bash
curl -sS -X POST http://127.0.0.1:8000/pick

返回:

  • - ok:如果任务被接受则为 true
  • message:抓取任务已启动
  • 如果另一个抓取任务正在运行,则返回 HTTP 409

🐙 我可以运行的快速命令

回到初始位置

bash curl -sS -X POST http://localhost:8000/move/joints \ -H Content-Type: application/json \ -d {angles:[0,-104,95,65,-95,10]}

回到俯视位置

bash curl -sS -X POST http://localhost:8000/move/joints \ -H Content-Type: application/json \ -d {angles:[0,-50,30,90,-95,70]}

读取当前位置

bash curl -sS http://localhost:8000/joints

🛠️ 设置说明

将 SOARM 设备与 OpenClaw 配对时:
  1. 1. 整理技能目录

bash
├── references
│   └── so101newcalib.urdf # 从 TheRobotStudio 下载
├── scripts
│   ├── best.pt # yolo11n 模型
│   ├── controlsoarmjoints.py
│   ├── movesoarmtoxyzpinocchio.py
│   ├── readsoarmjoints.py
│   ├── soarm_api.py
│   └── start_server.sh
└── SKILL.md

  1. 2. 准备 lerobot 环境
  2. 启动服务器
bash ~/.openclaw/workspace/skills/soarm-control bash scripts/start_server.sh

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 soarm-control-1776207294 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 soarm-control-1776207294 技能

通过命令行安装

skillhub install soarm-control-1776207294

下载

⬇ 下载 soarm-control v1.0.1(免费)

文件大小: 13.42 KB | 发布时间: 2026-4-15 10:40

v1.0.1 最新 2026-4-15 10:40
Significant update: Migrated to a new SOARM API-based control system, simplified scripts, and updated documentation.

- Replaced older joint-control scripts with a unified SOARM API approach.
- Added scripts for reading joints, moving by XYZ and joint angles, launching server, and running yolo11n detection.
- Removed legacy scripts for manual control, status reporting, and device enabling/disabling.
- Updated sample calibration data and documentation to reference the new system.
- SKILL.md rewritten for concise, API-focused usage with quick command examples and updated setup steps.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部