Trajectory planning for UAV navigation in dynamic environments with matrix alignment Dijkstra

Jinyang Wang, Yuhua Li, Ruixuan Li, Hao Chen, Kejing Chu

Abstract

The trajectory planning for UAVs in dynamic environments is a challenging task involving restrictions like dynamic terrain collision, no-fly zones, and fuel criteria. To achieve optimal and efficient paths, we introduce the Extended Hierarchical Graph (EHG) to model unexplored dynamic grid environments and convert weather conditions into passability coefficients. We propose Matrix Alignment Dijkstra (MAD), a forward-exploration and backward-navigation algorithm that utilizes matrix alignment operations to simulate parallel exploration across cells. This process is accelerated on a GPU, allowing for single-run path planning from one source to multiple targets. Validation on real weather datasets demonstrates competitive efficiency and accuracy, particularly in large-scale dynamic environments.

Introduction

Planning safe trajectories for Unmanned Aerial Vehicles (UAVs) requires navigating "living" environments where weather patterns shift and no-fly zones activate in real-time. Traditional sequential algorithms like Dijkstra or A* often face a "sequential bottleneck" in large-scale 3D dynamic spaces, leading to computational delays or unsafe simplifications. Matrix Alignment Dijkstra (MAD) addresses this by reimagining pathfinding as a series of parallel matrix operations, leveraging GPU acceleration to navigate complex environments thousands of times faster than traditional methods.

Methodology: EHG and MAD

The proposed solution consists of two primary components: the Extended Hierarchical Graph (EHG) and the Matrix Alignment Dijkstra (MAD) algorithm.

Extended Hierarchical Graph (EHG)

The EHG is a high-dimensional matrix incorporating time as a dimension. It transforms raw environmental data, such as wind speed from meteorological forecasts, into "passability coefficients." These coefficients represent the probability of safe passage through a specific cell at a specific time. To ensure spatial consistency, 3D-CNN kernels are employed to account for the conditions of neighboring cells when calculating safety scores.

Matrix Alignment Dijkstra (MAD)

MAD shifts the paradigm from node-by-node search to parallel matrix transformations. By using matrix alignment operations, the algorithm shifts the current "exploration matrix" in all passable directions simultaneously. A Hadamard product (element-wise multiplication) between these shifted matrices and the EHG’s passability data allows for the simultaneous calculation of safety for all possible next steps across the entire grid.

The Matrix Alignment Dijkstra (MAD) workflow, illustrating the transition from an unexplored environment to the EHG and the subsequent forward exploration and backward navigation phases.

This approach effectively moves the computational load from the CPU to the GPU. Because the algorithm processes the entire grid in parallel, its runtime is strictly correlated with the length of the final path rather than the total number of nodes in the environment.

Visualization of the matrix alignment operation, where time-varying environmental layers are mapped onto a grid for parallel processing.

Experimental Evaluation

The researchers evaluated MAD using three distinct datasets: a real-world weather dataset from the Met Office, artificial maze data generated via Randomized Prim’s algorithm, and standard grid-based pathfinding benchmarks.

Key Results

MAD demonstrated significant performance gains over traditional methods:

  • Computational Speed: In a dynamic weather simulation with 13 million search states, MAD completed planning in 11.47 seconds, compared to over 6 hours (22,654 seconds) for standard Dijkstra.
  • Safety and Accuracy: MAD achieved a safety degree of 0.8981, outperforming improved 3D-A* variants (0.7908).
  • Scalability: On a 2000x2000 grid, MAD was approximately 3.3x faster than multi-threaded Dijkstra variants.

Conclusion and Future Work

MAD provides a powerful framework for global trajectory planning in dynamic, large-scale environments. By treating pathfinding as a signal processing task, it breaks the sequential bottleneck inherent in traditional graph search. Future research will focus on extending the algorithm to handle multi-UAV coordination, incorporating more complex aerodynamic constraints, and expanding movement options beyond 8-way grid connectivity.

Summary updated

BibTeX
@inproceedings{wang2022trajectory,
  author = {Jinyang Wang and Yuhua Li and Ruixuan Li and Hao Chen and Kejing Chu},
  title = {{Trajectory planning for UAV navigation in dynamic environments with matrix alignment Dijkstra}},
  booktitle = {Research},
  year = {2022},
  doi = {10.21203/rs.3.rs-1452700/v1},
}
Figure