Add safety field
POST/api/v1/safety/create
Add safety field via ROS service call. Verifies the safety field name does not already exist in the database before calling the service.
Request
- application/json
Body
array
- Array [
- Array [
- ]
- Array [
- ]
- ]
Name of the safety field
Type of the safety field
Load type of the safety field
Field index of the safety field
Monitoring index of the safety field
Consider footprint of the safety field
Obstacle min size of the safety field
Multisample of the safety field
safetyField object[]required
Safety field
warningField object[]required
Warning field
Responses
- 200
- 400
- 409
- 500
Safety field added successfully
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
Name of the safety field
Type of the safety field
Load type of the safety field
Field index of the safety field
Monitoring index of the safety field
Consider footprint of the safety field
Obstacle min size of the safety field
Multisample of the safety field
safetyField object[]required
Safety field
warningField object[]required
Warning field
{
"name": "string",
"fieldType": "string",
"loadType": "string",
"fieldIndex": 0,
"monitoringIndex": 0,
"considerFootprint": true,
"obstacleMinSize": 0,
"multisample": 0,
"safetyField": [
{
"x": 0,
"y": 0
}
],
"warningField": [
{
"x": 0,
"y": 0
}
]
}
Invalid request body
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string"
}
Safety field already exists
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string"
}
Internal server error
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string"
}