Hanyang Tong, Ziyang Song, Zhenyan Zhu, Jinlong Sun
Unmanned aerial vehicles (UAVs) serve as both communication relays and aerial couriers in modern urban logistics networks. Conventional trajectory optimization methods assume perfect localization and isotropic free-space tracking signal propagation, which limits their effectiveness in urban canyons. To address the positional uncertainty and signal blockage from buildings, we propose a digital twin-driven framework for continuous trajectory and resource optimization in UAV swarms. We model an urban environment containing random high-rise structures, applying a non-line-of-sight (NLoS) uncertainty to reflect realistic communication degradation. The digital twin (DT) architecture utilizes a dual-layer spatial representation that captures a dynamically decaying positional uncertainty radius of the recipient. We define a strict visual localization boundary that initiates deterministic target tracking with a state transition mechanism. To manage the complexity of swarm routing, we apply Density-Based Spatial Clustering of Applications with Noise (DBSCAN), assigning one UAV courier and one logistics transfer station to each cluster. The system executes a continuous re-optimization loop using an adaptive multi-objective Genetic Algorithm. This framework jointly minimizes cumulative outage probability and total flight time while enforcing a signal-to-noise ratio threshold and throughput constraints. This continuous adaptation mechanism mitigates NLoS blockage risks, supporting reliable communication and efficient delivery in Global Navigation Satellite System (GNSS)-degraded and obstacle-dense urban environments.