Introduction
In swarm robotics, achieving consensus—where hundreds of simple agents agree on a single global state using only local, peer-to-peer communication—remains a fundamental challenge. Traditionally, researchers have treated continuous consensus (e.g., spatial formation) and discrete consensus (e.g., task selection) as distinct mathematical problems requiring specialized algorithms. Existing decentralized approaches often struggle with scalability, fail to handle complex rotations in non-Euclidean spaces, or lose information when robots move out of communication range.
This paper introduces DANCeRS, a unified framework that addresses both domains efficiently. By treating the swarm as a dynamic factor graph and leveraging Gaussian Belief Propagation (GBP), DANCeRS allows robots to reach consensus on complex parameters while remaining robust to changing network topologies.
The DANCeRS Framework
The core of the algorithm is Gaussian Belief Propagation (GBP), an iterative message-passing algorithm performed on a factor graph where robots act as variable nodes and constraints act as factor nodes.
Key technical innovations include:
- Lie Group Integration: Extending GBP to Lie groups (specifically $SE(2)$) allows robots to negotiate orientations and poses without the mathematical errors common in simple Euclidean averaging.
- Two-Layer Stack: Each robot operates a "Global Consensus Layer" to negotiate shared parameters and a "Planning Layer" for local collision avoidance and path planning.
- Temporal Sliding Windows: To maintain "memory" during temporary disconnections, the algorithm utilizes a sliding window of past beliefs.
- Occupancy Weighting (OW): This heuristic prevents multiple robots from targeting the same spot in a formation by "decaying" the perceived availability of target points based on local observations.
Unifying Continuous and Discrete Consensus
A significant contribution of DANCeRS is the realization that discrete consensus can be solved using continuous tools. By mapping $N$ discrete choices onto the continuous interval $[0, 1]$, the swarm can reach a "best-of-N" decision using the same underlying mathematics as spatial path planning.
Because GBP relies on local message passing, consensus ripples through the swarm even in sparse and dynamic networks without requiring a central leader. This approach also handles complex geometries, such as disjoint shapes (e.g., the dot on an 'i'), which often cause traditional potential-field or mean-shift methods to fail.
Experimental Results
The algorithm was evaluated through extensive simulations involving swarms of up to 400 robots.
- Efficiency: In continuous shape formation tasks, DANCeRS achieved an order-of-magnitude speedup in convergence compared to state-of-the-art Mean-Shift baselines.
- Scalability: For discrete decision-making, the number of iterations required for consensus remained nearly constant as swarm size increased, outperforming Entropy-based (ECA) and Probabilistic (PCA) methods in large, sparse networks.
- Sensitivity: The system is highly responsive to "informed" robots; in a 500-robot swarm, a single robot (0.2%) with a strong prior could drive the entire group to a specific decision.
Conclusion and Future Work
DANCeRS provides a robust, scalable, and unified approach to swarm consensus. While current memory constraints may limit the complexity of shape templates on low-end hardware, future research will explore adapting to dynamically changing sets of choices and time-varying global parameters, such as formations following a moving leader.
Summary updated