Generate safety field
POST/api/v1/safety/generate
Generate 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 [
- ]
settings objectrequired
Linear min
Linear max
Linear step
Angular min
Angular max
Angular step
Response time
Load type
Base field index
Consider footprint
Warning enabled
Warning offset %
Warning velocity factor
Response time formula
Deceleration
Safety buffer
Lateral factor
Max forward
Max lateral
basePreset objectrequired
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
Robot width
Robot length
Responses
- 200
- 400
- 409
- 500
Safety field generated successfully
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
settings objectrequired
Linear min
Linear max
Linear step
Angular min
Angular max
Angular step
Response time
Load type
Base field index
Consider footprint
Warning enabled
Warning offset %
Warning velocity factor
Response time formula
Deceleration
Safety buffer
Lateral factor
Max forward
Max lateral
basePreset objectrequired
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
Robot width
Robot length
{
"settings": {
"linearMin": 0,
"linearMax": 0,
"linearStep": 0,
"angularMin": 0,
"angularMax": 0,
"angularStep": 0,
"responseTime": 0,
"loadType": "string",
"baseFieldIndex": 0,
"considerFootprint": true,
"warningEnabled": true,
"warningOffsetPct": 0,
"warningVelocityFactor": 0,
"responseTimeFormula": 0,
"deceleration": 0,
"safetyBuffer": 0,
"lateralFactor": 0,
"maxForward": 0,
"maxLateral": 0
},
"basePreset": {
"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
}
]
},
"robotWidth": 0,
"robotLength": 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"
}