继续机器人导航
请求
- 功能:继续机器人的导航任务
- 方法:
POST
- 接口说明:
/gotoSiteResume
json
POST "http://host:8088/gotoSiteResume"
1
请求数据
Name | Type | Description | Required |
---|---|---|---|
vehicles | string array | 需要继续导航的车名数组,如果vehicels 为空,则暂停所有机器人的导航任务 | 是 |
请求示例
json
{
"vehicles": ["car1", "car2"] // 车名数组
}
1
2
3
2
3
响应
响应数据
Name | Type | Description |
---|---|---|
code | int | API 错误码,详情见 API 错误码 |
msg | string | API 错误码信息 |
create_on | string | API 上传时间戳 |
响应数据示例
Responses Code 200
成功响应
json
{
"code": 0,
"create_on": "2022-02-10T18:21:25.073Z",
"msg": "ok"
}
1
2
3
4
5
2
3
4
5
Responses Code 400
vehicles 不为 array
json
{
"code": 50001,
"create_on": "2022-05-24T19:05:02.980Z",
"msg": "vehicles must be array"
}
1
2
3
4
5
2
3
4
5
vehicles 不为 string array
json
{
"code": 50001,
"create_on": "2022-05-24T19:05:45.071Z",
"msg": "vehicles array invalid"
}
1
2
3
4
5
2
3
4
5
请求 body 不为 json
json
{
"code": 50000,
"create_on": "2022-02-10T18:21:25.073Z",
"msg": "parse json error"
}
1
2
3
4
5
2
3
4
5
Responses Code 406
RDSCore 没有 XXX 机器人的控制权
json
{
"code": 50003,
"create_on": "2022-05-24T19:04:35.066Z",
"msg": "vehicle XXX not locked"
}
1
2
3
4
5
2
3
4
5
最近更新 2022/11/28
有用
没用