Bearing-Based Collision-Avoidance Formation Control for Quadrotor UAVs

In this work, we address the problem of bearing-based formation control for a swarm of quadrotor UAVs operating under unmodeled dynamics and external disturbances, while ensuring inter-agent collision avoidance. The China UAV research community has increasingly focused on decentralized formation strategies that rely only on locally measurable bearing angles, angular rates, and relative distances, which are crucial for scalability and robustness in GPS-denied environments. Our proposed solution integrates a parameter adaptation method with a distributed extended state observer to estimate each follower’s global position, velocity, and total disturbances. A control Lyapunov function (CLF) is then combined with a reciprocal control barrier function (RCBF) that accounts for both relative position and relative velocity to guarantee safety. We formulate a quadratic programming (QP) problem that yields optimal control inputs satisfying both convergence and safety constraints. Extensive 8-UAV simulations demonstrate that the China UAV formation can achieve the desired cubic geometry while maintaining a minimum inter-drone distance of 0.75 m, well above the 0.5 m safety threshold. Comparisons with an improved artificial potential field method confirm the superiority of our approach in tracking accuracy, disturbance rejection, and energy efficiency.

1. Problem Statement and Preliminaries

We consider a team of $N$ quadrotor UAVs comprising $n_l$ leaders and $n_f$ followers. The communication topology is described by an undirected graph $\mathcal{G}=(\mathcal{V},\mathcal{E})$, where $\mathcal{V}$ is the node set and $\mathcal{E}$ the edge set. For any UAV $i$, its neighbor set is $\mathcal{N}_i = \{j \in \mathcal{V} : (i,j) \in \mathcal{E}\}$. The bearing vector from UAV $i$ to UAV $j$ is defined as

$$
\mathbf{g}_{ij} = \frac{\mathbf{p}_j – \mathbf{p}_i}{\|\mathbf{p}_j – \mathbf{p}_i\|},
$$

and the corresponding orthogonal projection matrix is $\mathbf{P}_{ij} = \mathbf{I}_3 – \mathbf{g}_{ij}\mathbf{g}_{ij}^{\mathsf{T}}$. The desired bearing $\mathbf{g}_{ij}^*$ defines the target formation. We stack the projection matrices into a bearing Laplacian $\mathcal{L}$ as in (4), which can be partitioned into $\mathcal{L}_{ff}$, $\mathcal{L}_{fl}$, $\mathcal{L}_{lf}$, $\mathcal{L}_{ll}$.

The translational dynamics of each quadrotor are described by

$$
\begin{cases}
\dot{\mathbf{x}}_{i,1} = \mathbf{x}_{i,2}, \\[4pt]
\dot{\mathbf{x}}_{i,2} = \mathbf{u}_i + \mathbf{f}_i(\mathbf{x}_{i,1},\mathbf{x}_{i,2}) + \mathbf{d}_i(t),
\end{cases}
$$

where $\mathbf{x}_{i,1}\in\mathbb{R}^3$ is the position, $\mathbf{x}_{i,2}\in\mathbb{R}^3$ the velocity, $\mathbf{u}_i$ the control acceleration (the output of the outer-loop controller), $\mathbf{f}_i(\cdot)$ the unmodeled dynamics, and $\mathbf{d}_i(t)$ the external disturbance. The unmodeled dynamics are assumed to be parameterizable as

$$
\mathbf{f}_i(\mathbf{x}_{i,1},\mathbf{x}_{i,2}) = \boldsymbol{\Xi}_i(\mathbf{x}_{i,1},\mathbf{x}_{i,2}) \boldsymbol{\xi}_i,
$$

with known regressor $\boldsymbol{\Xi}_i$ and unknown constant parameter vector $\boldsymbol{\xi}_i$ satisfying $\|\boldsymbol{\xi}_i\|\le \bar{\xi}_i$. The external disturbance derivative is bounded, $\|\dot{\mathbf{d}}_i(t)\| \le \bar{h}_i$.

Safety is defined via the safe set $\mathcal{C}_{ij}$ between any two UAVs $i$ and $j$:

$$
\mathcal{C}_{ij} = \left\{ (\mathbf{x}_{i,1},\mathbf{x}_{i,2}) \,:\, h_{ij} \ge 0 \right\},
$$

with

$$
h_{ij} = \|\mathbf{x}_{i,1}-\mathbf{x}_{j,1}\|^2 – D_{\mathrm{safe}}^2 + \tau \left( \mathbf{x}_{i,2}-\mathbf{x}_{j,2} \right)^{\mathsf{T}} \left( \mathbf{x}_{i,1}-\mathbf{x}_{j,1} \right),
$$

where $D_{\mathrm{safe}}=0.5\,\text{m}$ is the safe distance and $\tau=0.8\,\text{s}$ is a safety time. The reciprocal control barrier function is $B_{ij}=1/h_{ij}$.

