确认机器人的定位状态
请求
- 功能:确认指定机器人的定位状态
- 方法:
POST
- 接口说明:
/reLocConfirm
json
POST "http://host:8088/reLocConfirm"
1
请求数据
Name | Type | Description | Required |
---|---|---|---|
vehicles | string array | 需要确认定位的车名数组 | 是 |
请求示例
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
vehicle 不为 array
json
{
"code": 50001,
"create_on": "2022-05-24T19:00:08.134Z",
"msg": "vehicles must be array"
}
1
2
3
4
5
2
3
4
5
vehicle 不为 string array
json
{
"code": 50001,
"create_on": "2022-05-24T19:00:31.274Z",
"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:01:05.657Z",
"msg": "vehicle XXX not locked"
}
1
2
3
4
5
2
3
4
5
最近更新 2023/02/11
有帮助
没帮助