Execute Mission
POST/api/v1/missions/:id/execute
Run a saved mission by id (or name). Builds the BehaviorTree XML on the server, exactly like the UI's Run button, and sends it to the robot. Progress arrives on /aggregated_feedback (and the aggregated_feedback webhook).
Request
Path Parameters
id stringrequired
Possible values: >= 3 characters
- application/json
Body
execution_mode integer
Possible values: <= 2
0 = QUEUE behind the running mission (UI default), 1 = REPLACE_TREE, 2 = CANCEL_AND_RUN
Responses
- 200
- 400
- 404
- 500
- 503
Execute goal sent to the robot
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
status numberrequired
data objectrequired
goal_id stringrequired
mission_id stringrequired
mission_name stringrequired
execution_mode numberrequired
{
"success": true,
"message": "string",
"status": 0,
"data": {
"goal_id": "string",
"mission_id": "string",
"mission_name": "string",
"execution_mode": 0
}
}
Mission has no nodes
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
data nullrequired
status numberrequired
{
"success": true,
"message": "string",
"status": 0
}
Mission not found
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
data nullrequired
status numberrequired
{
"success": true,
"message": "string",
"status": 0
}
Internal server error
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
data nullrequired
status numberrequired
{
"success": true,
"message": "string",
"status": 0
}
ROS instance not available
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
data nullrequired
status numberrequired
{
"success": true,
"message": "string",
"status": 0
}
Loading...