Mapless Collision-Free Flight via MPC using Dual KD-Trees in Cluttered Environments Linzuo Zhang, Yu Hu, Yang Deng, Feng Yu, Danping Zou Abstract Collision-free flight in cluttered environments is a critical capability for autonomous quadrotors. Traditional methods often rely on detailed 3D map construction, trajectory generation, and tracking. However, this cascade pipeline can introduce accumulated errors and computational delays, limiting flight agility and safety. In this paper, we propose a novel method for enabling collision-free flight in cluttered environments without explicitly constructing 3D maps or generating and tracking collision-free trajectories. Instead, we leverage Model Predictive Control (MPC) to directly produce safe actions from sparse waypoints and point clouds from a depth camera. These sparse waypoints are dynamically adjusted online based on nearby obstacles detected from point clouds. To achieve this, we introduce a dual KD-Tree mechanism: the Obstacle KD-Tree quickly identifies the nearest obstacle for avoidance, while the Edge KD-Tree provides a robust initial guess for the MPC solver, preventing it from getting stuck in local minima during obstacle avoidance. We validate our approach through extensive simulations and real-world experiments. The results show that our approach significantly outperforms the mapping-based methods and is also superior to imitation learning-based methods, demonstrating reliable obstacle avoidance at up to 12 m/s in simulations and 6 m/s in real-world tests. Our method provides a simple and robust alternative to existing methods. The code is publicly available at https://github.com/SJTU-ViSYS-team/avoid-mpc. I Introduction Flight in cluttered environments without collision remains a fundamental challenge for autonomous quadrotors. Traditional approaches typically employ a multi-stage hierarchical framework [ 1 , 2 , 3 ] : First, environmental data are integrated through explicit map representations such as occupancy grids or Euclidean Signed Distance Fields (ESDFs) [ 4 , 5 , 6 ] . A collision-free path is subsequently generated, which is then parameterized as trajectories (e.g., polynomials or B-splines) and tracked via low-level controllers ensuring smoothness and dynamic feasibility. While effective in real-world cluttered environments, this cascade paradigm faces two inherent limitations. First, the accumulated error from each of the sequential modules including occupancy mapping, path planning, trajectory generation, and trajectory tracking could produce biased actions making the quadrotor clash [ 7 ] . Second, the sequential workflow also introduces significant computational delays, impairing responsiveness in high-speed scenarios [ 8 ] . Both limitations severely restrict the agility and safety of quadrotors. It naturally raises the question of whether approaches without mapping or trajectory generation exist such that agility and safety can be significantly enhanced. Fig. 1: Comparison of the mapping-based approach and the proposed framework for obstacle avoidance: The traditional mapping-based approach follows a pipeline consisting of mapping, path generation, trajectory optimization, and trajectory tracking. In contrast, the proposed framework optimizes obstacle avoidance through MPC while directly utilizing the path for efficient, real-time navigation. Fig. 2: System Overview. An MPC-based obstacle avoidance framework utilizes dilated edge maps to construct an edge KD-tree for coarse adjustment of the reference path and performs KNN-based nearest obstacle queries in the obstacle KD-tree to compute collision costs, which are optimized through nonlinear programming (NLP) for real-time control commands. To address these challenges, we propose a model predictive control (MPC) [ 9 , 10 , 11 , 12 , 13 , 14 ] framework that integrates real-time local perception into the control loop. We use the local point cloud from the depth camera as input and solve for collision-free control actions using MPC, based on sparsely sampled waypoints toward the goal. By integrating a novel mechanism to identify the nearest obstacle to each waypoint and incorporating this information into the MPC optimization, we ensure responsive and robust collision avoidance using only local perception data. Specifically, we introduce a dual KD-tree [ 15 , 16 , 17 , 18 , 19 ] mechanism. The Obstacle KD-Tree enables real-time nearest-neighbor queries for collision cost calculation, while the Edge KD-Tree optimizes waypoint adjustment by integrating dilated obstacle boundaries, providing robust initial guesses for the MPC solver to improve optimization efficiency and avoid local minima. This dual-KD tree structure not only simplifies the computational pipeline but also enhances the framework’s ability to handle complex environments, ensuring both dynamic feasibility and real-time performance. Our method eliminates the need for explicit trajectory generation, tracking, or complex mapping processes, significantly enhancing the agility and robustness of autonomous flight in cluttered environments. Our contributions are summarized as follows: 1. We propose a concise and straightforward MPC framework that directly uses the nearest point of discrete waypoints for obstacle avoidance. 2. We propose a dual KD-tree perception module that enables real-time nearest-neighbor queries for collision cost computation, while providing a good initial guess for the MPC, enhancing its optimization efficiency and preventing local optima. 3. We validate our approach through extensive simulations and real-world experiments, results demonstrate it outperforms both mapping-based and imitation-learning-based methods, achieving high-speed obstacle avoidance of up to 12 m/s in simulations and 6 m/s in real-world tests. II Related Work II-A Mapless Obstacle Avoidance Methods Various approaches enable autonomous quadrotor flights without maps or predefined trajectories. A similar approach to ours is the reactive method, which relies solely on point clouds for local planning. Florence et al. [ 20 ] use depth information to select optimal trajectories from predefined motion primitives. Kong et al. [ 21 ] maintain a local KD-tree and use kinodynamic A* to compute safe trajectories toward target positions. Although these methods eliminate map dependency and maintain low computational complexity, their reliance on tracking constrained motion primitives constrains maneuverability in complex environments. Ren et al. [ 22 ] developed the Bubble Planner to generate real-time, high-speed, collision-free trajectories using a sampling-based corridor method with the Receding Horizon Corridor strategy. However, this approach remains fundamentally dependent on explicit trajectory generation pipelines, while introducing a persistent requirement for dedicated tracking controllers to ensure trajectory following. Recent learning-based methods [ 23 , 24 , 25 , 26 ] circumvent the need for map construction in local obstacle avoidance by directly processing sensory inputs such as camera images. The Agile framework [ 27 ] applies imitation learning to generate trajectories from depth images and states. MAVRL [ 28 ] maps depth images to acceleration commands using reinforcement learning. Zhang et al. [ 29 , 30 ] propose a differentiable pipeline that computes dynamics gradients to update policies, achieving notable performance by calculating collision loss from the nearest obstacles during training. While these methods improve efficiency, their implicit reasoning lacks interpretability, failing to validate trajectory safety explicitly (e.g., dynamic feasibility, obstacle distance), risking local minima traps or disturbances in deployment. II-B Obstacle Avoidance with Model Predictive Control While MPC excels in high-maneuverability UAV control, its computational efficiency limits its ability to integrate environmental sensing data (e.g., lidar or cameras). One approach is to exclude environmental information from MPC, relying on predefined obstacles. Lindqvist et al. [ 31 ] integrated dynamic obstacle trajectories into optimization but only considered a single obstacle with a motion capture system, limiting real-world applicability. Similarly, Liu et al. [ 32 ] employed an MPC-based strategy to optimize collision probability but only considered one obstacle. Ji et al. [ 33 , 34 ] require maps for collision detection or corridor generation. Krinner et al. [ 35 ] extended MPCC with flight zone constraints but relied on gate information, limiting safety to fixed race tracks. Some methods integrate visual information but require extra modules for predefined obstacle detection. U-map-based [ 36 ] detection was implemented by Lin et al. [ 37 ] and Xing et al. [ 38 ] , with the latter using ellipsoidal representations for power line tracking. Although [ 32 , 37 , 38 ] have demonstrated that it is possible to enforce geometric constraints in the control loop to avoid obstacles, they rely on oversimplified obstacle representations (e.g., spherical or cylindrical proxies) to make the computation tractable [ 39 , 40 ] . Additionally, these methods depend on explicit obstacle detection, which is usually limited to predefined classes, such as pedestrians and pillars. Therefore, their approaches cannot be easily extended to cluttered environments, which are typically filled with unseen obstacles of irregular 3D shapes. III System Overview The proposed MPC-based autonomous flight system, as shown in Fig. 2 , consists of two main modules: (1) a dual KD-tree module, where the Obstacle KD-Tree computes collision costs and the Edge KD-Tree adjusts waypoints to refine the initial optimization values, and (2) an MPC-based optimization module for real-time planning and control. The system begins by sparsely sampling a fixed number of waypoints from the current position toward the goal. It then constructs the Obstacle KD-Tree and Edge KD-Tree using the depth map from the RGB-D camera and adjusts the waypoints if a potential collision is detected. The Obstacle KD-Tree stores obstacle points extracted from the depth map, while the Edge KD-Tree is built from a dilated, edge-filtered version of the depth map. Next, the MPC optimization module refines the waypoints generated by the Edge KD-Tree, incorporating kinematic constraints and collision costs. The optimization process minimizes a cost function over a fixed finite time horizon, producing an optimal sequence of control inputs and predictive waypoints. The resulting control commands are then sent to the quadrotor’s low-level flight controller (FCU). This entire process repeats at each time step. IV Dual KD-Tree Perception Module Below, we provide a detailed description of the construction and query process of the dual KD-Tree module. The input depth map is first downsampled to a resolution of 64\times 48 pixels to reduce computational load. Two spatially indexed structures are then constructed to enable efficient collision checking and trajectory refinement: IV- 1 Edge KD-Tree and Waypoint Coarse Adjustment The Edge KD-Tree is generated from a dilated and edge-filtered depth map, serving as a coarse adjustment layer for global waypoint adjustment. Dilation expands obstacle boundaries to: (1) provide safe-region initial waypoints for optimization, which effectively improves optimization efficiency; (2) ensure that edge points mapped back to the Obstacle KD-Tree lie outside obstacles and near edges, thus preventing the nearest point from changing after optimization and avoiding local optima and (3) fill narrow gaps to prevent risky navigation. As shown in Fig. 3 , during initial waypoint generation, colliding waypoints are replaced with their nearest edge points from the Edge KD-Tree to form a coarse collision-free path. The inflation kernel size is determined by forward velocity and camera intrinsics. The inflation radius is computed as: r_{\text{infl}}=2\cdot\lfloor\frac{1}{2}\cdot\frac{d_{s}}{v_{\text{f}}\Delta t}\cdot f_{\text{pix}}\rfloor+1 (1) where \lfloor\cdot\rfloor is the floor function, d_{s} is the safe distance (derived from the quadrotor’s radius and depth map noise), v_{\text{f}} is the forward velocity, \Delta t is the MPC optimization time step, and f_{\text{pix}} is the focal length in pixels. Fig. 3: Waypoint Coarse Adjustment: (a) Raw depth map;(b) Processed depth map after morphological inflation and Canny edge detection, enabling safe waypoint adjustment. IV- 2 Obstacle KD-Tree This tree stores all obstacle points extracted from the downsampled depth map. During MPC optimization, the nearest obstacle point to each candidate waypoint is queried in real-time using nearest-neighbor search. The distance to this point is integrated into the collision cost function, ensuring obstacle avoidance during optimization. Additionally, we employ a multi-frame strategy for enhancement. After constructing the current frame’s KD-tree, we use the obstacle points from the previous keyframe to compare with the current frame in a separate thread. If the difference between the previous and current frame is too large, the current frame is designated as the new keyframe, and the previous frame is pruned by removing points that are too close to the current keyframe. Moreover, any keyframe entirely behind the current quadrotor position is also deleted. During queries, we prioritize searching for the nearest points within the current frame. If the waypoint is outside the current frame’s field of view, the query is performed in parallel with the keyframes. V Solving collision-free actions via MPC After using the edge KD tree to adjust the sparse waypoints according to the obstacle points, the MPC solver further takes these sparse waypoints by enforcing kinematic constraints and collision cost models and directly produces smooth, dynamically feasible control commands in real-time. V-A Optimization Formulation We formulate the collision-free flight problem as minimizing the cost function over a fixed time horizon H through the following optimization framework: \displaystyle\min_{u_{1:H},x_{1:H}}\quad \displaystyle\mathcal{C}\left(x_{h},u_{h}\right) (2) s.t. \displaystyle x_{h+1}=\text{RK4}\left(f_{d}\left(x_{h},u_{h},\theta\right),\Delta t\right) \displaystyle u_{\text{min}}\leq u_{h}\leq u_{\text{max}} \displaystyle x_{1}=x_{\text{init}} where the discrete-time state vector x_{h}=[p_{h},\phi_{h},v_{h},a_{h}]^{\top} consists of: position p_{h} , yaw angle \phi_{h} , velocity v_{h} , and acceleration a_{h} . The control input u_{h}=[a_{c,h},\phi_{c,h}]^{\top} contains acceleration and yaw angle commands, where u_{\text{min}} and u_{\text{max}} define control input bounds, and x_{\text{init}} specifies the initial state. The \text{RK4}(\cdot) denotes the fourth-order Runge-Kutta method, while f_{d}(\cdot) represents the quadrotor’s dynamics model. After optimization, only the first action u_{1} is sent to the low-level flight control unit (FCU) to control the quadrotor. V-B Cost Function The cost function \mathcal{C}\left(x_{h},u_{h}\right) is a weighted sum of four terms: collision avoidance cost c_{a} , terminal cost c_{goal} , waypoint following cost c_{wp} , and smoothness cost c_{u} . The cost function is defined as: V-B 1 Collision Avoidance Cost The collision avoidance cost c_{a}(x_{h}) penalizes the proximity of the h-th waypoint to obstacles. We compute this cost using distances between the quadrotor position p_{h} and M nearest obstacle points \{o_{h}^{i}\}_{i=1}^{M} queried from the Obstacle KD-Tree: \displaystyle c_{a}(x_{h}) \displaystyle=\lambda_{c}\sum_{i=1}^{M}\lVert v_{h}^{i}\rVert\ln\left[1+e^{\beta(r_{q}-\lVert p_{h}-o_{h}^{i}\rVert)}\right] (3) where the repulsion threshold r_{q}\in\mathbb{R}_{+} , obstacle-directed velocity v_{h}^{i}\in\mathbb{R}^{3} , and softplus-type barrier parameter \beta\in\mathbb{R}_{+} constitute tunable parameters, with \lambda_{c}\in\mathbb{R}_{+} scaling the cost’s relative importance. V-B 2 Terminal Cost The terminal cost \mathcal{C}_{goal}\left(x_{H},u_{H}\right) is used to guide the quadrotor to the final goal point. This cost is computed with the goal state x_{\text{goal}} : \mathcal{C}_{goal}\left(x_{H}\right)=\left(x_{H}-x_{\text{goal}}\right)^{T}Q_{\text{goal}}\left(x_{H}-x_{\text{goal}}\right) (4) Here, Q_{\text{goal}} is a diagonal weighting matrix that adjusts the relative importance of the terminal cost. And the goal state x_{\text{goal}} is the final waypoint in the sequence. V-B 3 Discrete Waypoint Following Cost The discrete waypoint following cost, c_{wp}(x_{h}) , encourages the discretized states x_{h} to closely follow the sparse waypoints x_{r}^{h} : c_{wp}(x_{h})=\left(x_{h}-x_{r}^{h}\right)^{T}Q_{wp}\left(x_{h}-x_{r}^{h}\right) (5) Here, Q_{wp} is a diagonal weighting matrix. Adjusting Q_{wp} influences how tightly the quadrotor follows the waypoints. V-B 4 Smoothness Cost The smoothness cost c_{u}(u_{h}) penalizes large control inputs u_{h} , promoting smooth and energy-efficient control: c_{u}(u_{h})=u_{h}^{T}Q_{u}u_{h} (6) where Q_{u} is a weighting matrix for control inputs. Fig. 4: Distribution of Avoidance Costs: (a) Cost function distribution with velocity term; (b) Cost function distribution without velocity term; (c) Path optimization process with velocity term; (d) Path optimization process without velocity term. V-C Analysis of the Collision Avoidance Cost The gradient of ( 3 ) is derived as: \nabla c_{a}=\sum_{i=1}^{M}\frac{-\beta\lVert v_{h}^{i}\rVert e^{\beta(r_{q}-d_{i})}}{1+e^{\beta(r_{q}-d_{i})}}\cdot\frac{p_{h}-o_{h}^{i}}{d_{i}} (7) The gradient direction points from the obstacle to the waypoint(repulsive direction), and its relationship with the obstacle-directed velocity v_{h} requires specific analysis: • If the velocity direction is toward the obstacle ( v_{h}\cdot(p_{h}-o_{h}^{i})<0 ), the gradient correction direction is opposite to the velocity direction, thereby mitigating collision; • If the velocity is directed away from the obstacle, the gradient correction increases the velocity toward the obstacle. This scenario typically occurs when the waypoint appears inside the obstacle, as the nearest points are sampled on the obstacle surface and the obstacle is always located in front of the aircraft. In this case, the optimization process naturally pushes the waypoint out of the obstacle to ensure collision-free navigation. Furthermore, for distances greater than r_{q} , the exponential term e^{\beta(r_{q}-d_{i})} rapidly decays toward zero due to the large choice of \beta=32 . Consequently, c_{a}(x_{h}) is effectively negligible when the obstacle distance exceeds r_{q} , This improves optimization efficiency, as the cost is large and decreases quickly within r_{q} , while after a few iterations, both the cost and the cost gradient become nearly zero. Fig. 4 demonstrates how the velocity term in ( 7 ) shapes avoidance cost fields. With velocity coupling (Fig. 4 a/c), C_{a} creates directional repulsion aligned with motion, pushing waypoints outward from obstacles (gray regions). Without it (Fig. 4 b/d), C_{a} forms radial symmetry and traps waypoints in central local minima. Additionally, as shown in the figure, the cost is primarily concentrated within a circular region of radius r=0.6 m around the obstacle, ensuring that the cost is negligible beyond this radius.indicating that our cost function is only effective within a specific range of the obstacle. V-D Quadrotor Dynamics Model Fig. 5: Performance Comparison of State-of-the-Art Methods in Flightmare Simulation: On the left, we present the success rates of different methods at varying flight speeds, while the right figures illustrate the testing environments and the flight trajectories generated by our method. Fig. 6: Performance of Our Method in Airsim Simulation: On the top, we present the testing environments and the flight trajectories generated by our method. The bottom figures illustrate the success rates of our method and Ego-Planner [ 2 ] at varying desired speeds in different environments. The state transition equation x_{h+1}=\text{RK4}(f_{d}(\cdot)) is derived from the quadrotor’s continuous-time dynamics model. In the following subsection, we provide a description of the quadrotor dynamics model used in f_{d}(\cdot) . We model the quadrotor as a point mass and modeling the lower-level controller as a first-order system: \displaystyle{\dot{p}}(t) \displaystyle=v(t) \displaystyle{\dot{v}}(t) \displaystyle=a(t)-R(t)^{T}DR(t)v(t) \displaystyle{\dot{a}}(t) \displaystyle=\frac{K_{a}a_{\text{c}}(t)-a(t)}{\tau_{a}} \displaystyle{\dot{\phi}}(t) \displaystyle=\frac{K_{\phi}\phi_{\text{c}}(t)-\phi(t)}{\tau_{\phi}} (8) Here, the matrix R(t) denotes the rotation matrix, computed from the current orientation. The parameter D=\text{diag}(d_{x},d_{y},d_{z}) represents linear damping, while K_{a} , \tau_{a} , K_{\phi} , and \tau_{\phi} define the first-order dynamics. VI Experiment VI-A Implementation Details To validate the proposed method, we designed both simulation and real-world experiments to evaluate its performance and robustness in unknown and cluttered environments. The setup for the experiments is as follows: the optimizer is limited to a maximum of 10 iterations, and the number of nearest points selected, M , is set to 3. The MPC optimization horizon is set to 1 second, with a time step of 0.033 seconds. The repulsion threshold r_{q} was set to 1.0. And the safety distance d_{s}=0.15 . The NLP problem is solved by CasADi [ 41 ] using the IPOPT solver. During each experimental iteration, thirty discrete waypoints are uniformly sampled along the path between the current and goal positions. VI-B Simulation Experiment VI-B 1 Flightmare Simulation We benchmark our method against several state-of-the-art approaches using the Flightmare simulator [ 42 ] in a high-density forest environment ( \delta = 1/25 tree m^{-2} ). The methods compared include: Agile Autonomy [ 27 ] (imitation learning and MPC for trajectory tracking), Reactive (sample-based mapless method), MAVRL [ 28 ] (learning-based, MPC for velocity tracking), and Fast-Planner [ 5 ] (mapping-based planning). Each method is tested at target speeds of 2, 5, 7, 10, and 12 m/s, with 10 trials per condition. A trial is considered successful if the quadrotor reaches the goal within a 5-meter radius without collision. The reactive method [ 20 ] , similar to ours, is mapless. It samples by evaluating collision probabilities and then uses MPC to follow the sampled trajectory. Its performance is acceptable at low speeds but significantly deteriorates beyond 5 m/s, with a notable drop in success rate. This limitation stems from the constrained set of motion primitives, which impedes high-maneuverability flight in complex environments. Agile Autonomy [ 27 ] , which employs imitation learning and MPC for collision-free trajectory tracking, our method demonstrates superior performance at higher speeds. At 8 m/s and 10 m/s, our method achieves success rates of 100% and 70%, respectively, while Agile Autonomy achieves 90% and 60%. This highlights the robustness of our tightly coupled perception-action pipeline in speed-critical scenarios. We also compare against MAVRL [ 28 ] , a learning-based approach, which is theoretically limited in its maximum speed due to its training parameter settings and velocity strategy, and Fast-Planner [ 5 ] , a mapping-based planner, which exhibits significant performance degradation at higher speeds due to its reliance on the ESDF map construction and the precision of the underlying controller. VI-B 2 AirSim Simulation As shown in Fig. 6 , we conducted experiments in AirSim-based environments across four scenarios: (1) A dense obstacle field with cubic, horizontal beam, and spherical obstacles to assess general and vertical avoidance; (2) A narrow, ring-shaped obstacle layout where the quadrotor navigated through ring centers at moderate speeds but bypassed laterally when rapid adjustments were needed; (3) A large-scale wilderness environment with cylindrical obstacles to test large obstacle avoidance; and (4) A circular obstacle-corridor scenario. In this scenario, forward arc length is calculated based on the known radius of the circular corridor and the desired velocity, which is then used to derive discrete reference waypoints. The quadrotor maintained tangential velocity alignment while continuously navigating the corridor with obstacle avoidance capability. We compared our approach with the mapping-and-planning-based Ego-Planner [ 2 ] across all scenarios. Quantitative results indicate that while Ego-Planner achieves satisfactory performance at very low speeds ( <3m/s ), its success rate deteriorates markedly with increasing velocity targets - a trend consistent with findings from the original paper’s real-world experiments. Our method maintains consistently high success rates across all tested scenarios and velocity regimes, demonstrating superior robustness and generalization capacity. Fig. 7: Speed Distribution of the Actual Forward Velocity: We compare the actual forward velocity distribution between the proposed method and the Ego-Planner under different desired speeds in the AirSim simulation. The results show that our method maintains a more stable forward velocity across various desired speeds. Our method can maintain a stable forward velocity, as shown in Fig. 7 , we analyzed the distribution of actual forward velocity for different desired speeds in airsim simulation Scenario 1. The box plot illustrates that, compared to the Ego-Planner, our method consistently maintains a more stable forward velocity. While Ego-Planner demonstrates greater speed variance across all target velocities and struggles to attain desired speeds at higher ranges, our method achieves more consistent performance. TABLE I: Ablation Study Results (Success Rate %) Speed (m/s) GT NOISY W/O Edge Single Single Input Input KD-Tree Frame Nearest 3.0 100 100 80 90 90 5.0 100 100 70 100 100 7.0 100 100 60 90 100 10.0 90 80 80 80 90 12.0 70 70 60 70 60 VI-C Ablation Experiment To evaluate the robustness of our method, we conducted an ablation study in the Flightmare simulator [ 42 ] . As shown in Table I , removing the Edge KD-Tree module significantly reduced the success rate, particularly at low speeds (e.g., 3 m/s), where the quadrotor passes through narrow gaps, and at high speeds (e.g., 12 m/s), where poor initial values hinder convergence to an optimal trajectory. We also tested the system with a single frame, excluding the multi-frame strategy from Section IV-2 . Results in the ”Single Frame” columns of Table I show a significant performance drop, emphasizing the importance of the multi-frame strategy for stability. Additionally, using only one nearest point ( M=1 ) in the Edge KD-Tree led to reduced performance, particularly with instability at 3 m/s (see ”Single Nearest” column for 3.0 m/s). This suggests that multiple nearest points enhance robustness by providing more environmental data. Fig. 8: Curve of mean optimization time with varying nearest points: A comparison of the time cost performance with and without the use of the Edge Kd-tree. As shown in Fig. 8 , the MPC optimization time increases linearly with the number of nearest points, impacting real-time performance. Therefore, we selected the three nearest points to balance performance and efficiency. Interestingly, the Edge KD-Tree reduced optimization time by providing a better initial guess. We also conducted experiments to evaluate the impact of depth map and trajectory noise on the performance of our method. We repeated the same experiment in the Flightmare simulator [ 42 ] , but provided all methods with depth maps computed from stereo pairs and trajectories that were perturbed with Gaussian noise. As shown in the first two columns of Table I , our method is robust to depth map and trajectory noise. The results with noisy inputs are almost identical to those obtained without noise. This demonstrates the robustness of our method to sensor noise and inaccuracies in state estimation. VI-D Real-World Experiment We deployed our method on a lightweight real-world quadrotor platform (weights 0.73\text{\,}\mathrm{kg} ) equipped with an Intel RealSense D435i depth camera and an Intel N100 onboard computer (4 cores, 3.4GHz). The platform demonstrates favorable thrust characteristics with a gravity-to-maximum-thrust ratio of 0.35, we integrated a millimeter-level precision motion capture system operating at 200 Hz while the low-level flight control was handled by a Betaflight controller. We conducted experiments in various unknown environments, including a tree-dense areas with intricate branches and cluttered indoor settings, narrow-windowed door, and obstructed spaces with vertical pillars. The quadrotor successfully navigated through these environments to reach the goal, achieving a maximum speed of 6 m/s, as shown in 9 . These results demonstrate the robustness and generalization capabilities of our method in real-world scenarios. Fig. 9: Real-world Experiment: We validate our algorithm in various unknown environments. The quadrotor successfully navigates through these environments to reach the goal. The quadrotor’s flight trajectory is visualized by overlaying its position in the video footage We recorded the execution time of each module: the average time taken from inputting the depth map to constructing the KD-tree is 1.7ms, and the overall planning time averages 30ms. Among the planning tasks, the most time-consuming part is the NLP optimization solver, which has an average execution time of 18ms. The depth map input and planning tasks run synchronously on two separate threads. The output acceleration commands can reach a frequency of 30 Hz, which is sufficient to meet real-time control requirements. VII Conclusion Our method demonstrates the effectiveness of directly integrating point clouds into the MPC framework for obstacle avoidance. By leveraging the nearest obstacle points for each waypoint, our approach simplifies the computational pipeline and enhances scalability, enabling high-speed obstacle avoidance in complex environments. The proposed dual KD-tree module further streamlines obstacle detection and path adjustment, ensuring real-time performance and robustness. Our simulations and real-world experiments validate the effectiveness of our approach, highlighting its potential for autonomous navigation in cluttered environments. Our approach shares similarities in the core structure of the loss function (e.g., penalty terms based on exponential distance decay) of the end-to-end approach [ 29 ] , and relies on dynamically computing collision loss based on the nearest environmental points. However, our approach explicitly solves the solution through online numerical optimization without the need of training. Although our MPC-based approach still cannot compete this end-to-end approach in agility, our approach stands out as an important alternative which offers better interpretability than the end-to-end approach. Future work will integrate learning-based strategies with optimization-based methods to balance agility, robustness, and interpretability.