N-MPC for Deep Neural Network-Based Collision Avoidance exploiting Depth Images
Martin Jacquet, Kostas Alexis
TL;DR
The paper tackles UAV collision avoidance using onboard depth images by introducing a neural collision predictor that is embedded into a nonlinear model predictive controller (N-MPC) as a differentiable algebraic constraint. The network is trained on simulated depth data to output a collision score for 3D points, and its output is converted into a closed-form constraint within the NLP, enabling real-time optimization at 100 Hz. Validation combines a quantitative collision-classifier analysis on simulated and real images with Gazebo simulations and real flights on the Learning-based Micro Flyer, showing robust sim-to-real transfer and practical onboard performance. This approach advances sensor-based local planning by uniting perceptual processing with optimization-based control and demonstrates open-source code for reproducibility and further development.
Abstract
This paper introduces a Nonlinear Model Predictive Control (N-MPC) framework exploiting a Deep Neural Network for processing onboard-captured depth images for collision avoidance in trajectory-tracking tasks with UAVs. The network is trained on simulated depth images to output a collision score for queried 3D points within the sensor field of view. Then, this network is translated into an algebraic symbolic equation and included in the N-MPC, explicitly constraining predicted positions to be collision-free throughout the receding horizon. The N-MPC achieves real time control of a UAV with a control frequency of 100Hz. The proposed framework is validated through statistical analysis of the collision classifier network, as well as Gazebo simulations and real experiments to assess the resulting capabilities of the N-MPC to effectively avoid collisions in cluttered environments. The associated code is released open-source along with the training images.
