Skip to main content

Sends task announcement

PUB 

{agent-base-topic}/sensor/task/{task-id}/announce

The elected Swarm Leader announces the oldest pending ingress task to eligible members for bidding. A member bids the distance to the task's destination: the waypoint of a move-to, or the first waypoint of a search-area route. A Sub-Task of a Parent search-area is announced as a start-task command that carries only its own part of the area in params.area (every other parameter, loop included, is the Parent Task's, and loop applies to each Agent's part), so a member bids the distance to the first waypoint of that part's route. The parts are announced one after another in route order, from the end the whole route starts at; a re-bid of a refused part announces the same part again. The next round waits until the selected executor processes its assignment and accepts execution or reports failure; Flight Tasks may execute concurrently after acknowledgement.

MQTT​

QoS1
retainfalse

Message message​

Sends task announcement
{
"swarm-id": "2d5082f9-3dca-498c-9157-f152456f9179",
"task-id": "7d1c2b3a-4e5f-4a69-8b7c-0d1e2f3a4b5c",
"leader-id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"parent-task-id": "1a2b3c4d-5e6f-4789-9abc-def012345678",
"agent-count": 2,
"command": {
"com-uuid": "9c8b7a6f-5e4d-4c3b-9a19-8f7e6d5c4b3a",
"task-uuid": "7d1c2b3a-4e5f-4a69-8b7c-0d1e2f3a4b5c",
"parent-task-uuid": "1a2b3c4d-5e6f-4789-9abc-def012345678",
"parent-com-uuid": "5f3e2c1a-8b7d-4e6f-9a1b-2c3d4e5f6789",
"command": "start-task",
"execution-unit": "Swarm-2d5082f9-3dca-498c-9157-f152456f9179",
"sender": "commander",
"task": {
"name": "move-to",
"params": {
"waypoint": {
"latitude": 57.7611363,
"longitude": 16.6805011,
"altitude": 47.81
},
"speed": "standard",
"agent-count": 2
}
}
}
}