Skip to main content

Trigger remote tasks

You can trigger site tasks of m line robot using Robot OpenAPI v2alpha2.

触发远程任务流程图

Commands Use

curl --location 'https://openapi.gs-robot.com/v1alpha1/robots/{robotSn}/status'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer {token}'
`}
curl --location 'https://openapi.gs-robot.com/v1alpha1/robots/{robotSn}/commands'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer {{token}}'
--data '{
    "serialNumber": "{robotSn}",
    "remoteTaskCommandType": "START_TASK",
    "commandParameter": {
        "startTaskParameter": {
        "cleaningMode": "__middle_cleaning",
            "task": {
            "loop": false,
            "loopCount": 1,
            "map": "9-2",
            "name": "execute_task_a_a_path0"
            }
        }
    }
}'
curl --location 'https://openapi.gs-robot.com/v1alpha1/robots/{robotSn}/commands/{commandId}'
--header 'Authorization: Bearer {{token}}'