2. State‑Disturbance Estimation Framework

To obtain the estimates $\hat{\mathbf{x}}_{i,1},\hat{\mathbf{x}}_{i,2}$ and the disturbance $\hat{\mathbf{x}}_{i,3}$ (estimate of $\mathbf{x}_{i,3}=\mathbf{d}_i$), we design a distributed extended state observer (ESO) that uses only the bearing measurements and relative distances from neighbors. The observer error is defined as

$$
\begin{aligned}
\mathbf{e}_{i,1} &= \sum_{j\in\mathcal{N}_{if}} \mathbf{P}_{ij} (\hat{\mathbf{z}}_{j,1}-\hat{\mathbf{z}}_{i,1}) + \sum_{j\in\mathcal{N}_{il}} \mathbf{P}_{ij} (\hat{\mathbf{x}}_{j,1}-\hat{\mathbf{z}}_{i,1}), \\[4pt]
\mathbf{e}_{i,2} &= \sum_{j\in\mathcal{N}_{if}} \mathbf{P}_{ij} (\hat{\mathbf{z}}_{j,2}-\hat{\mathbf{z}}_{i,2}) + \sum_{j\in\mathcal{N}_{il}} \mathbf{P}_{ij} (\hat{\mathbf{x}}_{j,2}-\hat{\mathbf{z}}_{i,2}),
\end{aligned}
$$

where $\hat{\mathbf{z}}_{i,1},\hat{\mathbf{z}}_{i,2}$ are the observer states for position and velocity, and $\hat{\mathbf{x}}_{j,1},\hat{\mathbf{x}}_{j,2}$ are the known states of leaders. The observer dynamics are

$$
\begin{aligned}
\dot{\hat{\mathbf{z}}}_{i,1} &= \hat{\mathbf{z}}_{i,2} – \beta_1 \mathbf{e}_{i,1}, \\
\dot{\hat{\mathbf{z}}}_{i,2} &= \hat{\mathbf{z}}_{i,3} – \beta_2 \mathbf{e}_{i,1} + \mathbf{u}_i + \hat{\mathbf{f}}_i(\hat{\mathbf{z}}_{i,1},\hat{\mathbf{z}}_{i,2}), \\
\dot{\hat{\mathbf{z}}}_{i,3} &= -\beta_3 \mathbf{e}_{i,1},
\end{aligned}
$$

with $\beta_1,\beta_2,\beta_3>0$ to be tuned. The parameter adaptation law for the unmodeled dynamics is

$$
\dot{\hat{\boldsymbol{\xi}}}_i = \mu_i \boldsymbol{\Xi}_i^{\mathsf{T}}(\hat{\mathbf{z}}_{i,1},\hat{\mathbf{z}}_{i,2}) \mathbf{e}_{i,2} – \sigma_i \mu_i \hat{\boldsymbol{\xi}}_i,
$$

where $\mu_i>0$ and $\sigma_i>0$ are adaptive gains. Under conditions (25)–(26), the overall estimation error is uniformly bounded, as proven by the Lyapunov function

$$
V = \frac{1}{2} \tilde{\mathbf{Z}}^{\mathsf{T}} (\mathbf{P}\otimes\mathbf{I}_3) \tilde{\mathbf{Z}} + \frac{1}{2}\sum_{i=1}^{n_f} \frac{1}{\mu_i} \tilde{\boldsymbol{\xi}}_i^{\mathsf{T}} \tilde{\boldsymbol{\xi}}_i,
$$

where $\tilde{\mathbf{Z}}$ is the stacked observer error vector.

Table 1: Observer and Adaptation Parameters

Parameter Value Description
$\beta_1$ 9 Observer gain for position
$\beta_2$ 27 Observer gain for velocity
$\beta_3$ 54 Observer gain for disturbance
$\mu_i$ 2.0 Adaptation rate
$\sigma_i$ 0.15 Leakage gain

3. CLF‑RCBF Controller Design

Using the estimated states $\hat{\mathbf{z}}_{i,1},\hat{\mathbf{z}}_{i,2}$ and the desired trajectory $\mathbf{p}_i^*(t)$ obtained from a dynamic compensator (39), we define the CLF

$$
V_i = k_p \|\hat{\mathbf{z}}_{i,1} – \mathbf{p}_i^*\|^2 + k_d \|\hat{\mathbf{z}}_{i,2} – \dot{\mathbf{p}}_i^*\|^2,
$$

with $k_p=0.5$, $k_d=0.1$. The CLF constraint is

$$
L_{f} V_i + L_{g} V_i \mathbf{u}_i + c V_i \le 0,
$$

where $c=0.6$. The RCBF constraint for each neighbor pair $(i,j)$ is

$$
L_{f} B_{ij} + L_{g} B_{ij} \mathbf{u}_i – \frac{\gamma}{B_{ij}} \le 0,
$$

