Skip to main content
Version: 1.1.2

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 first destination: the waypoint of a move-to, params.waypoints[0] of a move-path, or the first waypoint of a search-area route. A Sub-Task of a move-to or move-path Parent Task carries the Parent Task's params unchanged, so a move-path Sub-Task flies the whole route. See the Swarm protocol guide, section taskAnnouncement.

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
}
}
}
}