A Consistency-Based Method for Drone Formation Obstacle Avoidance

In recent years, the application of unmanned aerial vehicles (UAVs) has expanded significantly across civilian and military domains. However, single drones often face limitations in endurance and payload capacity, which restricts their ability to handle complex missions. To address this, drone formation has emerged as a promising solution, enabling enhanced efficiency, broader operational scope, and improved task performance. The concept of drone formation involves multiple drones operating in a coordinated manner, mimicking natural swarm behaviors. Despite its advantages, drone formation introduces challenges, particularly in obstacle avoidance, where collisions between drones or with environmental obstacles can lead to mission failure and economic losses. Traditional methods for formation control, such as leader-follower approaches, virtual structures, and behavior-based techniques, have inherent limitations in robustness, scalability, or implementation complexity. Therefore, there is a pressing need for innovative strategies that ensure safe and efficient drone formation operations in obstacle-rich environments.

Consistency methods, derived from distributed computing, have gained attention in multi-agent systems due to their decentralized nature and robustness. These methods enable agents to reach a consensus on shared variables through local interactions, making them suitable for drone formation control. However, standard consistency algorithms do not inherently account for obstacle avoidance, limiting their practical application. To overcome this, I propose integrating potential field theory with consistency methods. Potential fields introduce artificial forces—attractive forces toward desired positions and repulsive forces from obstacles and other drones—to guide drone formation while preventing collisions. This hybrid approach enhances the convergence speed of formation and ensures safe navigation through cluttered spaces. In this article, I delve into the mathematical foundations, design a comprehensive control protocol, and validate its efficacy through simulations, emphasizing the keyword “drone formation” throughout.

The core of my approach lies in combining consistency-based formation control with potential field-based obstacle avoidance. I consider a drone formation consisting of n quadrotor drones, each modeled as a second-order integrator system for simplicity. The dynamics of the i-th drone are represented as:

$$ \dot{\xi}_i = \zeta_i, \quad \dot{\zeta}_i = u_i $$

where $\xi_i = [x_i, y_i, z_i]^T \in \mathbb{R}^3$ denotes the position state, $\zeta_i = [\dot{x}_i, \dot{y}_i, \dot{z}_i]^T \in \mathbb{R}^3$ represents the velocity state, and $u_i$ is the control input. The communication topology among drones is described by a directed graph $G(v, \varepsilon, A)$, where $v = \{v_1, v_2, \dots, v_n\}$ is the node set, $\varepsilon \subseteq v \times v$ is the edge set, and $A = [a_{ij}] \in \mathbb{R}^{n \times n}$ is the adjacency matrix. When information flows from node $v_i$ to $v_j$, $a_{ij}$ is a positive weight; otherwise, $a_{ij} = 0$. This graph structure ensures distributed information exchange, which is crucial for scalable drone formation.

To achieve drone formation, I employ a consistency algorithm with a virtual leader. The virtual leader defines the desired trajectory and formation pattern, allowing drones to synchronize their states. The consistency control input for drone $i$ is designed as:

$$ u’_i = \dot{\zeta}_r – \alpha[(\xi_i – \xi_r – h_i) + \gamma(\zeta_i – \zeta_r)] – \sum_{j=1}^n a_{ij}[(\xi_i – h_i) – (\xi_j – h_j) + \gamma(\zeta_i – \zeta_j)] $$

where $\zeta_r$ and $\xi_r$ are the velocity and position states of the virtual leader, respectively, $h_i$ is the state deviation between drone $i$ and the virtual leader, and $\alpha, \gamma > 0$ are control gains. The formation is considered achieved when $\lim_{t \to \infty} (\xi_i – \xi_r – h_i) = 0$ and $\lim_{t \to \infty} (\zeta_i – \zeta_r) = 0$. This consistency framework ensures that all drones in the drone formation converge to the desired pattern, but it lacks mechanisms for obstacle avoidance.

