Skip to content

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

datatypeRequired filedDescriptionexample value
saveboolnoWhether to save the settings to the firmwaretrue
is_checkboolnoWhether to check if the actual gravity direction of the arm is the same as the set direction. true
degreesarraynoSet the angle of gravity direction[90, 180]

Response:

code=0->Success;
code!=0->Failed, refer to xarm_api_code;