帮助中心
帮助中心主页
HTTP API
Roboview
Modbus API
常见问题
确认机器人的定位状态

请求

  • 功能:确认指定机器人的定位状态
  • 方法:POST
  • 接口说明:/reLocConfirm
json
POST "http://host:8088/reLocConfirm"
1

请求数据

NameTypeDescriptionRequired
vehiclesstring array需要确认定位的车名数组

请求示例

json
{
    "vehicles": ["car1", "car2"]    // 车名数组
}
1
2
3

响应

响应数据

NameTypeDescription
codeintAPI 错误码,详情见 API 错误码
msgstringAPI 错误码信息
create_onstringAPI 上传时间戳

响应数据示例

Responses Code 200

成功响应
json
{
    "code": 0,
    "create_on": "2022-02-10T18:21:25.073Z",
    "msg": "ok"
}
1
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

vehicle 不为 string array
json
{
    "code": 50001,
    "create_on": "2022-05-24T19:00:31.274Z",
    "msg": "vehicles array invalid"
}
1
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

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
最近更新 2023/02/11
文章内容

请求

请求数据

请求示例

响应

响应数据

响应数据示例

Responses Code 200

Responses Code 400

Responses Code 406