34.xarm_set_mount_direction
1. Introduction
Setting the mounting direction Interface.
Sets the mounting direction.
2.Request & Response
Message
json
{
"cmd": "xarm_set_mount_direction",
"data": {
'save': true,
'is_check': true,
'degrees': [90, 180]
},
"id": "1"
}
Request
data | type | Required filed | Description | example value |
save | bool | no | Whether to save the settings to the firmware | true |
is_check | bool | no | Whether to check if the actual gravity direction of the arm is the same as the set direction. | true |
degrees | array | no | Set the angle of gravity direction | [90, 180] |
Response:
code=0->Success;
code!=0->Failed, refer to xarm_api_code;