GBH_Ability/Hand.md
2025-09-26 03:58:11 +00:00

45 lines
1.6 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 机器人灵巧手能力接口
## 接口列表
- [灵巧手控制任务启动](#灵巧手控制任务启动)
### task_type
| task_type | 任务说明 |
| ----------------- | ----------- |
| 1 | 灵巧手控制任务 |
## 轮臂机器人夹爪控制任务启动
### 请求地址
`POST /api/task/start_task`
### 请求参数
| 字段名 | 类型 | 必填 | 默认值 | 说明 | 示例值 |
| ----------------- | ----------- | ---- | ----- |------------ | ------------------- |
| task_type | int64 | 是 | | 任务类型id | 1 |
| payload | object | 是 | | 任务输入参数 | |
| ├─ left | array | 是 | | 左手自由度大拇指2个自由度其余手指各1个 | [100, 100, 100, 100, 100, 100] |
| ├─ right | array | 是 | | 右手自由度大拇指2个自由度其余手指各1个 | [0, 0, 0, 0, 0, 0] |
### 响应参数
| 字段名 | 类型 | 说明 | 示例值 |
| -------------- | ------ | -------------- | --------------------------------------- |
| task_id | string | 任务id | "e5672a6e-0bc2-4646-a019-dd914034e3ed" |
示例请求
``` json
{
"task_type": 1,
"payload": {
"left": [100, 100, 100, 100, 100, 100],
"right": [0, 0, 0, 0, 0, 0]
}
}
```
示例返回
``` json
{
"task_id": "e5672a6e-0bc2-4646-a019-dd914034e3ed"
}
```