This simulation models Tactical Conflict Resolution for a grid-based urban airspace where aircraft (represented as 2D point-mass vehicles) travel along orthogonal corridors. The core logic implements Control Barrier Functions (CBFs) to modulate vehicle speeds and maintain safe separation at intersections. The control is centralised and ground-based, making it ideal for UAS Traffic Management systems operating in structured low-altitude corridors.
Let:
-
$i, j \in [1, \ldots, N ]$ index the vehicles -
$\mathbf{p}_i(t) \in \mathbb{R}^2$ : position of vehicle i at time t -
$s_i(t) \in \mathbb{R}$ : scalar path parameter for vehicle i -
$v_i(t) = \dot{s}_i(t)$ : scalar speed of vehicle i -
$\mathcal{L}_{ij} = |\mathbf{p}_i(t) - \mathbf{p}_j(t)|^2 - d^2$ : safety constraint, with$d > 0$ as the loss-of-separation threshold
A Control Barrier Function (CBF) is defined for each conflicting pair
To ensure safety, we enforce the CBF condition:
where
The goal is to find an admissible control (speed)
Initialises the simulation, runs each timestep, and visualises the result.
Encapsulates simulation logic:
- Detects potential conflicts
- Computes feasible speed intervals
$[LB_i, UB_i]$ - Applies clipped speed control:
$v_i(t) = \text{clip}(v_{\text{nominal}}, LB_i, UB_i)$
Holds the LoS threshold and the gain
Tracks scalar path positions, previous velocities, and full position histories.
Defines a structured grid of flight paths. Horizontal and vertical vehicles are assigned based on their index.
Only orthogonal vehicles may conflict (horizontal vs vertical).
Each vehicle computes its arrival time at the intersection:
A conflict is resolved only if
The CBF condition then yields a linear constraint on
The plot includes:
- Corridor boundaries as dashed lines
- Real-time vehicle positions
- Vehicle markers with unique colours
- An animated playback of the simulation
python3 controlBarrierFunction.pyEnsure dependencies are installed:
pip install numpy matplotlibThis implementation demonstrates a discrete-time, single-integrator CBF method for tactical deconfliction in urban airspace corridors. It is suitable for fast-time simulation and evaluation of centralised ground-based safety nets in UTM.
Frémond, R. (2025). Centralised Tactical Conflict Resolution Using Control Barrier Functions in Grid-Based Airspace. Internal Project Note.
Keywords: Control Barrier Function, Tactical Conflict Resolution, Unmanned Aircraft System Traffic Management (UTM), Separation Assurance, Grid-Based Airspace.