Reference-Model-Guided Distributed MPC for UAV Swarm Formation Flying Under Switching Directed Graphs
Authors: Yiming Wang, Yenan Wu, Junda Wu, Yanke Sun, Huizhe Li, Ke Yu, Youmin Gong, Guangfu Ma, Jie Mei
Organizations: The authors are with the School of Intelligence Science and Engineering, Harbin Institute of Technology (Shenzhen), Shenzhen 518055, China. · The author is with the School of Electronic Engineering, Xidian University, Xi’an, 710071, China.
Distributed formation control of unmanned aerial vehicle (UAV) swarms in complex environments faces several challenges, including switching inter-agent connectivity, limited communication, external disturbances, and collision avoidance. To address these challenges, we propose a reference-model-guided distributed model predictive control (MPC) framework for UAV swarm formation. Each UAV uses relative-position information from its neighbors as input to a local reference model, whose output serves as the formation guidance for the onboard MPC controller. Meanwhile, a Kalman filter is utilized to predict neighboring UAV motions, enabling the construction of inter-UAV collision-avoidance constraints solely from instantaneous relative-state information. By decoupling MPC optimization from distributed coordination, this control architecture preserves the look-ahead planning and constraint-handling capabilities of MPC while enhancing the swarm's adaptability to switching directed graphs. Moreover, eliminating the exchange of neighbors' predicted trajectories reduces communication bandwidth demands, offering strong scalability for large-scale UAV swarms. To improve robustness and safety, disturbance-observer-based feedforward compensation is employed, while the bounded residual disturbance is explicitly considered in the control barrier function (CBF)-based obstacle-avoidance constraints. Finally, the proposed framework is validated through both simulations and real-world flight experiments. Specifically, the flight verification is conducted on a fully distributed multi-UAV platform without external global localization.
Figures & tables
Fig. 1: Experimental verification of formation flight using three UAVs without external localization systems (e.g., GPS or motion capture). (a) The swarm traverses a dense obstacle region under wind disturbances. The orange arrows indicate the direction of information flow among the UAVs, where the communication topology of the formation at the current instant is a directed graph. (b) Visualization of online mapping and MPC outputs. The purple lines indicate the formation reference trajectories of the UAVs computed from relative states, while the red lines represent the predicted trajectories satisfying flight constraints including obstacle avoidance.
Fig. 2: System overview of the proposed distributed framework. On each UAV, Swarm-LIO2 [ 37 ] fuses onboard LiDAR, inertial measurement unit (IMU), mutual teammate observations, and wireless network data to estimate the ego state ( pi[k],vi[k],qi[k] ) and neighboring states ( pj[k],vj[k] ). Meanwhile, clustered LiDAR point clouds are used for obstacle extraction to construct CBF-based obstacle-avoidance constraints. Neighboring relative states drive the local reference model to generate the reference position zi[k] and velocity zvi[k] , yielding the tracking errors ei[k] and evi[k] for the local MPC. In addition, a Kalman filter predicts neighboring UAV motions for priority-based inter-UAV collision-avoidance constraints. Finally, a high-gain disturbance observer (HGDO) estimates the lumped translational disturbance d^i for feedforward compensation, and the attitude controller converts the compensated acceleration command uMPCi−d^i into Tcmdi and ωcmdi for the PX4 rate controller.
Fig. 3: Top-view illustration of the tightened CBF constraint. The colored dots represent the clustered obstacle point cloud. The inner blue ellipsoid denotes the obstacle-avoidance ellipsoid in ( 14 ), while the outer green ellipsoid represents the tightened safety boundary corresponding to ( 19 ). By reserving a safety margin of radius 21h2dˉi , the tightened CBF constraint prevents safety violations along the MPC predicted trajectory under the one-step deviation Δpi .
Fig. 4: Illustration of the predictive inter-UAV collision-avoidance constraints. (a) The lower-priority green UAV actively avoids the red UAV’s predicted collision-avoidance ellipsoids Uij[k+l] (shown in orange), whereas the red UAV does not actively evade. The red and purple lines denote the optimized and formation reference trajectories, respectively. (b) Relationship among the collision region Cint , position prediction uncertainty Cij[k+l] , and outer ellipsoid Uij[k+l] .
Fig. 5: Autonomous UAV platform and onboard hardware components used in the experiments.
Parameter
Value
Parameter
Value
γ
5
α1
1
Wei
diag[10,10,10,1,1,1]
α2
1
Wui
diag[0.1,0.1,0.1]
α3
0.12
h
0.1s
λo
0.5
N
10
dˉi
0.5m/s2
Np
5
TABLE I: Controller Parameters
Method
Avg. Len. (m)
Min. Dist. (m)
Comm. Load (KB/s)
DMPC [ 41 ]
12.64
0.58
9.60
BVC [ 46 ]
17.52
1.13
0.48
Ours
14.42
0.66
0.96
TABLE II: Performance Comparison of Inter-UAV Collision-Avoidance Algorithms
Fig. 6: Comparison of collision-avoidance behaviors of DMPC, BVC, and the proposed method.
Fig. 7: Comparison of formation convergence between Swarm Formation and the proposed method. Top: UAV trajectories and resulting formations. Bottom: formation error over time.
Fig. 8: Comparison of formation maintenance performance between Swarm Formation and the proposed method in an obstacle-rich environment. Top: UAV trajectories in an obstacle-rich environment. Bottom: formation error over time.
Fig. 9: Comparison of formation flight performance with and without the disturbance observer under wind disturbances. The orange arrow indicates the desired formation direction, while the blue arrow represents the wind disturbance direction.
Fig. 10: Comparison of collision-avoidance performance with and without CBF-based constraints under wind disturbances. The orange curves represent the UAV flight trajectories, and the blue arrows indicate the wind direction.
Method
Avg. Min. Dist. (m)
Avg. Path Len. (m)
Avg. Control Effort
With CBF
0.69
18.10
2014.51
Without CBF
0.57
18.89
2025.77
TABLE III: Ablation Results of CBF under Wind Disturbances
Fig. 11: Nine-UAV formation reconfiguration and obstacle avoidance under switching directed communication topologies in a Gazebo simulation environment.
Fig. 12: Outdoor formation flight experiment under switching directed topologies. (a) shows the flight trajectories during the topology switching process. (b), (c), and (d) show the UAV formations and corresponding communication topologies for the square, diamond, and triangular configurations, respectively, where red arrows indicate the information-flow directions among UAVs. The bottom plot presents the formation error during the topology switching process.
Fig. 13: Outdoor experiment of three-UAV formation flying through a forest. (a) shows the flight trajectories, while (b) presents a real-world snapshot of the UAV formation during the flight. The bottom plot presents the formation error during the flight.
Flying in a prescribed formation in an agile manner remains a challenging problem in the field of UAVs, particularly when following highly-demanding trajectories that require flight at platform limits. We address this problem by proposing a novel decentralized approach to formation flight along a given path that integrates formation maintenance into the MPCC framework, allowing UAVs to adapt their progression along complex paths while respecting individual dynamic constraints and maintaining the desired formation. To this end, we introduce a novel reparametrization and synchronization method for dynamic formation geometries together with a decentralized approach to determine the desired positions for the individual UAVs. The proposed approach allows the formation to coordinate high-speed path following without compromising formation integrity. The proposed approach is validated through extensive simulation and real-world experiments involving scenarios with varying complexity of paths and changes of required formation shape on the fly. In comparison to time-parameterized trajectory tracking, we demonstrate improved formation maintenance by 65% in high-speed flight with velocities up to 21 m/s, while achieving comparable times required to reach the goal.
Aditya Dandwate, Vit Kratky, Parakh M. Gupta +2
Multi-robot Systems Group, Faculty of Electrical Engineering, Czech Technical University in Prague, Czech Republic
Accurate 4D trajectory prediction and closed-loop tracking are essential for Unmanned Aerial Vehicle (UAV) swarms to achieve safe and efficient operations in complex low-altitude environments such as urban airspaces, industrial sites, and indoor facilities. However, this task remains challenging due to intrinsic nonlinearity of UAV swarm dynamics and strict real-time constraints of swarm formation control. To address these challenges, we propose a unified framework that couples coarse-to-fine trajectory forecasting with uncertainty-aware Distributed Nonlinear Model Predictive Control (DNMPC). Our approach features two key innovations: 1) a dimension-decoupled trajectory prediction module that reduces computational complexity by forecasting axis-wise motion, and 2) a diffusion-based residual dynamics refinement module that captures temporally correlated dynamic uncertainties. These refined predictions are then integrated into a DNMPC loop to ensure formation stability. We also introduce a synchronized multi-scenario 4D UAV swarm dataset spanning six representative airspace scenarios. The dataset contains over 7,900 frames of synchronized three-UAV trajectories with frame-level annotations of speed intention and target sector. Extensive experiments demonstrate that our approach outperforms state-of-the-art baselines, reducing trajectory tracking error by up to 10-15% and achieving sub-0.07,m average tracking error in complex urban and industrial environments, while maintaining real-time inference speeds of 34 FPS (sub-30 ms latency) suitable for agile flight.
Tianshun Li, Hongliang Lu, Haoang Li +1
The Hong Kong University of Science and Technology (Guangzhou), China · Southern University of Science and Technology, China and MoSense Technologies, China
Autonomous UAV swarms require scalable coordination mechanisms that maintain mission performance under limited communication, environmental uncertainty, and component failures. Centralized approaches provide global coordination but suffer from communication bottlenecks and single-node vulnerabilities, whereas fully decentralized methods often lack mission-level consistency. This paper presents Layered Autonomous Edge Intelligence (LAEI), a UAV-swarm framework that combines onboard learned policies with lightweight mission-level supervision. Each UAV performs local perception, obstacle avoidance, and action selection onboard, while the supervisory layer provides adaptive goal reassignment, fault-aware recovery, and context-dependent policy guidance without directly controlling low-level actions. LAEI further incorporates recovery strategies, including dynamic reassociation, backup supervisory support, and fallback local autonomy, to maintain mission continuity under representative failure scenarios. We evaluate LAEI in simulated UAV-swarm scenarios using mission completion time, collision rate, and coverage efficiency. The results show that LAEI reduces mission completion time and improves operational efficiency while maintaining collision-aware distributed UAV-level decision-making.
Changmin Park, Wooyong Jung, Hwangnam Kim
School of Electrical Engineering Korea University Seoul 02841, Korea