设置机器人软急停
请求
- 功能:设置机器人软急停
- 方法:
POST
- 接口说明:
/setSoftIOEMC
json
POST "http://host:8088/setSoftIOEMC"
1
请求数据
Name | Type | Description | Required |
---|---|---|---|
vehicle | string | 机器人名 | 是 |
status | bool | true 为输出急停, false 为不输出急停 | 是 |
请求示例
json
{
"vehicle": "AMB-01",
"status": true
}
1
2
3
4
2
3
4
响应
响应数据
Name | Type | Description |
---|---|---|
code | int | API 错误码,详情见 API 错误码 |
msg | string | API 错误码信息 |
create_on | string | API 上传时间戳 |
响应数据示例
Responses Code 200
成功响应
json
{
"code": 0,
"create_on": "2022-10-11T11:34:32.368Z",
"msg": "ok"
}
1
2
3
4
5
2
3
4
5
Responses Code 400
vehicle 不为 string
json
{
"code": 50001,
"create_on": "2022-10-11T11:34:42.324Z",
"msg": "don't have vehicle or vehicle is not a string"
}
1
2
3
4
5
2
3
4
5
status 不为 string
json
{
"code": 50001,
"create_on": "2022-10-11T11:34:54.306Z",
"msg": "don't have status or status is not a boolean"
}
1
2
3
4
5
2
3
4
5
请求数据不为 json
json
{
"code": 50000,
"create_on": "2022-10-11T11:35:06.318Z",
"msg": "parse json error"
}
1
2
3
4
5
2
3
4
5
最近更新 2023/02/11
有帮助
没帮助