const task2 = {
"name": "<taskName>",
"robotId": "<robotId>",
"runNum": 1,
"taskType": 6,
"runType": 21,
"routeMode": 1,
"runMode": 1,
"ignorePublicSite": false,
"speed": -1,
"curPt": {
"x": 2.58,
"y": 16.19,
"yaw": 0,
"areaId": "<areaId>",
"type": -1,
"stopRadius": 1
},
"pts": [{ // point B info
"x": 2.583684539558817,
"y": 16.177015024538832,
"yaw": 0,
"stopRadius": 1,
"areaId": "<areaId>",
"type": -1,
"ext": {
"id": "<poiId>",
"name": "<poiName>"
},
"stepActs": [{
"type": 28,
"data": {
"mode": 1,
"doorIds": [1, 2, 3, 4]
}
}, {
"type": 18,
"data": {
"pauseTime": 10
}
}]
}]
}
const success = axRobot.startTask(task2)