-Navigation through narrow and irregular gaps is an essential skill in autonomous drones for applications such as inspection, search-and-rescue, and disaster response. However, traditional planning and control methods rely on explicit gap extraction and measurement, while recent end-to-end approaches often assume regularly shaped gaps, leading to poor generalization and limited practicality. In this work, we present a fully vision-based, end-to-end framework that maps depth images directly to control commands, enabling drones to traverse complex gaps within unseen environments. Operating in the Special Euclidean group SE(3), where position and orientation are tightly coupled, the framework leverages differentiable simulation, a Stop-Gradient operator, and a Bimodal Initialization Distribution to achieve stable traversal through consecutive gaps. Two auxiliary prediction modules-a gap-crossing success classifier and a traversability predictor-further enhance continuous navigation and safety. Extensive simulation and real-world experiments demonstrate the approach's effectiveness, generalization capability, and practical robustness.
Figures & tables
Fig. 1: Visualization of the training and real-world evaluation: The top row shows depth image sequences collected during training; the middle row shows depth images captured by the real drone during execution; the bottom row illustrates the real-world trajectory, where the drone first flies through a regular gate similar to the training scenarios and then successfully navigates an irregular, previously unseen gap, demonstrating the policy’s generalization ability.
Fig. 2: System Overview. An end-to-end policy maps depth images directly to control commands and is trained via differentiable simulation, enabling direct back-propagation of task losses to the network. A gap-crossing detection module resets the policy hidden state to support continuous multi-gap traversal, while a traversability prediction module improves safety in challenging environments. A bimodal initialization distribution stabilizes training and enhances robustness across successive gaps.
Fig. 3: Mesh-based depth renderer. A high-speed CUDA-based renderer generates depth images from mesh geometries. Domain randomization is applied by perturbing the angles and corner vertices, producing diverse gap configurations for training.
Fig. 4: AirSim Simulation environments. (a) Single-gap scenario, where the quadrotor flies through a single tilted gap. (b) Multi-gap scenario, where the quadrotor sequentially flies through multiple tilted gaps. (c) Wall-mounted gap scenario, where a square opening is embedded in a planar wall.
Fig. 5: Baseline comparison in AirSim. We compare our end-to-end vision-based policy with two baselines using two depth inputs: ground-truth (GT) and Semi-Global Matching (SGM). Baselines are: (1) a PPO-based policy with edge-drawing front-end, and (2) a state-of-the-art vision-based navigation method [ 5 ] .
Gap Tilt
Position Error [m]
Attitude Error [°]
OURS
W/O SG
PM
OURS
W/O SG
PM
0–30°
0.12
0.16
0.19
3.1
4.4
2.8
30–60°
0.15
0.46
0.16
9.4
28.1
10.0
60-80°
0.14
1.14
0.16
11.1
55.0
26.3
TABLE I: Average Errors under Different Gap Tilts
Fig. 6: Ablation study on the impact of BIO and state reset. (a-b) Average position and attitude errors across three consecutive gaps. (c-d) Trajectory comparison for validating BIO and gap-crossing prediction.
Fig. 7: Real-world quadrotor experiments in diverse environments. Top left: regular gaps with varying tilt angles. Top right: irregular gaps, including a half-masked ring, an irregular hole, tiled trees, and a partially occluded door. The success rate (SR) is annotated on each subplot.
Fig. 8: Evaluation of the traversability prediction module on the real quadrotor. The quadrotor first successfully traverses the gap, while the predicted traversability score remains high. When the target gap is switched to an irregular hole partially occluded by an obstacle, the predicted score drops sharply, triggering an emergency stop.
Fig. 9: Additional experiments. Left: average trajectories under different target direction noise levels. Right: PR curves of the collision traversability predictor under different model sizes.
Traversing narrow gaps is challenging for autonomous quadrotors, especially when control commands come directly from high-dimensional visual observations. Existing end-to-end methods often rely on behavior cloning or full-rollout backpropagation through time (BPTT) via differentiable simulation, which can limit policy performance or incur high training costs. We propose a two-stage reinforcement learning framework for more efficient ego-centric visuomotor gap-traversal policy training, leveraging quasi-analytical policy gradients (QPG) via differentiable simulation and critic warm-starting. The framework utilizes QPG to avoid backpropagation through visual rendering, reducing computation and memory costs while improving sample efficiency. In the first stage, an expert actor and critic are trained using privileged observations, including gap geometry. Unlike prior gap-traversal approaches, our training utilizing QPG does not require resetting the agent along optimized reference trajectories. In the second stage, a visual policy is trained using binary gap masks from two ego-centric cameras and low-dimensional observations, while its privileged critic is warm-started from the first stage. This substantially improves training efficiency and traversal success compared with cold-starting the critic or using full-rollout BPTT. Our framework does not require retraining the expert actor when system parameters change, enabling more efficient generalization across drone platforms than state-of-the-art visual gap-traversal methods based on action supervision. The learned visual policy also generalizes to gaps with unseen shapes. Extensive real-world experiments further demonstrate robust gap traversal using binary masks rendered online. Beyond gap traversal, the proposed framework is generic and can be extended to other visuomotor robot learning tasks.
Vision-based Unmanned Aerial Vehicles (UAVs) often suffer from navigation failures in dead ends due to limited sensing accuracy and range. To address this challenge, this paper proposes a systematic solution for efficient dead-end prediction and avoidance. The proposed method introduces a lightweight neural network to predict the relative distance and bearing of potential dead ends within the current field of view using RGB-D inputs. These predictions prune a predefined, compact trajectory library, enabling the planner to proactively avoid dead ends while maintaining navigational smoothness. Notably, our approach transfers across real-world scenarios without manual annotation or fine-tuning on real-world data. The system achieves high-frequency replanning at 50 Hz onboard. Extensive simulation benchmarks demonstrate superior performance in success rate, flight time, and trajectory length, and real-world experiments further validate its effectiveness in complex scenarios.
Ruibin Zhang, Lun Pan, Zelong Xia +2
Institute of Cyber-Systems and Control, College of Control Science and Engineering, Zhejiang University, Hangzhou 310027, China. · Huzhou Institute of Zhejiang University, Huzhou 313000, China. · University of Electronic Science and Technology of China, Chengdu 611731, China. +1
Obstacle avoidance is a fundamental vision-based task essential for enabling quadrotors to perform advanced applications. When planning the trajectory, existing approaches both on optimization and learning typically regard quadrotor as a point-mass model, giving path or velocity commands then tracking the commands by outer-loop controller. However, at high speeds, planned trajectories sometimes become dynamically infeasible in actual flight, which beyond the capacity of controller. In this paper, we propose a novel end-to-end policy that directly maps depth images to low-level bodyrate commands by reinforcement learning via differentiable simulation. The high-fidelity simulation in training after parameter identification significantly reduces all the gaps between training, simulation and real world. Analytical process by differentiable simulation provides accurate gradient to ensure efficiently training the low-level policy without expert guidance. The policy employs a lightweight and the most simple inference pipeline that runs without explicit mapping, backbone networks, primitives, recurrent structures, or backend controllers, nor curriculum or privileged guidance. By inferring low-level command directly to the hardware controller, the method enables full flight envelope control and avoids the dynamic-infeasible issue.Experimental results demonstrate that the proposed approach achieves the highest success rate and the lowest jerk among state-of-the-art baselines across multiple benchmarks. The policy also exhibits strong generalization, successfully deploying zero-shot in unseen, outdoor environments while reaching speeds of up to 7.5m/s as well as stably flying in the super-dense forest. This work is released at https://github.com/Fanxing-LI/avoidance.
Fanxing Li, Shengyang Wang, Yuxiang Huang +5
Shanghai Jiao Tong University · Kunshan Duke University