Skip to content

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数据类型必须描述示例值
enablebool是否使能,否则断使能True
posString设置Xarm机械爪位置True
waitbool是否等待运动结束False
speedInt设置机械爪移动速度5000

Response:

code=0->成功;
code!=0->失败,详情参考xArm_Python_SDK/xarm_api_code.md文档。