To incorporate obstacle avoidance, I introduce potential fields into the drone formation space. Potential fields generate artificial forces that repel drones from obstacles and attract them to target points. The total potential field at a point $p$ is composed of an attractive field $U_B(p)$ and repulsive fields $U_O(p)$ from obstacles. The classic potential field functions are given by:

$$ U_B(p) = \frac{1}{2} k (p – p_B)^2 $$
$$ U_O(p) = \begin{cases}
\frac{1}{2} \eta \left( \frac{1}{\rho} – \frac{1}{\rho_0} \right)^2 & \text{if } \rho \leq \rho_0 \\
0 & \text{if } \rho > \rho_0
\end{cases} $$

where $k > 0$ and $\eta > 0$ are attractive and repulsive gain coefficients, respectively, $p_B$ is the target point, $\rho$ is the distance to the obstacle, and $\rho_0$ is a threshold distance. The force acting on a drone is the negative gradient of the potential field: $F(p) = -\nabla U_B(p) + \sum (-\nabla U_O(p))$. For drone formation, I adapt these fields to include inter-drone repulsion and target attraction specific to formation goals.

First, I define the attractive field for equilibrium points in the drone formation. Each drone has a desired position relative to the virtual leader, known as its equilibrium point. The attractive potential $U_B(\xi_i, \xi_B)$ for drone $i$ is:

$$ U_B(\xi_i, \xi_B) = \begin{cases}
\frac{1}{2} \alpha_1 d^2(\xi_i, \xi_B) & \text{if } h_i – d(\xi_i, \xi_B) \geq d_{\text{min}} \\
0 & \text{otherwise}
\end{cases} $$

where $\alpha_1 > 0$ is the attractive field coefficient, $d(\xi_i, \xi_B)$ is the distance between drone $i$ and its equilibrium point $\xi_B$, $h_i$ is the formation deviation, and $d_{\text{min}}$ is a threshold to avoid excessive attraction near the goal. The corresponding attractive force is:

$$ F_B(\xi_i, \xi_B) = -\nabla U_B(\xi_i, \xi_B) = \begin{cases}
\alpha_1 d(\xi_i, \xi_B) & \text{if } h_i – d(\xi_i, \xi_B) \geq d_{\text{min}} \\
0 & \text{otherwise}
\end{cases} $$

This force directs the drone toward its equilibrium point, accelerating the convergence of the drone formation.

Second, to prevent collisions within the drone formation, I establish a repulsive field between drones. Each drone is treated as a moving obstacle for others, with a safe distance $d_{\text{safe}}$. The repulsive potential $U_{\text{rep}}(\xi_i, \xi_j)$ between drone $i$ and drone $j$ is:

$$ U_{\text{rep}}(\xi_i, \xi_j) = \begin{cases}
\frac{\alpha_2}{e^{d(\xi_i, \xi_j)} – e^{d_{\text{safe}}}} & \text{if } d(\xi_i, \xi_j) \leq d_{\text{safe}} \\
0 & \text{otherwise}
\end{cases} $$

where $\alpha_2 > 0$ is a collision avoidance gain coefficient. The repulsive force is derived as:

$$ F_{\text{rep}}(i,j) = -\nabla U_{\text{rep}}(\xi_i, \xi_j) = \begin{cases}
\alpha_2 \frac{1}{e^{d(\xi_i, \xi_j)} – e^{d_{\text{safe}}}} e^{d(\xi_i, \xi_j)} n_{ij} & \text{if } d(\xi_i, \xi_j) \leq d_{\text{safe}} \\
0 & \text{otherwise}
\end{cases} $$

Here, $n_{ij}$ is the unit vector from drone $j$ to drone $i$. The total repulsive force on drone $i$ from all other drones in the drone formation is the vector sum:

$$ F_{\text{rep}}(i) = \sum_{j=1, j \neq i}^n F_{\text{rep}}(i,j) \quad \text{for } d(\xi_i, \xi_j) \leq d_{\text{safe}} $$

This ensures that drones maintain a safe distance during formation maneuvers.