with $\gamma=0.02$. Both constraints are incorporated into the quadratic program

$$
\begin{aligned}
\mathbf{u}_i^* &= \arg\min \; \frac{1}{2} \mathbf{u}_i^{\mathsf{T}} \mathbf{H} \mathbf{u}_i + \mathbf{f}^{\mathsf{T}} \mathbf{u}_i, \\
\text{s.t.} \quad & \mathbf{A}_{\mathrm{clf},i} \mathbf{u}_i \le \mathbf{b}_{\mathrm{clf},i}, \\
& \mathbf{A}_{\mathrm{cbf},ij} \mathbf{u}_i \le \mathbf{b}_{\mathrm{cbf},ij}, \quad \forall j \in \mathcal{N}_i.
\end{aligned}
$$

Here $\mathbf{H}$ is chosen as the identity matrix and $\mathbf{f}=\mathbf{0}$. Feasibility is guaranteed because the RCBF constraints never become contradictory: when $\mathbf{A}_{\mathrm{cbf},ij}=0$, the inequality reduces to a constant condition that always holds; otherwise the feasible interval is nonempty.

4. Simulation Results

We simulate a China UAV swarm of 8 quadrotors (2 leaders, 6 followers) whose target formation is a cube defined by the bearing constraints listed in Table 2. The leaders follow a sinusoidal trajectory with piecewise acceleration. External disturbance is $\mathbf{d}_i(t) = [0.2\cos t,\ \sin t,\ -\sin t]^{\mathsf{T}}$ N. The unmodeled dynamics include static bias, linear damping, quadratic aerodynamic drag, nonlinear damping, ground effect, and cross‑axis coupling, with actual parameter vector $\boldsymbol{\xi}_i$ given in the paper.

Table 2: Desired Bearing Vectors for Cube Formation

Edge $\mathbf{g}_{ij}^*$ Edge $\mathbf{g}_{ij}^*$
(1,2),(4,3),(8,7),(5,6) $(0,-1,0)^{\mathsf{T}}$ (1,8),(2,7),(6,3),(5,4) $(0,0,1)^{\mathsf{T}}$
(1,5),(2,6),(7,3),(8,4) $(-1,0,0)^{\mathsf{T}}$ (1,3),(2,4) $\frac{1}{\sqrt{3}}(-1,1,1)^{\mathsf{T}}$
(5,7),(6,8) $\frac{1}{\sqrt{3}}(1,-1,1)^{\mathsf{T}}$ (1,3),(2,4) $\frac{1}{\sqrt{3}}(-1,-1,1)^{\mathsf{T}}$
(5,7),(6,8) $\frac{1}{\sqrt{3}}(1,1,1)^{\mathsf{T}}$

Three communication blackouts (5–5.5 s, 15–15.5 s, 40–40.5 s) are introduced. The simulation runs for 50 s. The estimation errors of position, velocity, and total disturbance converge quickly, as shown in the observer error curves (not displayed here due to figure references omitted). The formation tracking errors remain small after initial transients, demonstrating the effectiveness of the observer and the CLF controller.

China UAV

Safety performance is evaluated by the minimum inter‑drone distance over the entire flight. Under our RCBF‑based scheme, the minimum distance is 0.75 m, well above the 0.5 m threshold. In contrast, the improved artificial potential field method (APF) yields a minimum distance of only 0.37 m, and the scheme without any collision‑avoidance mechanism results in 0.10 m, both violating safety. Table 3 summarizes the quantitative comparison.

Table 3: Comparison of Collision Avoidance Performance

Method Min inter‑drone distance (m) Safety satisfied? Total energy consumption (J)
Proposed CLF‑RCBF 0.75 Yes 236.41
Improved APF 0.37 No 1115.23
No collision avoidance 0.10 No ―

The energy consumption of our method is 236.41 J, much lower than 1115.23 J of the APF approach, because the RCBF only activates when necessary and seldom forces aggressive maneuvers. The attitude angles and thrust values remain within physical limits (pitch/roll ≤ 30°, thrust ≤ 52.92 N), confirming the practicality of the China UAV system.

5. Conclusion

We have presented a bearing‑based formation control framework for quadrotor UAVs that simultaneously handles unmodeled dynamics, external disturbances, and collision avoidance. The key contributions are: (i) a distributed observer that estimates positions, velocities, and disturbances using only bearing information and relative distances; (ii) a CLF‑RCBF quadratic programming controller that ensures both formation convergence and inter‑drone safety; and (iii) a rigorous feasibility analysis showing that the safety constraints never lead to infeasibility. Simulation results for an 8‑UAV China UAV swarm demonstrate superior tracking accuracy, robustness to blackouts, and a minimum safe distance of 0.75 m. Future work will extend this method to large‑scale swarms with dynamic obstacles and communication delays.

Scroll to Top