The concept of the drone swarm, or drone formation, has evolved from science fiction to a tangible frontier in robotics and aerospace. As a researcher deeply immersed in this field, I have observed a paradigm shift from centralized, globally-informed control strategies to decentralized, perceptually-limited autonomous systems. The core challenge, and the focus of much of my work, lies in enabling a cohesive drone formation to navigate complex, obstacle-ridden environments using only local sensory data—a scenario mirroring real-world operations where full environmental awareness is a luxury. This article delves into the architectural and algorithmic heart of a promising solution: a deep reinforcement learning (DRL) framework for autonomous drone formation obstacle avoidance.
The traditional toolkit for drone formation navigation—encompassing artificial potential fields, genetic algorithms, and fuzzy logic—often stumbles when faced with partial observability. These methods typically presuppose a god’s-eye view of the operational theater, knowing the location of every threat and barrier in advance. In contested or unknown environments, this is an untenable assumption. My exploration, therefore, centers on endowing each agent within a drrone formation with the cognitive ability to make intelligent, sequential decisions based on its immediate surroundings, learning complex collision-avoidance policies through continuous interaction with a simulated world.

At the foundation of any control strategy lies the dynamical model of the agent. For a fixed-wing drone in a drone formation, we model its kinematics in a North-East-Down (NED) ground coordinate system. The position $\mathbf{p} = [p_x, p_y, p_z]^T$ and velocity $\mathbf{v} = [v_x, v_y, v_z]^T$ are governed by the flight path angle $\gamma$ and heading angle $\chi$:
$$
\begin{aligned}
\dot{p}_x &= v \cos\gamma \cos\chi, \\
\dot{p}_y &= v \cos\gamma \sin\chi, \\
\dot{p}_z &= v \sin\gamma.
\end{aligned}
$$
The acceleration $\mathbf{a} = [a_x, a_y, a_z]^T$ is derived from the time derivatives of speed, flight path angle, and heading, filtered through a first-order guidance model that tracks commanded inputs $v_c$, $\gamma_c$, and $\chi_c$:
$$
\begin{bmatrix} a_x \\ a_y \\ a_z \end{bmatrix} =
\begin{bmatrix}
\cos\gamma \cos\chi & -v \sin\gamma \cos\chi & -v \cos\gamma \sin\chi \\
\cos\gamma \sin\chi & -v \sin\gamma \sin\chi & v \cos\gamma \cos\chi \\
\sin\gamma & v \cos\gamma & 0
\end{bmatrix}
\begin{bmatrix} \dot{v} \\ \dot{\gamma} \\ \dot{\chi} \end{bmatrix},
\quad \text{where} \quad
\begin{aligned}
\dot{v} &= (v_c – v)/\tau_1, \\
\dot{\gamma} &= (\gamma_c – \gamma)/\tau_2, \\
\dot{\chi} &= (\chi_c – \chi)/\tau_3.
\end{aligned}
$$
The central innovation in addressing the drone formation problem under local perception is a hierarchical decomposition combined with consensus theory. The swarm is segmented into a single leader and multiple followers. The leader’s mission is clear: navigate to a fixed, known target location. The followers, however, have a dynamic objective: to maintain formation by tracking a moving target point, which is essentially their desired relative position to the leader and other neighbors.
This moving target is not pre-programmed but is elegantly calculated in real-time using a discrete-time consensus algorithm over a defined communication graph $\mathcal{G}$. Let the communication status matrix be $\mathbf{S}_{N \times N}$, where $s_{ij}=1$ if drone $j$ can transmit to drone $i$. We compute a graph distance $d_i$ for each drone from the leader and an information decay factor $\eta \in (0,1)$. The normalized communication weight $w_{ij}$ for follower $i$ listening to neighbor $j$ is proportional to $\eta^{d_j}$. The follower’s target position $\mathbf{p}^t_i(k)$ and velocity $\mathbf{v}^t_i(k)$ for the next time step are then a weighted consensus of its neighbors’ current states:
$$
\mathbf{p}^t_i(k) = \sum_{j=1}^{N} w_{ij} \mathbf{p}_j(k), \quad \mathbf{v}^t_i(k) = \sum_{j=1}^{N} w_{ij} \mathbf{v}_j(k).
$$
This elegant mechanism allows the drone formation shape to be implicitly defined by the communication topology and weights, enabling fluid adaptation without a rigid, pre-defined geometric pattern.
Transforming the multi-agent problem into a tractable learning scenario is key. The complexity of training a joint policy for an entire drrone formation is immense. Our strategy simplifies this: we first train a single DRL agent (the leader) to perform obstacle avoidance towards a fixed target. This trained policy is then used as a foundation and a guiding beacon for training the follower agents, which must now track a moving target (the leader’s derived position) while avoiding obstacles. This sequential curriculum learning approach significantly reduces the sample complexity and training instability often associated with multi-agent DRL.
The design of the neural network controller’s input (observation space) is critical for performance. For both leader and follower in the drone formation, the observation includes self-state, target state, and obstacle state. The key difference lies in the target state: the leader observes a static target point, while the follower observes a dynamic target comprising position, velocity, and estimated acceleration of its consensus-derived goal.
| Component | Leader Agent | Follower Agent |
|---|---|---|
| Self-State | $\mathbf{S}_1^L = \mathbf{S}_1^F = [k, \mathbf{p}^T, \mathbf{v}^T, \mathbf{u}^T, \gamma, \chi]$ | |
| Target State | $\mathbf{S}_2^L = [p^t_x, p^t_y, p^t_z]$ (Fixed) | $\mathbf{S}_2^F = [\mathbf{p}^{t^T}, \mathbf{v}^{t^T}, \mathbf{a}^{t^T}]$ (Moving) |
| Obstacle State | $\mathbf{S}_3^L = \mathbf{S}_3^F = [\mathbf{o}_1, r_{o1}; …; \mathbf{o}_6, r_{o6}]$ (6 nearest obstacles) | |
The action space for both is the triplet of guidance commands: $v_c$, $\gamma_c$, and $\chi_c$, with ranges tailored to their roles (e.g., followers have a higher maximum speed to allow for catching up).
Perhaps the most intricate part of engineering a successful DRL agent for drone formation navigation is the reward function. Sparse rewards (e.g., reward only upon success) are notoriously difficult to learn from. We construct a dense, continuous reward function $R$ by combining several shaped rewards, each addressing a specific aspect of the desired behavior for the drone formation.
$$
R = w_1 R_1 + w_2 R_2 + w_3 R_3 + w_4 R_4 + w_5 R_5 + w_6 R_6
$$
| Component | Purpose | Mathematical Formulation |
|---|---|---|
| Arrival Reward $R_1$ | Encourage reaching the goal efficiently. | $R_1 = \sum_i r_i \cdot \mathbb{1}(d < d_i) + r_t(k_{max}-k)$ |
| Obstacle Proximity Penalty $R_2$ | Inspired by APF, penalize closeness to obstacles/ground. | $R_2 = -\frac{1}{2}\varepsilon\left(\frac{1}{d_{obs}} – \frac{1}{d_{safe}}\right)^2$ if $d_{obs} \leq d_{safe}$ |
| Collision Penalty $R_3$ | Strong penalty for physical collision. | $R_3 = -C$ (large constant) |
| Guidance Reward $R_4$ | Align agent’s acceleration with a LQR-based tracking law. | $R_4 = -k_g \cdot \text{angle}(\mathbf{a}, \mathbf{u}_{ref})$ |
| Distance Progress $R_5$ | Reward/penalize moving closer/further from target. | $R_5 = k_d \cdot (d_{last} – d_{current})$ |
| Straggler Penalty $R_6$ (Followers) | Penalize falling too far behind the formation. | $R_6 = -k_f \cdot d_{target} \cdot \mathbb{1}(d_{target} > r_f)$ |
The training process for this drone formation system is conducted in a large-scale, cluttered simulation environment. We populate a 10km x 10km x 3km volume with numerous static and dynamic spherical obstacles. A communication topology is defined, such as one with a leader and four followers connected in a specific graph pattern. The consensus algorithm uses this graph and a decay factor (e.g., $\eta=0.9$) to calculate the dynamic weights and target points for each follower in real-time.
The training curves tell a compelling story. The leader’s learning process, aiming for a fixed point, shows relatively stable and convergent cumulative reward. The followers’ training, however, is noisier. This is expected and insightful: followers are learning a harder task (tracking a moving target) and their training stability is directly coupled to the leader’s imperfect performance, as the leader itself does not succeed in every episode. This interdependence is a fundamental characteristic of layered learning in a drone formation. Despite the noise, the policies converge. Post-training evaluation over hundreds of randomized episodes yields a success rate—defined as the entire formation reaching the destination zone—of approximately 0.72, with the leader succeeding alone around 91% of the time.
The emergent behavior is fascinating. The drone formation does not maintain a rigid, geometric pattern like a V-shape or a diamond. Instead, it exhibits a fluid, adaptive morphology. As the swarm weaves through obstacles, followers dynamically adjust their relative positions based on the local consensus calculation and their own obstacle avoidance decisions. The 3D trajectories are interwoven and responsive, demonstrating a form of collaborative autonomy where global order arises from local rules—the very essence of an intelligent swarm.
Analyzing the control commands reveals the pragmatism of the learned policy. The leader often commands near-maximum speed, learning that velocity is crucial for mission efficiency. Control inputs remain generally smooth but exhibit sharp, purposeful corrections when an imminent obstacle is detected. The followers’ commands, while noisier, broadly correlate with the leader’s maneuvers, ensuring cohesive movement of the drone formation.
In conclusion, the integration of deep reinforcement learning with leader-follower consensus strategies presents a robust and promising framework for autonomous drone formation navigation under local perception constraints. This approach successfully decouples the complex multi-agent problem, leverages shaped rewards to guide learning, and results in adaptive, collision-aware swarm behavior. The path forward involves scaling to larger formations, incorporating more realistic sensor and communication models, and handling more diverse obstacle types. The journey towards truly intelligent, resilient, and fully autonomous drone formations is well underway, built upon such foundational interdisciplinary work that marries control theory, graph theory, and machine learning.