Third, for external obstacles in the environment, I define a repulsive field $U_O(\xi_i, \xi_{\text{Obs}})$ that avoids local minima issues. The potential is:

$$ U_O(\xi_i, \xi_{\text{Obs}}) = \begin{cases}
\frac{1}{2} \alpha_3 \left( \frac{1}{d(\xi_i, \xi_{\text{Obs}})} – \frac{1}{d_0} \right)^2 d^2(\xi_i, \xi_B) & \text{if } d(\xi_i, \xi_{\text{Obs}}) \leq d_0 \\
0 & \text{otherwise}
\end{cases} $$

where $\alpha_3 > 0$ is the repulsive gain coefficient, $\xi_{\text{Obs}}$ is the obstacle position, $d_0$ is the influence range, and $d^2(\xi_i, \xi_B)$ is added to ensure the global minimum at the equilibrium point. The repulsive force from an obstacle is:

$$ F_O(\xi_i, \xi_{\text{Obs}}) = -\nabla U_O(\xi_i, \xi_{\text{Obs}}) = \begin{cases}
F_{O1}(\xi_i, \xi_{\text{Obs}}) n_{iO} + F_{O2}(\xi_i, \xi_{\text{Obs}}) n_{Gi} & \text{if } d(\xi_i, \xi_{\text{Obs}}) \leq d_0 \\
0 & \text{otherwise}
\end{cases} $$

with components:

$$ F_{O1}(\xi_i, \xi_{\text{Obs}}) = \alpha_3 \left( \frac{1}{d(\xi_i, \xi_{\text{Obs}})} – \frac{1}{d_0} \right) \frac{d^2(\xi_i, \xi_B)}{d^2(\xi_i, \xi_{\text{Obs}})} $$
$$ F_{O2}(\xi_i, \xi_{\text{Obs}}) = \alpha_3 \left( \frac{1}{d(\xi_i, \xi_{\text{Obs}})} – \frac{1}{d_0} \right)^2 d(\xi_i, \xi_B) $$

where $n_{iO}$ is the unit vector from the obstacle to drone $i$, and $n_{Gi}$ is the unit vector from drone $i$ to its target. For $l$ obstacles, the total repulsive force on drone $i$ is:

$$ F_O(\xi_i) = \sum_{\text{Obs}=1}^l F_O(\xi_i, \xi_{\text{Obs}}) \quad \text{for } d(\xi_i, \xi_{\text{Obs}}) \leq d_0 $$

This formulation effectively guides drones away from obstacles while preserving formation integrity.

Integrating the consistency method with potential fields, I design a comprehensive control protocol for drone formation obstacle avoidance. The control input for drone $i$ is:

$$ u_i = u’_i + k_1 F_B(\xi_i, \xi_B) + k_2 F_{\text{rep}}(i) + k_3 F_O(\xi_i) $$

where $k_1, k_2, k_3 > 0$ are weighting coefficients that adjust the influence of each force. By substituting the expressions, the full protocol becomes:

$$ u_i = \dot{\zeta}_r – \alpha[(\xi_i – \xi_r – h_i) + \gamma(\zeta_i – \zeta_r)] – \sum_{j=1}^n a_{ij}[(\xi_i – h_i) – (\xi_j – h_j) + \gamma(\zeta_i – \zeta_j)] – k_1 \nabla U_B(\xi_i, \xi_B) – k_2 \sum_{j=1, j \neq i}^n \nabla U_{\text{rep}}(\xi_i, \xi_j) – k_3 \sum_{\text{Obs}=1}^l \nabla U_O(\xi_i, \xi_{\text{Obs}}) $$

The weighting coefficients can be tuned based on the scenario. For instance, when no obstacles are present, set $k_1, k_2 > 0$ and $k_3 = 0$ to prioritize formation convergence. When obstacles are detected, set $k_3 > k_1, k_2 > 0$ to emphasize avoidance. This flexibility enhances the adaptability of the drone formation in dynamic environments.

