SwarmDiff: Swarm Robotic Trajectory Planning in Cluttered Environments via Diffusion Transformer
Kang Ding, Chunxuan Jiao, Yunze Hu, Kangjie Zhou, Pengying Wu, Yao Mu, Chang Liu
TL;DR
This work tackles scalable trajectory planning for large swarms in obstacle-dense environments where traditional methods struggle with cost and safety. It proposes SwarmDiff, a hierarchical framework that models the swarm as a time-varying PDF $\chi(x,t)$ represented as a Gaussian Mixture $\chi(x,t)=\sum_{j=1}^{N_k} \omega_j^k g_j^k$ and uses a Diffusion Transformer to generate a macroscopic path, subsequently deriving microscopic control through density mapping and distributed MPC. The method couples diffusion-based sampling with optimal transport via a cost-gradient guidance framework that includes CVaR for collision risk, Wasserstein distance for transport, and a Gaussian Process cost for smoothness, plus an LP to fuse DiT outputs into a globally consistent GMM trajectory. Extensive simulations and real-world experiments with 10 robots demonstrate improved computational efficiency, trajectory validity, and scalability compared with baselines, highlighting SwarmDiff’s practical applicability to large-scale swarm coordination.
Abstract
Swarm robotic trajectory planning faces challenges in computational efficiency, scalability, and safety, particularly in complex, obstacle-dense environments. To address these issues, we propose SwarmDiff, a hierarchical and scalable generative framework for swarm robots. We model the swarm's macroscopic state using Probability Density Functions (PDFs) and leverage conditional diffusion models to generate risk-aware macroscopic trajectory distributions, which then guide the generation of individual robot trajectories at the microscopic level. To ensure a balance between the swarm's optimal transportation and risk awareness, we integrate Wasserstein metrics and Conditional Value at Risk (CVaR). Additionally, we introduce a Diffusion Transformer (DiT) to improve sampling efficiency and generation quality by capturing long-range dependencies. Extensive simulations and real-world experiments demonstrate that SwarmDiff outperforms existing methods in computational efficiency, trajectory validity, and scalability, making it a reliable solution for swarm robotic trajectory planning.
