12.xarm_set_gripper_position
设置xArm 机械爪位置
Message
json
# 设置xArm 机械爪位置
{
"cmd": "xarm_set_gripper_position",
"data": {
"enable": true,
"pos": "300",
"wait": false,
"speed": 5000
},
"id": "1"
}
\
Request:
请求类型:Application/json
- cmd
- string,必需,请求接口
- data
- json,必需,请求数据
- id
- string,必需,请求序列号
data | 数据类型 | 必须 | 描述 | 示例值 |
---|---|---|---|---|
enable | bool | 是 | 是否使能,否则断使能 | True |
pos | String | 是 | 设置Xarm机械爪位置 | True |
wait | bool | 是 | 是否等待运动结束 | False |
speed | Int | 是 | 设置机械爪移动速度 | 5000 |
Response:
code=0->成功;
code!=0->失败,详情参考xArm_Python_SDK/xarm_api_code.md文档。