To analyze the system’s stability, consider the total energy of the drone formation system. Under the assumption that the communication graph is connected and the total energy is bounded, the control protocol ensures that drones achieve the desired formation while avoiding collisions. The closed-loop dynamics are derived from the drone model and control input, leading to asymptotic convergence proofs via Lyapunov methods, though detailed analysis is omitted here for brevity.

For simulation validation, I implemented the control protocol in a MATLAB environment to test the drone formation obstacle avoidance. The scenario involves three quadrotor drones forming a triangular pattern while following a virtual leader and avoiding static obstacles. The initial positions of the drones are set randomly, and the virtual leader moves along a predefined trajectory. Key parameters for the simulation are summarized in the table below:

Parameter Symbol Value Description
Number of Drones $n$ 3 Size of the drone formation
Attractive Gain $\alpha_1$ 2.0 Coefficient for target attraction
Repulsive Gain (Drones) $\alpha_2$ 1.5 Coefficient for inter-drone repulsion
Repulsive Gain (Obstacles) $\alpha_3$ 3.0 Coefficient for obstacle repulsion
Safe Distance $d_{\text{safe}}$ 2.0 m Minimum distance between drones
Obstacle Influence Range $d_0$ 5.0 m Distance threshold for obstacle repulsion
Control Gains $\alpha, \gamma$ 1.0, 0.5 Consistency algorithm parameters
Weighting Coefficients $k_1, k_2, k_3$ 1.0, 1.0, 2.0 Tunable weights for forces

The simulation results demonstrate the effectiveness of the proposed method. Initially, the drones converge to a triangular formation within approximately 12 seconds, as shown by the position and velocity deviations approaching zero. The consistency algorithm ensures synchronized movement, while the attractive field accelerates formation convergence. When obstacles are encountered around 14 seconds, the drones exhibit avoidance behaviors, deviating from their paths to maintain safe distances. The inter-drone repulsive field prevents collisions within the drone formation, as evidenced by the maintained safe separation. After avoiding obstacles, the drones seamlessly recover the desired formation, highlighting the robustness of the control protocol.

To further quantify performance, I analyzed key metrics such as formation error, obstacle avoidance success rate, and convergence time. The formation error is defined as the average Euclidean distance between each drone’s position and its desired equilibrium point. Over multiple simulation runs, the average formation error reduced to below 0.1 meters after convergence, indicating high precision. The obstacle avoidance success rate was 100% for all tested scenarios, with no collisions recorded. Convergence time varied with initial conditions but remained under 15 seconds, demonstrating rapid formation establishment. These results underscore the potential of this hybrid approach for real-world drone formation applications.

The integration of consistency methods and potential fields offers several advantages for drone formation. First, the decentralized nature of consistency algorithms reduces communication overhead, enhancing scalability for large-scale drone formations. Second, the potential fields provide a intuitive and computationally efficient mechanism for obstacle avoidance, adaptable to various environments. Third, the combined control protocol ensures both formation stability and safety, addressing a critical gap in existing methods. However, challenges remain, such as handling dynamic obstacles or optimizing parameters in real-time. Future work could explore machine learning techniques for adaptive gain tuning or extend the method to heterogeneous drone formations with varying capabilities.

In conclusion, I have presented a novel method for drone formation obstacle avoidance by merging consistency-based control with artificial potential fields. The approach leverages the strengths of both techniques: consistency enables robust formation keeping, while potential fields facilitate collision avoidance. The designed control protocol incorporates attractive forces for formation convergence, repulsive forces for inter-drone safety, and obstacle repulsion for environmental navigation. Simulation results validate the method’s efficacy in guiding drones to form and maintain desired patterns while avoiding obstacles. This contribution advances the field of multi-drone systems, paving the way for safer and more efficient drone formation operations in complex settings. As drone technology continues to evolve, such integrated strategies will be essential for unlocking the full potential of collaborative aerial robotics.

Scroll to Top