Summary
Swarm robotics is the study and engineering of many simple robots, usually drones or small wheeled vehicles, that produce coordinated group behavior from local rules: each robot reacts to its own sensors and to what nearby neighbors do or say. No robot is in charge, and there is no ground station whose failure ends the mission. The same idea shows up across this library. A LoRa mesh keeps working when one node dies. A local-first app keeps working without its server. A swarm applies that design to machines that move. (Not to be confused with Swarm, the Ethereum storage network.)
This entry is a map of what exists, what is possible and how mature it is. It is not a build manual; for hands-on steps see Getting Started with Swarm Robotics, and for a project-by-project comparison see Open-Source Swarm Projects Compared. The scope is civilian, research and education work.
Why it belongs on a resilience site
- No single point of control. A central controller is also a central point of failure, of jamming, and of coercion. Decentralized coordination removes a dependency that centralized designs share.
- Works when links do not. Real radio links are lossy, slow and short-ranged. Systems built for that from the start, such as vswarm, which uses no inter-agent communication at all, are the swarm equivalent of the off-grid networks this library covers.
- Scales by adding cheap parts. The research bet is that many small, inexpensive, replaceable units can match one large, fragile one. Fieldwork on mapping with nano-drones found that mapping time fell as agents were added (see the swarm project comparison).
- Same constraints as the mesh pillar. Low bandwidth, intermittent links, tight power budgets and no infrastructure are exactly the conditions Meshtastic, Reticulum and off-grid power design for.
How a swarm coordinates
Most open-source swarm work combines a few classic building blocks:
| Building block | Idea | Typical source |
|---|---|---|
| Flocking | Each agent steers by three local rules: keep apart, match neighbors' heading, stay close. | Reynolds, Flocks, herds and schools (1987); Olfati-Saber, Flocking for multi-agent dynamic systems (2006) |
| Formation control | Agents hold assigned positions relative to neighbors or to a virtual shape. | Oh, Park and Ahn, A survey of multi-agent formation control (2015) |
| Consensus | Agents repeatedly average information with neighbors until they agree on a value, such as a heading, a meeting point or a target. | Olfati-Saber and Murray, Consensus problems in networks of agents with switching topology and time-delays (2004) |
| Coverage control | Agents spread out to divide an area among themselves. | Cortés et al., Coverage control for mobile sensing networks (2004) |
| Collision avoidance | Local rules or safety filters keep agents apart and away from obstacles. | Control barrier functions; potential-field methods |
The first two are well understood in simulation. The hard parts are everything outside it: sensing neighbors reliably, tolerating delayed or dropped messages, and staying safe when one unit fails.
Communication is the constraint
A swarm is a distributed system with moving nodes, so it inherits distributed-systems problems.
- Explicit communication (Wi-Fi, LoRa, ESP-NOW) lets robots share state, but bandwidth is tiny and links drop as robots move. ESP-NOW, Espressif's connectionless Wi-Fi protocol, carries up to 250 bytes per packet in v1.0 (v2.0 raises this to 1470 bytes), which is enough for a position and a few flags and not for video or maps. LoRa is slower still. Design messages as small, periodic, loss-tolerant state updates, not as reliable streams.
- Implicit communication replaces messages with sensing. Each robot watches its neighbors with cameras or range sensors and infers what it needs. vswarm does this for drones; its authors report decentralized flocking from onboard vision with no inter-agent communication and no visual markers.
- Shared infrastructure (GPS, a motion-capture room, a ground computer) is the easy route and most lab demonstrations use it. It is also the dependency most likely to be missing in a disaster, or to fail under jamming.
The survey by Coppola, McGuire, De Wagter and de Croon, A survey on swarming with micro air vehicles: fundamental challenges and constraints (2020), is the survey to start with on how sensing, communication and onboard computing limit real swarms.
What it can be used for
These are research and early-deployment directions, not mature products:
- Search and rescue. Many cheap units can cover a collapsed building or a wooded area faster than one, and losing a unit does not end the mission. Research systems have flown teams through cluttered forests using only onboard sensing and planning (the EGO-Swarm project in the comparison).
- Mapping. ETH Zürich's nano-drone project builds a shared map from several nano-drones with a 35 g payload budget, with no external infrastructure and all processing on tiny microcontrollers.
- Environmental monitoring. Spread-out sensors that adapt their positions, for instance to hold a coverage pattern over a changing area.
- Communications relays. A mobile node can extend a mesh into a gap. The research question is how to place and keep relays connected with little bandwidth. A Meshtastic or Reticulum node is the natural payload, but practical, tested deployments are scarce, so treat this as an open direction.
- Education. Wheeled platforms such as HeRoSwarm and simulators such as ARGoS make multi-robot algorithms teachable at low cost.
Maturity: an honest read
- Simulation is mature; the field is not. Several projects run well in Gazebo. Few have been flown outdoors by many drones without a ground station, and the sim-to-real gap is large.
- Many "swarms" are centrally run. The widely used Crazyswarm2 stack, for example, runs a server on a ground computer that talks to every Crazyflie through radio dongles. That is a fine research testbed and a poor model of a resilient system.
- Maintenance is uneven. Of the ten projects in Open-Source Swarm Projects Compared, two (Aerostack2 and Crazyswarm2) are actively developed and two (ARGoS and Buzz) are maintained slowly. ROS2swarm says outright that it is no longer maintained, and vswarm, Nano Swarm Mapping and EGO-Swarm are paper code with no recent development. HeRoSwarm is a lab release with little activity, and Flockwork is a weeks-old single-author repository. The table gives dates. Published decentralized outdoor flocking experiments involve tens of drones, for example the 30-drone flock validated by Vásárhelyi et al. (2018).
- Rating: experimental. Useful as a toolbox and a research map; do not build anything life-critical on it.
Dual use, stated plainly
Coordination software is dual-use. The control laws that let search-and-rescue drones spread out are mathematically the same ones used for any group of vehicles, and some projects restrict their licenses: Flockwork's license bars military use, which makes it source-available rather than open source in the OSI sense. This library covers civilian, research and education uses, documents public open-source work, and gives no guidance on weapons or on defeating safety systems. Multi-aircraft flight is regulated in most countries, often with strict limits on how many aircraft one pilot may fly, so check your national aviation authority before any outdoor test, and keep early work in simulation or indoors with safety nets.
Where to go next
- Compare the actual projects, with licenses and activity: Open-Source Swarm Projects Compared.
- Start building, simulation first: Getting Started with Swarm Robotics.
- Comms for constrained nodes: LoRa Mesh Field Guide, Off-Grid Communication Compared, OpenMANET and Wi-Fi HaLow.
- The wider picture: Off-Grid and Mesh Networks.
Primary sources
- C. W. Reynolds, Flocks, herds and schools: a distributed behavioral model, SIGGRAPH 1987: https://doi.org/10.1145/37402.37406
- R. Olfati-Saber, Flocking for multi-agent dynamic systems: algorithms and theory, IEEE TAC 51(3), 2006: https://doi.org/10.1109/TAC.2005.864190
- K.-K. Oh, M.-C. Park, H.-S. Ahn, A survey of multi-agent formation control, Automatica 53, 2015: https://doi.org/10.1016/j.automatica.2014.10.022
- R. Olfati-Saber, R. M. Murray, Consensus problems in networks of agents with switching topology and time-delays, IEEE TAC 49(9), 2004: https://doi.org/10.1109/TAC.2004.834113
- G. Vásárhelyi et al., Optimized flocking of autonomous drones in confined environments, Science Robotics, 2018: https://doi.org/10.1126/scirobotics.aat3536
- J. Cortés, S. Martínez, T. Karatas, F. Bullo, Coverage control for mobile sensing networks, IEEE TRA 20(2), 2004: https://arxiv.org/abs/math/0212212
- M. Brambilla, E. Ferrante, M. Birattari, M. Dorigo, Swarm robotics: a review from the swarm engineering perspective, Swarm Intelligence 7, 2013: https://doi.org/10.1007/s11721-012-0075-2
- M. Coppola, K. N. McGuire, C. De Wagter, G. C. H. E. de Croon, A survey on swarming with micro air vehicles: fundamental challenges and constraints, Frontiers in Robotics and AI, 2020: https://doi.org/10.3389/frobt.2020.00018
- X. Zhou et al., Swarm of micro flying robots in the wild, Science Robotics, 2022: https://doi.org/10.1126/scirobotics.abm5954
- Espressif, ESP-NOW (ESP-IDF programming guide): https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/network/esp_now.html
- Crazyswarm2 documentation, Overview: https://imrclab.github.io/crazyswarm2/overview.html
Page history
- Updated
- 2026-11-29
- Origin
- Written for ungovernable.tech.
- Improve this page
- Suggest an edit — issues and pull requests are welcome.