Autonomous Drone Racing (ADR) was first proposed in IROS 2016. It called for the development of an autonomous drone capable of beating a human in a drone race. After almost five years, several teams have proposed different solutions with a common pipeline: gate detection; drone localization; and stable flight control. Recently, Deep Learning (DL) has been used for gate detection and localization of the drone regarding the gate. However, recent competitions such as the Game of Drones, held at NeurIPS 2019, called for solutions where DL played a more significant role. Motivated by the latter, in this work, we propose a CNN approach called DeepPilot that takes camera images as input and predicts flight commands as output. These flight commands represent: the angular position of the drone’s body frame in the roll and pitch angles, thus producing translation motion in those angles; rotational speed in the yaw angle; and vertical speed referred as altitude h. Values for these 4 flight commands, predicted by DeepPilot, are passed to the drone’s inner controller, thus enabling the drone to navigate autonomously through the gates in the racetrack. For this, we assume that the next gate becomes visible immediately after the current gate has been crossed. We present evaluations in simulated racetrack environments where DeepPilot is run several times successfully to prove repeatability. In average, DeepPilot runs at 25 frames per second (fps). We also present a thorough evaluation of what we called a temporal approach, which consists of creating a mosaic image, with consecutive camera frames, that is passed as input to the DeepPilot. We argue that this helps to learn the drone’s motion trend regarding the gate, thus acting as a local memory that leverages the prediction of the flight commands. Our results indicate that this purely DL-based artificial pilot is feasible to be used for the ADR challenge.
It consists of 4 steps: (1) Data acquisition using the drone’s onboard camera; (2) Real-time mosaic generation, consisting of 6 frames; (3) Flight commands prediction using our proposed CNN named DeepPilot, these commands are represented by the tuple (ϕ,θ,ψ,h); (4) Implementation of a filter to smooth the signal.
Our proposed DeepPilot runs 3 specialized models in parallel. The first one predicts ϕ and θ angular positions of the body frame; the second one predicts ψ, the rotational speed over the Z-axis; and the third one predicts h, the vertical speed. The size of the kernels is indicated in the colored boxes at the bottom-left.
A video of this approach can be watched at: https://youtu.be/Qo48pRCxM40.
- Ubuntu 16.04
- ROS kinetic Kame
- Python 2.7.15
- Cuda 9.0
- Cudnn 7.3.0
- Tensorflow 1.12.0
- Keras 2.2.4
- Tum_simulator ported to Kinetic (https://github.com/angelsantamaria/tum_simulator.git)
git clone https://github.com/QuetzalCpp/DeepPilot.git
cd DeepPilotcd /bebop_ws/src/DeepPilot/DeepPilot_network
python train_deeppilot.pycd /bebop_ws/src/DeepPilot/DeepPilot_network
python evaluation_mosaic-6img.pyIf you use any of data, model or code, please cite the following reference:
Rojas-Perez, L.O., & Martinez-Carranza, J. (2020). DeepPilot: A CNN for Autonomous Drone Racing. Sensors, 20(16), 4524. https://doi.org/10.3390/s20164524
@article{rojas2020deeppilot,
title={DeepPilot: A CNN for Autonomous Drone Racing},
author={Rojas-Perez, Leticia Oyuki and Martinez-Carranza, Jose},
journal={Sensors},
volume={20},
number={16},
pages={4524},
year={2020},
publisher={Multidisciplinary Digital Publishing Institute}
}
- L. O. Rojas-Perez and J. Martinez-Carranza, "Autonomous Drone Racing with an Opponent: A First Approach",Computación y Sistemas (2020).
@article{rojas2020ADRwithop,
title={Autonomous Drone Racing with an Opponent: A First Approach},
author={Rojas-Perez, Leticia Oyuki and Martinez-Carranza, Jose},
journal={Computaci{\'o}n y Sistemas},
volume={},
number={},
year={2020}
}
- A. A. Cabrera-Ponce, L. O. Rojas-Perez, J. A. Carrasco-Ochoa, J. F. Martinez-Trinidad and J. Martinez-Carranza, "Gate Detection for Micro Aerial Vehicles using a Single Shot Detector," in IEEE Latin America Transactions, vol. 17, no. 12, pp. 2045-2052, December 2019, doi: 10.1109/TLA.2019.9011550.
@ARTICLE{9011550,
author={A. A. {Cabrera-Ponce} and L. O. {Rojas-Perez} and J. A. {Carrasco-Ochoa} and J. F. {Martinez-Trinidad} and J. {Martinez-Carranza}},
journal={IEEE Latin America Transactions},
title={Gate Detection for Micro Aerial Vehicles using a Single Shot Detector},
year={2019},
volume={17},
number={12},
pages={2045-2052},}
- L. O. Rojas-Perez and J. Martinez-Carranza, "A Temporal CNN-based Approach for Autonomous Drone Racing," 2019 Workshop on Research, Education and Development of Unmanned Aerial Systems (RED UAS), Cranfield, United Kingdom, 2019, pp. 70-77, doi: 10.1109/REDUAS47371.2019.8999703.
@INPROCEEDINGS{8999703,
author={L. O. {Rojas-Perez} and J. {Martinez-Carranza}},
booktitle={2019 Workshop on Research, Education and Development of Unmanned Aerial Systems (RED UAS)},
title={A Temporal CNN-based Approach for Autonomous Drone Racing},
year={2019},
volume={},
number={},
pages={70-77},}
- J. A. Cocoma-Ortega, L. O. Rojas-Perez, A. A. Cabrera-Ponce and J. Martinez-Carranza, "Overcoming the Blind Spot in CNN-based Gate Detection for Autonomous Drone Racing," 2019 Workshop on Research, Education and Development of Unmanned Aerial Systems (RED UAS), Cranfield, United Kingdom, 2019, pp. 253-259, doi: 10.1109/REDUAS47371.2019.8999722.
@INPROCEEDINGS{8999722,
author={J. A. {Cocoma-Ortega} and L. O. {Rojas-Perez} and A. A. {Cabrera-Ponce} and J. {Martinez-Carranza}},
booktitle={2019 Workshop on Research, Education and Development of Unmanned Aerial Systems (RED UAS)},
title={Overcoming the Blind Spot in CNN-based Gate Detection for Autonomous Drone Racing},
year={2019},
volume={},
number={},
pages={253-259},}
We are thankful for the processing time granted by the National Laboratory of Supercomputing (LNS) under the project 201902063C. The first author is thankful to Consejo Nacional de Ciencia y Tecnología (CONACYT) for the scholarship No. 924254. We are also thankful for the partial financial support granted via the FORDECYT project no. 296737 “Consorcio en Inteligencia Artificial” for the development of this work.




