Flocking behavior for dynamic and complex swarm structures
Carmen D. R. Pita-Romero, Pedro Arias-Perez, Miguel Fernandez-Cortizas, Rafael Perez-Segui, Pascual Campoy
TL;DR
This work addresses formation control for dynamic, complex UAV swarms by introducing FlockingBehavior, a virtual-centroid based algorithm that generates reference poses $P_i^W(t)$ from a single virtual-centroid trajectory $oldsymbol{ au}_{VC}^W(t)$ and a geometric formation $G_i^{VC}(t,i)$, enforcing Reynolds' cohesion, separation, and alignment. The method supports changing swarm size and formations in flight and relies on SE(3) transformations to couple 3D geometry with motion within a centralized offline control framework, while remaining compatible with other schemes. Validation includes extensive simulations across linear and curvilinear trajectories, dynamic reconfigurations, and scalability tests, as well as real-world experiments with Crazyflie drones, and the open-source ROS 2 modular code provides a practical platform for replication and extension.
Abstract
Maintaining the formation of complex structures with multiple UAVs and achieving complex trajectories remains a major challenge. This work presents an algorithm for implementing the flocking behavior of UAVs based on the concept of Virtual Centroid to easily develop a structure for the flock. The approach builds on the classical virtual-based behavior, providing a theoretical framework for incorporating enhancements to dynamically control both the number of agents and the formation of the structure. Simulation tests and real-world experiments were conducted, demonstrating its simplicity even with complex formations and complex trajectories.
