In recent years, quadrotor drones have emerged as versatile platforms for applications ranging from aerial photography to disaster response, thanks to their ability to hover, vertically take off and land, and navigate complex environments. However, achieving autonomous flight in unknown settings requires robust perception and mapping capabilities. Traditional methods often rely on external sensors like LiDAR or stereo cameras, which can be bulky and expensive. In this work, we present a monocular modeling system that enables real-time dense 3D reconstruction and simultaneous localization and mapping (SLAM) for a quadrotor drone. Our system integrates a flight control unit with a single camera, allowing the quadrotor drone to navigate intelligently while building a detailed map of its surroundings. By leveraging advanced computer vision algorithms, we demonstrate that a quadrotor drone can perform dense reconstruction using only a monocular camera, reducing cost and weight. This article details the design, implementation, and validation of our system, with emphasis on the interplay between hardware and software components.
The core innovation lies in our dense reconstruction pipeline, which combines structure-from-motion (SfM) with constrained scene flow optimization to generate accurate 3D models from image sequences. We have developed a custom quadrotor drone equipped with a flight controller based on an STM32 microcontroller, an MPU6050 inertial measurement unit (IMU), a GPS module, and an OV2640 camera module. The software runs partly on the drone for low-level control and partly on a ground station for heavy computation, communicating via wireless serial links. Our contributions include a novel method for base surface construction using multi-scale compactly supported radial basis functions (MCSRBFs) and a real-time dense alignment technique that leverages GPU acceleration. Throughout this article, we will explore how each component contributes to the overall functionality of the quadrotor drone, ensuring reliable performance in dynamic environments.

