Multi-UAV Behavior-based Formation with Static and Dynamic Obstacles Avoidance via Reinforcement Learning

Yuqing Xie, Chao Yu, Hongzhi Zang, Feng Gao, Wenhao Tang, Jingyi Huang, Jiayu Chen, Botian Xu, Yi Wu, Yu WangarXiv 2024 · DOI

Abstract

Coordinating Unmanned Aerial Vehicle (UAV) swarms requires balancing mission objectives, formation constraints, and obstacle avoidance. Traditional methods often struggle with dynamic obstacles or complex formation requirements. We present a two-stage reinforcement learning (RL) pipeline that combines reward scalarization, curriculum learning, and an attention-based observation encoder. Our approach enables a swarm to maintain precise formations while navigating environments with both stationary and unpredictable moving obstacles. Experimental results in simulation and real-world deployments demonstrate superior performance in collision-free rates and formation maintenance compared to existing baselines, achieving successful zero-shot transfer to physical hardware.

Introduction

The coordination of multiple UAVs involves competing priorities: reaching a destination (directed flight), maintaining a specific spatial arrangement (formation maintenance), and ensuring safety against environmental obstacles and inter-agent collisions. While traditional planning-based methods are effective for static environments, they often fail in dynamic scenarios where obstacle trajectories are unknown. Conversely, existing RL approaches frequently simplify the problem by neglecting formation constraints or focusing solely on static environments. This work addresses the "triple threat" of simultaneous directed flight, formation maintenance, and avoidance of both stationary columns and unpredictable moving projectiles.

Methodology

The proposed framework utilizes a two-stage RL training pipeline to navigate the high-dimensional exploration space and balance multiple objectives effectively.

  1. Reward Scalarization: To avoid manual tuning of reward weights, the authors employ a random search in a simplified scenario (3 drones, 3 dynamic obstacles). Weight vectors for flight, formation, obstacle avoidance, and action smoothness are evaluated, and the vector with the highest "satisfaction rate" is selected for full training.
  2. Curriculum Learning (CL): Agents undergo a three-period training process to handle increasing complexity: starting with obstacle-free flight, moving to static obstacle navigation, and concluding with mixed static and dynamic environments.
  3. Attention-Based Encoder: A transformer-inspired architecture using self-attention and cross-attention allows the policy to handle a varying number of agents and obstacles. This ensures permutation invariance, allowing the system to scale to different densities without retraining.
  4. Sim-to-Real Transfer: The policy outputs Collective Thrust and Body Rates (CTBR), which are more robust for transfer to real hardware than raw motor commands.
The proposed two-stage RL pipeline, illustrating reward selection, the three-period curriculum learning process, and final deployment.

Results and Evaluation

The method was evaluated using the OmniDrones simulator and validated on Crazyflie 2.0 nano-quadrotors in a motion-capture environment. The training scenarios involved "zigzag" grids of static columns and dynamic balls moving in parabolic trajectories.

Quantitative Performance

In mixed obstacle scenarios, the proposed method significantly outperformed state-of-the-art baselines like Swarm-Formation and Swarm-RL:

  • Collision-Free Rate (CFR): The proposed method achieved a 0.89 CFR, compared to R-Mader (0.20) and Swarm-RL (0.83).
  • Formation Maintenance (FM): The system maintained a much tighter formation with an error of 0.278, whereas Swarm-RL often "broke" formation to prioritize safety, resulting in an error of 0.959.
Quantitative comparison of Collision-Free Rate (CFR) and Formation Maintenance (FM) against baselines as the number of static obstacles (columns) increases.

Real-World Validation

During real-world deployment with manually thrown dynamic obstacles, the policy maintained an 0.80 CFR in mixed environments. This success demonstrates that the action-smoothing rewards and CTBR output successfully bridged the sim-to-real gap without additional fine-tuning.

Conclusion and Future Work

This research demonstrates that a structured RL pipeline combining reward searching and curriculum learning can solve complex multi-agent coordination problems. While the system currently relies on global positioning and perfect communication, future work will focus on vision-based sensing, improving communication robustness against delays, and testing in unstructured environments like forests or urban canyons.

Summary updated

BibTeX
@misc{xie2024multi,
  author = {Yuqing Xie and Chao Yu and Hongzhi Zang and Feng Gao and Wenhao Tang and Jingyi Huang and Jiayu Chen and Botian Xu and Yi Wu and Yu Wang},
  title = {{Multi-UAV Behavior-based Formation with Static and Dynamic Obstacles Avoidance via Reinforcement Learning}},
  year = {2024},
  eprint = {2410.18495},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.18495},
}
Figure