To provide context, the quadrotor drone operates as an underactuated system with six degrees of freedom (position and orientation) but only four control inputs (motor speeds). This necessitates precise attitude control, which we achieve through a PID controller that processes IMU data. The monocular camera captures images at regular intervals, transmitting them to a PC where the dense reconstruction algorithm runs. The quadrotor drone then uses the resulting 3D map, combined with GPS and IMU readings, to navigate autonomously. This integration of perception and control is critical for tasks such as search and rescue, where the quadrotor drone must operate in GPS-denied or cluttered spaces. In the following sections, we delve into the system architecture, hardware design, software algorithms, and experimental validation, highlighting how our approach advances the state of the art for quadrotor drone autonomy.
System Architecture Overview
The overall system architecture of our quadrotor drone is designed to balance computational load between onboard and offboard processing. As shown in the block diagram, it consists of several key modules: the flight control system, the perception system, and the ground station. The flight control system includes the main controller (STM32F103RBT6), which reads data from the MPU6050 IMU and GPS module, executes PID control loops, and outputs PWM signals to four electronic speed controllers (ESCs) that drive the motors. This ensures stable flight of the quadrotor drone, even under disturbances. The perception system centers on the OV2640 camera, which captures JPEG-compressed images at a resolution of 640×480 pixels, reducing bandwidth requirements. These images are sent via a wireless module to the ground station, a PC running our custom software for monocular dense reconstruction and path planning.
Communication between the quadrotor drone and the ground station is bidirectional. The drone transmits image data and telemetry (e.g., position, attitude), while the ground station sends navigation commands based on the reconstructed 3D map. This allows the quadrotor drone to adapt its flight path in real time, avoiding obstacles and exploring unknown areas. The software on the PC implements a SLAM pipeline that includes SfM, base surface construction, constrained scene flow dense reconstruction, dense alignment, and local model integration. Each stage is optimized for speed and accuracy, enabling the quadrotor drone to operate in real time. Below, we summarize the hardware specifications in a table to clarify the components involved.
| Component | Model/Specification | Role in Quadrotor Drone |
|---|---|---|
| Main Controller | STM32F103RBT6 (ARM Cortex-M3, 72 MHz) | Processes sensor data, runs PID control, manages communication |
| IMU | MPU6050 (6-axis accelerometer and gyroscope) | Provides attitude estimates for flight stabilization |
| GPS Module | LEA-5T (high sensitivity, fast acquisition) | Supplies global position data for navigation |
| Camera Module | OV2640 (2 MP, JPEG output) | Captures environmental images for monocular reconstruction |
| Wireless Module | Serial-based RF link | Enables data exchange between drone and ground station |
| Motors and ESCs | Brushless DC motors with 30A ESCs | Drive the propellers for thrust and attitude control |
The synergy between these components allows the quadrotor drone to maintain stable flight while performing dense mapping. For instance, the IMU data is fused with GPS readings using a Kalman filter to estimate the drone’s pose, which is crucial for aligning reconstructed 3D models. The quadrotor drone’s ability to hover and move precisely facilitates the collection of overlapping images, essential for high-quality reconstruction. In the next sections, we detail the flight control system and the monocular modeling algorithms, emphasizing the mathematical foundations that enable the quadrotor drone to achieve autonomy.
Flight Control System Design
The flight control system is responsible for stabilizing the quadrotor drone and executing navigation commands. As an underactuated system, the quadrotor drone requires careful tuning of motor speeds to achieve desired motions. We use a PID controller that computes control signals based on the error between desired and estimated attitudes. The attitude estimation derives from the MPU6050 IMU, which provides angular velocity and acceleration data. After sensor fusion via a complementary filter or Kalman filter, we obtain roll ($\phi$), pitch ($\theta$), and yaw ($\psi$) angles. These are used in the control loop to generate PWM outputs for the ESCs.
The dynamics of a quadrotor drone can be modeled using Newton-Euler equations. Let $\mathbf{p} = [x, y, z]^T$ denote the position in the world frame, and $\boldsymbol{\Theta} = [\phi, \theta, \psi]^T$ represent the Euler angles. The equations of motion are:
$$ m\ddot{\mathbf{p}} = \mathbf{R} \begin{bmatrix} 0 \\ 0 \\ T \end{bmatrix} – \begin{bmatrix} 0 \\ 0 \\ mg \end{bmatrix} – \mathbf{D} \dot{\mathbf{p}} $$
$$ \mathbf{I} \dot{\boldsymbol{\omega}} + \boldsymbol{\omega} \times \mathbf{I} \boldsymbol{\omega} = \boldsymbol{\tau} $$
where $m$ is the mass of the quadrotor drone, $g$ is gravity, $\mathbf{R}$ is the rotation matrix from body to world frame, $T$ is the total thrust from motors, $\mathbf{D}$ is a drag coefficient matrix, $\mathbf{I}$ is the inertia tensor, $\boldsymbol{\omega}$ is the angular velocity in the body frame, and $\boldsymbol{\tau}$ is the torque vector. For control purposes, we linearize these equations around hover conditions and design PID controllers for each axis. The control input for attitude is computed as:
$$ u_{\phi} = K_{p,\phi} e_{\phi} + K_{i,\phi} \int e_{\phi} dt + K_{d,\phi} \dot{e}_{\phi} $$
where $e_{\phi} = \phi_{desired} – \phi_{estimated}$, and similarly for pitch and yaw. The thrust $T$ is adjusted for altitude control. These control signals are mapped to motor speeds using a mixing matrix that accounts for the quadrotor drone’s geometry. For a standard X-configuration, the relationship is:
$$ \begin{bmatrix} T \\ \tau_{\phi} \\ \tau_{\theta} \\ \tau_{\psi} \end{bmatrix} = \begin{bmatrix} 1 & 1 & 1 & 1 \\ 0 & -l & 0 & l \\ l & 0 & -l & 0 \\ -c & c & -c & c \end{bmatrix} \begin{bmatrix} \omega_1^2 \\ \omega_2^2 \\ \omega_3^2 \\ \omega_4^2 \end{bmatrix} $$
where $l$ is the arm length, $c$ is a torque coefficient, and $\omega_i$ are motor speeds. The PID gains are tuned empirically to ensure stable flight of the quadrotor drone. We implemented the controller on the STM32 microcontroller, which runs at 72 MHz, providing sufficient bandwidth for real-time updates. The table below summarizes the PID parameters used in our quadrotor drone.
| Axis | $K_p$ | $K_i$ | $K_d$ |
|---|---|---|---|
| Roll ($\phi$) | 1.2 | 0.05 | 0.1 |
| Pitch ($\theta$) | 1.2 | 0.05 | 0.1 |
| Yaw ($\psi$) | 0.8 | 0.02 | 0.05 |
| Altitude ($z$) | 2.0 | 0.1 | 0.2 |
This control strategy allows the quadrotor drone to perform maneuvers such as hovering, translation, and rotation, which are essential for capturing images from diverse viewpoints. The integration of GPS provides global position feedback, enabling waypoint navigation. However, in GPS-denied environments, the quadrotor drone relies solely on visual SLAM for localization, showcasing the robustness of our monocular modeling system. Next, we describe the perception and reconstruction pipeline that empowers the quadrotor drone to map its surroundings.
Monocular Dense Reconstruction Pipeline
The monocular dense reconstruction pipeline is the core of our system, enabling the quadrotor drone to build 3D maps from a single camera. It consists of five main stages: structure from motion (SfM), base surface construction, constrained scene flow dense reconstruction, dense alignment, and local model integration. Each stage processes data from the quadrotor drone’s camera to incrementally refine a 3D model. We assume that the quadrotor drone moves smoothly, providing a sequence of images with sufficient overlap for reconstruction.
Structure from Motion (SfM)
SfM estimates the camera poses and a sparse 3D point cloud from image features. We use a keyframe-based approach similar to PTAM (Parallel Tracking and Mapping), which tracks hundreds of features per frame and performs bundle adjustment to optimize camera poses and point positions. Let $\mathbf{P}_i = \mathbf{K} [\mathbf{R}_i | \mathbf{t}_i]$ be the projection matrix for frame $i$, where $\mathbf{K}$ is the camera intrinsic matrix, $\mathbf{R}_i$ is rotation, and $\mathbf{t}_i$ is translation. For a 3D point $\mathbf{X}_j$, its projection is $\mathbf{u}_{ij} = \mathbf{P}_i \mathbf{X}_j$. The SfM minimizes the reprojection error:
$$ E_{\text{SfM}} = \sum_{i,j} \| \mathbf{u}_{ij} – \pi(\mathbf{P}_i \mathbf{X}_j) \|^2 $$
where $\pi$ denotes the perspective projection function. This yields accurate poses for keyframes selected from the quadrotor drone’s video stream. The sparse point cloud serves as input for dense reconstruction. We discard outliers with reprojection errors above a threshold (e.g., 10 pixels) to ensure quality. Additionally, we compute approximate surface normals for each point by averaging viewing directions from keyframes where the point is visible, which aids in subsequent surface construction.
Base Surface Construction
From the sparse point cloud, we estimate a continuous base surface using multi-scale compactly supported radial basis functions (MCSRBFs). This method interpolates oriented points (positions and normals) to define an implicit function $f(\mathbf{x}) = 0$ whose zero-level set represents the surface. The function is constructed hierarchically to balance accuracy and efficiency. Given points $\{\mathbf{X}_j, \mathbf{n}_j\}$, we solve for coefficients $\alpha_j$ in:
$$ f(\mathbf{x}) = \sum_j \alpha_j \phi(\|\mathbf{x} – \mathbf{X}_j\|) + \mathbf{p}(\mathbf{x}) $$
where $\phi$ is a compactly supported radial basis function (e.g., Wendland’s function), and $\mathbf{p}(\mathbf{x})$ is a low-degree polynomial for global consistency. The surface is then polygonized using marching cubes. This base surface provides an initial guess for dense refinement, crucial for the quadrotor drone to have a coherent model even in low-texture areas. The computational cost is manageable on a desktop PC, allowing real-time updates as the quadrotor drone captures new images.
Constrained Scene Flow Dense Reconstruction
This stage deforms the base surface to match dense image measurements. For each reference keyframe, we consider a bundle of neighboring frames. Let $\mathbf{x}_j$ be a vertex on the base surface. Its projection in frame $i$ is $\mathbf{u}_{ij} = \pi(\mathbf{P}_i \mathbf{x}_j)$. We compute dense optical flow between the reference frame and each neighbor to find displacements $\Delta \mathbf{u}_{ij}$. Assuming small scene flow $\Delta \mathbf{x}_j$ (i.e., deformation of the surface), we linearize the projection:
$$ \Delta \mathbf{u}_{ij} = \mathbf{J}_{ij} \Delta \mathbf{x}_j $$
where $\mathbf{J}_{ij}$ is the Jacobian of the projection function at $\mathbf{x}_j$. The scene flow is constrained to lie along the ray from the reference camera: $\Delta \mathbf{x}_j = \mathbf{r}_j \lambda_j$, with $\mathbf{r}_j$ being the unit ray direction. Combining constraints from multiple frames yields an overdetermined linear system for $\lambda_j$:
$$ \begin{bmatrix} \Delta \mathbf{u}_{1j} \\ \vdots \\ \Delta \mathbf{u}_{nj} \end{bmatrix} = \begin{bmatrix} \mathbf{J}_{1j} \mathbf{r}_j \\ \vdots \\ \mathbf{J}_{nj} \mathbf{r}_j \end{bmatrix} \lambda_j $$
Solving via least squares gives $\lambda_j$, and the updated vertex is $\mathbf{x}’_j = \mathbf{x}_j + \mathbf{r}_j \lambda_j$. This process is iterated (typically 3 times) until convergence, minimizing reprojection error. The computation is parallelized on a GPU, enabling real-time performance for the quadrotor drone’s mapping system. The table below outlines the parameters used in this stage.
| Parameter | Value | Description |
|---|---|---|
| Number of Neighbors ($n$) | 5 | Frames in bundle for multi-view constraints |
| Convergence Threshold ($\epsilon$) | 1e-4 | Normalized pixel error for iteration stop |
| Max Iterations | 3 | Limit to ensure real-time operation |
| Optical Flow Method | Variational | Used for dense displacement estimation |
Dense Alignment and Local Model Integration
After deforming the surface, we align the dense depth maps from multiple keyframes into a global model. We use a simple yet effective approach: render each depth map into the reference frame and fuse vertices by averaging those within a distance threshold, removing duplicates. This is efficient because our scene flow refinement produces high-quality depth maps with minimal noise. The global model is represented as a mesh that is incrementally updated as the quadrotor drone explores. For real-time operation, we only integrate new keyframes when the quadrotor drone moves significantly, reducing computational load.
The entire pipeline ensures that the quadrotor drone can build a detailed 3D map while flying. The integration of SfM and dense reconstruction allows loop closure and drift correction, essential for long-term autonomy. Below, we present a formula summarizing the overall objective function minimized in our pipeline:
$$ E_{\text{total}} = E_{\text{SfM}} + \lambda_s E_{\text{surface}} + \lambda_f E_{\text{flow}} $$
where $E_{\text{surface}}$ penalizes deviations from the base surface smoothness, $E_{\text{flow}}$ enforces consistency in scene flow, and $\lambda_s$, $\lambda_f$ are weighting factors. This holistic optimization enables the quadrotor drone to achieve accurate reconstruction even with monocular input.
Experiments and Results
We validated our system through indoor and outdoor experiments with a custom-built quadrotor drone. The quadrotor drone was tasked with flying in a cluttered environment while capturing images and performing real-time reconstruction on a ground station (Intel i7 PC with NVIDIA GTX 1060 GPU). We assessed performance based on mapping accuracy, flight stability, and computational efficiency.
In one experiment, the quadrotor drone navigated a room with furniture, capturing 200 images over 2 minutes. The reconstruction pipeline generated a dense mesh covering approximately 20 m². We compared the output to a ground truth scan from a Kinect sensor, measuring the mean Euclidean distance between point clouds. The error was below 2 cm, demonstrating the precision of our monocular system. The quadrotor drone maintained stable flight throughout, with attitude errors less than 0.5° in roll and pitch. The table below summarizes key metrics from this experiment.
| Metric | Value | Note |
|---|---|---|
| Mapping Area | 20 m² | Covered by quadrotor drone flight |
| Reconstruction Error | 1.8 cm | Mean distance to ground truth |
| Attitude Error | 0.4° | RMS in roll/pitch during flight |
| Processing Speed | 10 fps | Frame rate for dense reconstruction |
| Latency | 200 ms | End-to-end delay from image capture to map update |
Another experiment involved autonomous navigation using the reconstructed map. The quadrotor drone successfully followed a path around obstacles, adjusting its trajectory based on the updated 3D model. This highlights the synergy between mapping and control, essential for a fully autonomous quadrotor drone. We also tested the system in a GPS-denied corridor, where the quadrotor drone relied solely on visual SLAM for localization; it achieved position errors below 0.5 m over a 50 m traverse.
The quadrotor drone’s ability to perform dense reconstruction in real time is a significant advancement. Traditional methods often require offline processing or specialized hardware, but our system leverages efficient algorithms and GPU acceleration to enable online operation. This makes the quadrotor drone suitable for dynamic applications like inspection or rescue, where immediate environmental understanding is critical. Below, we include a formula for the computational complexity of our pipeline, which scales linearly with the number of pixels and keyframes:
$$ C \approx O(N_k \cdot N_p) + O(N_v \cdot N_n) $$
where $N_k$ is the number of keyframes, $N_p$ is pixels per frame, $N_v$ is vertices in the mesh, and $N_n$ is neighbor frames. For typical quadrotor drone operations, this remains within the capabilities of consumer hardware.
Conclusion and Future Work
We have presented a comprehensive monocular modeling system for quadrotor drones, integrating flight control, sensor fusion, and real-time dense reconstruction. Our quadrotor drone demonstrates autonomous navigation capabilities by building accurate 3D maps from a single camera, reducing reliance on external sensors. The key contributions include a novel base surface construction method using MCSRBFs and a constrained scene flow algorithm for dense refinement. Experimental results confirm that the quadrotor drone can map environments with centimeter-level accuracy while maintaining stable flight.
Future work will focus on enhancing the quadrotor drone’s robustness in challenging conditions, such as low light or fast motion. We plan to integrate deep learning-based feature tracking to improve SfM performance and explore semantic segmentation to enrich the 3D models with object labels. Additionally, we aim to port more reconstruction steps to the onboard computer of the quadrotor drone, reducing dependence on ground stations. This will further advance the autonomy of quadrotor drones in real-world scenarios.
In summary, this system represents a step toward affordable and capable quadrotor drones for applications like surveillance, agriculture, and disaster response. By combining precise control with advanced computer vision, we enable quadrotor drones to perceive and interact with their surroundings intelligently. The integration of monocular modeling opens new possibilities for lightweight and versatile aerial platforms.
