Abstract
Ultra-wideband (UWB) positioning provides cost-effective localization for quadrotors in global navigation satellite system (GNSS)-denied environments, but geometry-dependent, heavy-tailed errors challenge state estimation and safety-critical control. This paper presents a risk-aware framework linking geometry-aware error quantification with belief-space collision avoidance under a fixed four-anchor UWB configuration. Specifically, horizontal dilution of precision (HDOP) and nearest-anchor distance are used as spatial features in a Student’s-t process regression (STPR) model to predict UWB positioning errors and quantify the associated uncertainty. The compensated UWB measurements are then fused with inertial data through a Kalman filter to obtain a Gaussian belief state. A belief control barrier function (BCBF) maps ellipsoidal collision regions to a unit sphere, approximates them using tangent half-spaces, and is embedded in nonlinear model predictive control (NMPC). In outdoor flight experiments, the positioning RMSE is reduced to 0.071 m by the proposed STPR-KF method, compared with 0.299 m for raw UWB and 0.292 m for conventional KF. Feasible risk-aware obstacle avoidance and adjustable safety clearance are further demonstrated through numerical simulations. The feasibility of linking geometry-aware UWB error characterization with belief-space safety constraints for UWB-localized quadrotor navigation is therefore indicated.
1. Introduction
Quadrotors are increasingly used in infrastructure inspection, search and rescue, logistics, and environmental monitoring. Many of these missions take place in confined or cluttered environments, where the quadrotor must track its reference trajectory while maintaining sufficient clearance from surrounding obstacles [1]. Recent work has integrated detailed nonlinear quadrotor modeling with robust trajectory tracking, path planning, and controller-parameter optimization to improve tracking performance under model uncertainties and external disturbances [2]. Nonlinear model predictive control (NMPC) is well suited to such tasks because it can explicitly account for nonlinear dynamics, actuator limits, and obstacle constraints [3,4]. However, the safety of the optimized trajectory depends on the state information supplied to the controller. Unaccounted position error may cause the controller to misjudge the distance between the quadrotor and an obstacle, leading to over-optimistic safety constraints and potential collisions. Therefore, localization enhancement and uncertainty-aware collision avoidance must be addressed in a coordinated manner rather than as two isolated problems.
Ultra-wideband (UWB) positioning provides a practical localization solution in Global Navigation Satellite System (GNSS)-denied environments. UWB estimates tag-to-anchor distances from wideband time-of-flight measurements. Its fine temporal resolution allows centimeter-level ranging under favorable line-of-sight (LOS) conditions [5,6]. Nevertheless, its accuracy can deteriorate substantially in practical environments. Non-line-of-sight (NLOS) propagation introduces positive ranging biases when the direct path is blocked, while multipath propagation and temporary occlusion can produce outliers and time-varying errors [7,8]. Consequently, UWB positioning errors may exhibit skewed or heavy-tailed distributions rather than the Gaussian distribution assumed by conventional estimators [9]. Positioning accuracy also depends on the anchor–tag geometry. An unfavorable anchor configuration increases the geometric dilution of precision (GDOP), which amplifies ranging errors during position calculation [10]. This geometric effect is particularly important when the number and locations of the anchors cannot be changed.
Extensive studies have improved UWB positioning from several complementary perspectives. Constrained trilateration reduces positioning degradation under unfavorable anchor geometry [10], while anchor calibration and collaborative localization improve the geometric consistency of the positioning system [6]. Robust filters have been developed to estimate quadrotor states under skewed UWB measurements and uncertain dynamics [9]. Kalman filters have also been combined with long short-term memory networks to capture temporal patterns in UWB errors [11]. Recent studies have further addressed UWB uncertainty and NLOS degradation by adaptively estimating measurement-noise covariance in UWB/inertial measurement unit (IMU)/odometer fusion [12], assigning observation weights through dynamic NLOS angle discrimination and map constraints [13], rejecting multi-epoch UWB outliers in tightly coupled UWB-LiDAR-inertial estimation [14], and using variational Bayesian filtering to enhance UWB/inertial navigation system (INS) robustness under large-scale NLOS conditions [15]. A decoupled back-end optimizer has also been proposed to refine UWB localization by jointly estimating position and ranging errors in NLOS environments [16]. These uncertainty-aware and probabilistic formulations indicate a clear trend from deterministic NLOS suppression toward reliability weighting, covariance adaptation, and posterior estimation in UWB localization. Data-driven methods provide another way to address complex propagation errors. Self-training has been used to identify and mitigate NLOS measurements [8], whereas transfer learning improves the adaptability of UWB error-correction models across different environments and hardware configurations [7]. Although these methods improve UWB positioning, the present study imposes an additional requirement: the residual positioning uncertainty must be represented for subsequent safety control. Robust filtering and NLOS mitigation methods depend on the adopted measurement model, weighting strategy, or prior classification result, while many correction methods still focus mainly on improving the position estimate. A Student’s t process retains the analytical structure of a Gaussian process but assigns greater probability to extreme observations [17]. Its posterior variance can also respond to the variability of the observed data. Student’s-t process regression (STPR) is therefore suitable for learning geometry-dependent UWB positioning errors containing heavy-tailed samples.
The residual uncertainty after error compensation directly determines the reliability of collision avoidance. If the controller uses only the estimated mean position, it effectively treats that estimate as the true quadrotor state. The resulting command may satisfy the obstacle constraint for the estimated position but not for other states that remain plausible under the positioning uncertainty. Control barrier functions (CBFs) provide a certificate-based method for defining a safe set and rendering it forward-invariant under suitable control inputs [18]. CBF constraints have been combined with NMPC to support predictive control under explicit safety requirements [19,20]. Predictive CBFs extend safety evaluation over a finite prediction horizon and provide a recovery mechanism for potentially infeasible situations [21]. Runtime-assurance filters instead supervise a nominal controller and modify its commands when safety may be violated [22]. Conventional formulations, however, still rely on sufficiently accurate state information. Measurement-robust control barrier functions (MR-CBFs) address bounded estimation errors by tightening the safety constraint [23]. Stochastic control barrier functions (SCBFs) instead formulate probabilistic safety conditions for systems affected by random dynamics or measurements [24,25]. Kalman filtering has also been combined with stochastic barrier functions to bound finite-horizon failure probabilities [26]. Discrete-time CBF formulations provide probabilistic safety bounds for systems affected by stochastic disturbances [27]. Uncertainty-estimation-based robust CBFs account for uncertain dynamics by estimating and compensating for model errors online [28]. These developments show that uncertainty estimation and safety certification should be considered within the same control process. When the estimated state is represented by a probability distribution, collision avoidance can be formulated as a chance constraint that limits the probability of entering an unsafe region [29]. A belief control barrier function (BCBF) incorporates this risk requirement into the CBF condition by using both the mean and covariance of the belief state [30]. The covariance can therefore modify the required obstacle clearance according to the confidence of the state estimate.
Despite the above progress, two research gaps remain. First, few UWB error correction methods explicitly quantify geometry-dependent uncertainty in a form compatible with downstream safety control, and most existing studies treat positioning improvement and safe control as separate problems. Second, existing belief-space collision avoidance methods typically assume known noise characteristics and rarely exploit the spatial geometric features of UWB positioning errors to achieve adaptive safety margins. To bridge these gaps, this paper proposes a two-stage risk-aware framework for UWB-localized quadrotors under a fixed four-anchor configuration. First, an STPR model is developed to predict UWB positioning errors and quantify residual uncertainty using HDOP and nearest-anchor distance as input features. Then, compensated UWB measurements are fused with inertial data to obtain a Gaussian belief state, based on which a BCBF constraint is constructed and embedded into NMPC for risk-aware collision avoidance. The main contributions are summarized as follows:
- A geometry-aware STPR model is proposed to compensate for UWB positioning errors and quantify predictive uncertainty. By using HDOP and nearest-anchor distance as spatial features, the model captures heavy-tailed UWB positioning errors under a fixed four-anchor configuration without requiring additional anchors and provides both error correction and associated uncertainty estimates.
- A UWB uncertainty-aware collision-avoidance formulation is established by integrating the UWB-derived belief state with BCBF-based NMPC. Ellipsoidal obstacle regions are transformed into unit spheres, and the resulting collision constraints are approximated by tangent half-spaces. In this way, the chance-constrained safety condition is converted into a tractable deterministic constraint, allowing the prescribed confidence level and UWB-level positioning uncertainty to be explicitly incorporated into the NMPC optimization.
- A layered validation framework is constructed. Outdoor UWB positioning experiments verify the accuracy and uncertainty reliability of the STPR model, and numerical simulations demonstrate the collision-avoidance performance of the BCBF–NMPC controller under UWB-level positioning uncertainty, revealing the quantitative relationship between risk level and obstacle clearance.
The remainder of this paper is organized as follows. Section 2 introduces the UWB positioning scenario, HDOP, and system model. Section 3 presents the STPR error-compensation method and the BCBF–NMPC formulation. Section 4 reports the UWB positioning experiments and collision-avoidance simulations. Section 5 concludes the paper and discusses its limitations and future work.
2. System Description and Preliminaries
2.1. Problem Statement
Consider a quadrotor equipped with a UWB positioning system and operating in a confined environment. As shown in Figure 1, the positioning system consists of four fixed UWB anchors and an onboard UWB tag. The distances between the tag and the anchors are measured by the UWB system and used to determine the horizontal quadrotor position.
Figure 1.
UWB-based quadrotor positioning and collision-avoidance scenario.
In practical flight environments, sensor measurements are affected by stochastic noise, and the state available to the controller therefore contains uncertainty. For a quadrotor relying on UWB positioning, this uncertainty affects not only position estimation but also the construction of collision-avoidance constraints. A safety-control method based solely on a deterministic state estimate cannot explicitly account for the uncertainty in the estimated position. This study therefore considers the safety-control problem for a quadrotor whose state estimate is affected by UWB positioning uncertainty, with the objective of maintaining the quadrotor state within the safe set at a prescribed confidence level.
One source of this uncertainty is the UWB positioning error. When UWB signals are affected by obstruction and multipath reflection, their positioning errors may depart from a Gaussian distribution. In many cases, UWB positioning errors exhibit a non-Gaussian distribution containing outliers and heavy-tailed data. The probability density function of the UWB positioning error is given by the following [17]:
where denotes the gamma function; is the location parameter, which corresponds to the mean of the UWB positioning-error distribution for ; is the scale parameter characterizing the spread of the distribution; and is the degrees-of-freedom parameter. As increases, the distribution approaches a Gaussian distribution, whereas a smaller value of corresponds to a greater occurrence of outliers. The stochastic uncertainty associated with the UWB position measurements must therefore be considered in both state estimation and safety control.
2.2. UWB Positioning and Horizontal Dilution of Precision
UWB positioning determines the tag position from its measured distances to multiple anchors. Its high temporal resolution provides the basis for time-of-flight ranging. In this study, double-sided two-way ranging (DS-TWR) is used to measure the distance between the onboard tag and each UWB anchor. During the Poll–Response–Final message exchange, the signal propagation time is estimated as
where and denote the two round-trip intervals, and and denote the corresponding reply intervals.
The corresponding distance estimate is
where is the propagation speed of the UWB signal in air.
After the distances between the tag and the anchors have been obtained, the tag position is calculated by trilateration. Let denote the known position of anchor , and let denote the tag position. The corresponding range equation is
The range equations associated with the anchors are solved using the least-squares method to obtain the tag-position estimate .
The resulting horizontal positioning accuracy depends not only on the individual ranging errors but also on the relative geometry between the tag and the anchors. Horizontal dilution of precision (HDOP) is used to quantify the amplification of ranging errors in the horizontal positioning solution.
For a UWB positioning system with four anchors, let denote the coordinates of anchor , and let denote the tag coordinates. The horizontal distance between the tag and anchor is
Linearizing the range equations at the current tag-position estimate gives
where , , and . The elements of are defined as and , where is the distance evaluated at the current tag-position estimate.
Following the original formulation, the ranging errors are assumed to be mutually independent and to have the same variance . Since the UWB measurements are used for horizontal positioning, the linearized matrix relates the range perturbations to the horizontal position perturbation . The covariance of the horizontal positioning error is then given by
Let ; HDOP is then expressed as
where and denote the diagonal entries corresponding to the horizontal - and - directions of . Thus, HDOP depends on the number and relative geometry of the UWB anchors and characterizes the geometric amplification of horizontal positioning uncertainty.
Remark 1.
The UWB system provides the - and -coordinate measurements. HDOP is used as a geometric input feature for the STPR compensation described in Section 3.1, where two STPR models are trained independently to predict the positioning errors along the - and -axis, respectively. The -coordinate is obtained by weighted fusion of onboard barometric and optical-flow measurements and is not included in the STPR compensation.
2.3. System Modeling and State Estimation
The UWB positioning procedure described in Section 2.2 provides discrete position measurements of the quadrotor. To describe the continuous evolution of the system between successive measurements and the update of the estimated state at each measurement instant, the quadrotor motion and state-estimation process are modeled jointly.
The world coordinate system and the body coordinate system are established as shown in Figure 2, with their origins denoted by and , respectively. The position and velocity of the quadrotor in the world coordinate system are denoted by and , while and denote the roll and pitch angles, respectively. denotes the rotation matrix from the body coordinate system to the world coordinate system, is the mass of the quadrotor, is the total thrust, and represents the translational disturbance.
Figure 2.
Coordinate systems and principal variables of the simplified quadrotor model.
For controller design, the yaw angle is assumed to remain constant, the influence of high-order small disturbances is neglected, and the closed-loop roll and pitch dynamics are approximated by first-order inertial elements. Under these conditions, the quadrotor dynamics are expressed as follows [31]:
where and denote the roll and pitch time constants, respectively; and denote the corresponding gains; and is the control input.
Remark 2.
The simplified position-loop model and constant-yaw assumption adopted here are consistent with the cascaded QUAV control architecture used in previous studies, where the translational motion is described at the position-control level and the attitude, including yaw, is stabilized by an onboard proportional–integral–derivative (PID) controller. The feasibility of this modeling and control strategy was demonstrated through flight experiments in [32]. Since the focus of this work is on belief-space safety-constrained trajectory planning under positioning uncertainty, a detailed attitude-loop analysis is not pursued here.
Based on the simplified dynamics, the state vector is selected as follows [31]:
In terms of (9), the resulting nonlinear system can be written in the control-affine form:
where represents the system dynamics; and are the control- and disturbance-input matrices, respectively; is the control input; and is the disturbance input. The functions , , and satisfy the local Lipschitz condition.
For the system subject to the stochastic disturbance described above, consider the following control-affine system governed by a stochastic differential equation and a discrete-time measurement equation:
where is the system measurement, and and represent the process and measurement noises, respectively. The mappings , , and satisfy the local Lipschitz condition; denotes the control input; is the measurement matrix. The real-world system evolves continuously, whereas the system state obtained from sensor measurements is discrete. Let and denote the mean vector and covariance matrix of the quadrotor state, respectively. Their continuous-time evolution is described by the following differential equations [30]:
where is the Jacobian matrix of the system dynamics evaluated at , and is the process-noise covariance matrix. Because the state estimate is subject to uncertainty, the system is represented by the following belief state:
where denotes the vectorization operator. The continuous-time belief-state dynamics can then be written as
where the covariance dynamics are expressed in the control-affine form . Here, and denote the drift- and control-dependent components, respectively, while and denote their vectorized forms.
The two STPR models introduced below are used to compensate for the - and -coordinate UWB measurements. The compensated coordinates are combined with the -coordinate described in Remark 1 to form the three-dimensional position measurement, which is then fused with the IMU measurements through a Kalman filter. In the filtering stage, the process and measurement noises are modeled as zero-mean Gaussian variables, with covariance matrices and , respectively. The Kalman-filter recursion consists of prediction and update stages.
Prediction stage:
Update stage:
where and are the prior and posterior state estimates, and are the corresponding covariance matrices, is the Kalman gain, is the measurement matrix, and are the system matrices, and and are the process- and measurement-noise covariance matrices, respectively. For the horizontal-position measurements, the corresponding entries of are specified using the STPR posterior predictive variances given in (27).
Expressing the discrete Kalman-filter update in terms of the belief state gives
where and denote the prior and posterior belief states, respectively. The Kalman gain is given by , where is the measurement matrix and is the measurement-noise covariance matrix. The stochastic correction of the prior mean is denoted as . Under the linear Gaussian measurement model, , where . Consequently, the posterior state distribution encoded by the belief state is represented as .
Combining the continuous-time belief propagation with the discrete Kalman-filter update yields the following hybrid belief-state dynamics.
The continuous-time dynamics describe the evolution of the state mean and covariance between two successive measurement instants, while the discrete update incorporates the corrected position and IMU measurements. The resulting belief state is subsequently used to construct the probabilistic safety constraint.
3. Proposed Method
The overall architecture of the proposed framework is illustrated in Figure 3. As shown in Figure 3, the framework consists of two sequential stages: (1) geometry-aware UWB positioning error quantification via STPR, and (2) belief-space collision avoidance via BCBF-embedded NMPC. The STPR model first predicts positioning errors and provides spatially varying uncertainty estimates based on geometric features. The compensated UWB measurements are then fused with IMU data to obtain the Gaussian belief state. Finally, the belief mean and covariance are used to construct a risk-aware BCBF constraint, which is integrated into the NMPC optimization to generate safe control commands. In the following, each stage is presented in detail.
Figure 3.
Overall architecture of the proposed STPR–BCBF–NMPC framework for UWB-based risk-aware collision avoidance.
3.1. Geometry-Aware STPR for UWB Positioning Error Quantification
As described in Section 2, UWB positioning errors generally exhibit non-Gaussian behavior characterized by heavy tails and outliers. For a fixed anchor configuration, two Student’s-t process regression (STPR) models are therefore used to learn the spatial variations in the positioning errors along the - and -axis and to predict the corresponding positioning errors.
The training feature set is constructed as
where denotes the distance to the nearest UWB anchor. The STPR input vector consists of and HDOP. Two STPR models are trained independently using the same input vector. Their response variables, and , represent the UWB positioning errors along the - and -axis, respectively. Once their hyperparameters have been optimized independently, the feature vector of a query point is passed to both models. The resulting error predictions are subsequently used to compensate for the UWB measurements.
In this study, the prior mean of each latent positioning-error function is set to zero. The two axis-specific regression models are written compactly as
where is the latent regression function for axis , and is the corresponding zero-mean Gaussian observation noise with variance :
The covariance between the latent function values is specified by the following kernel function:
where and are two input vectors in the training set, and denotes the kernel hyperparameter vector. These hyperparameters are determined by maximizing the log marginal likelihood of the training data. With the mean function, kernel function, and degrees-of-freedom parameter, the Student’s-t process (STP) prior over the latent regression function is written as
where is the mean function and is the prior degrees-of-freedom parameter. After conditioning on the training samples, the predictive probability density of the STPR output is given by
where , and denote the predictive location parameter, predictive shape parameter, and predictive degrees-of-freedom parameter of the STPR output, respectively. Here, , where denotes the number of STPR training samples. For , is also the predictive mean, and the shape parameter satisfies , where is the predictive variance.
Given the training samples, the posterior predictive mean of the STPR output at a query input is
The corresponding posterior predictive variance is
where , , is the kernel matrix, and is the -dimensional identity matrix.
At each measurement instant, the posterior means in (26) are used to compensate for the horizontal UWB measurements, and the predictive variances in (27) determine the corresponding entries of the measurement-noise covariance matrix in the following (17):
When the same kernel function is used, the posterior mean of the STP is identical to that of the corresponding Gaussian process (GP). The two processes differ in their posterior variances because the STP posterior variance explicitly depends on the observed outputs. Specifically, the STP posterior variance is greater than its GP counterpart when . Conversely, the STP posterior variance is smaller when this quadratic term is less than . The difference between the two processes becomes more pronounced as decreases. The overall procedure for geometry-aware STPR-based UWB positioning-error prediction, uncertainty quantification, compensation, and belief-state generation is summarized in Algorithm 1.
| Algorithm 1 Geometry-aware STPR-based UWB compensation and belief-state generation |
![]() |
3.2. BCBF-Based NMPC for Risk-Aware Collision Avoidance
Obstacles are approximated by ellipsoidal collision regions. To reduce the computational complexity of probabilistic collision avoidance, the ellipsoidal constraint is transformed into a risk-aware half-space constraint that can be incorporated into the belief control barrier function (BCBF).
3.2.1. Ellipsoidal Risk-Aware Safe Set
Assumption 1.
Following STPR-based positioning-error compensation and Kalman filtering, the posterior quadrotor position associated with the belief state , denoted by , is modeled as a Gaussian random vector, . Here and denote the position subvector of and the corresponding position-covariance block of in (14), respectively.
Definition 1.
Ref. [30]: Consider the Gaussian random vector , whose distribution is parameterized by the belief state through the mean and the covariance . The probability that satisfies the half-space constraint is given by the following [30]:
where is the normal vector defining the half-space, is its boundary offset, and denotes the standard error function.
Definition 2.
Ref. [30]: For a scalar random variable and a confidence level , where , the value-at-risk (VaR) of at level is defined as
where denotes a candidate lower-quantile threshold. By setting the scalar random safety margin to , the chance constraint can be equivalently expressed as
The collision region of an obstacle is approximated by the following ellipsoidal set:
where denotes a candidate quadrotor position and is the obstacle-center position. The weighted norm is defined by , with . Here, , and are the semi-axis lengths of the obstacle, is the prescribed quadrotor safety radius, and specifies the obstacle orientation. The corresponding safe-state set of the quadrotor system is defined as
Because the posterior quadrotor position follows an unbounded Gaussian distribution, collision avoidance cannot be guaranteed deterministically. The corresponding chance constraint is therefore formulated as
where denotes the prescribed upper bound on the collision probability between the quadrotor and obstacle .
Directly transforming this chance constraint into a tractable deterministic constraint is computationally demanding. The ellipsoidal constraint is therefore approximated by a half-space constraint. To linearize the collision condition, the ellipsoidal collision region is first mapped to a unit sphere through the affine coordinate transformation .
Because the posterior quadrotor position follows a Gaussian distribution, the transformed position satisfies
where , denote the transformed mean and covariance, respectively. The transformed coordinates satisfy
A collision occurs when . The unit normal vector is evaluated along the transformed posterior mean as
The tangent hyperplane to the unit sphere at the contact point is
and the corresponding exterior safe half-space is
The ellipsoidal collision-avoidance constraint can therefore be approximated by the following probabilistic half-space constraint:
Following the linearization in the transformed spherical space, the chance constraint can be expressed in the following deterministic form:
3.2.2. Belief Control Barrier Function Design
The barrier function is constructed from the normalized risk-aware half-space constraint associated with the ellipsoidal obstacle:
Definition 3.
Ref. [30]: Given the safe set , a continuously differentiable function is a BCBF if, for every Gaussian belief state satisfying , there exists a control input , such that
The following theorem establishes the forward invariance of the safe set under the continuous-time belief dynamics.
Lemma 1.
Ref. [30]: If there exists a locally Lipschitz continuous control input satisfying the BCBF condition, then, for a given safe set and an initial belief satisfying , .
The proof follows the conventional forward-invariance proof for state-based control barrier functions [18] and is omitted here.
Lemma 2.
Ref. [30]: For the hybrid belief-state system (19), suppose that a locally Lipschitz continuous control input satisfying the BCBF condition exists for all times. In the following, denotes the position component of the Kalman innovation in (18) expressed in the transformed spherical coordinates, and denotes its covariance. Thus, the probability that the updated belief violates the BCBF condition is bounded by
where .
Proof.
Because the control input satisfies the BCBF condition, it follows that
The BCBF value following the discrete belief update is
Substituting the discrete mean update into and adding a covariance term that sums to zero gives
Rearranging the preceding expression yields
The probability that the belief leaves the safe set following the discrete update is therefore
This completes the proof. □
3.2.3. BCBF-Constrained NMPC Formulation
The BCBF-based safe-set constraint is embedded into the NMPC optimization to achieve risk-aware collision avoidance over the prediction horizon. The NMPC optimal control problem is formulated as
where is the prediction horizon, and and denote the predicted and reference state means at step , respectively, for . Accordingly, and are their terminal values. The matrices , and weight the stage tracking error, control effort, and terminal tracking error, respectively. denotes the discrete belief state transition, while specify the control-input bounds. The constraint enforces risk-aware safety throughout the prediction horizon. The terminal condition is used as a closed-trajectory condition for the periodic reference path considered in this study. At each control instant, the optimization is resolved, and only the first optimal control input is applied according to the receding-horizon principle.
4. Experimental and Simulation Results
This study adopts a phased verification strategy to evaluate the proposed two-stage risk-aware framework, with the objective of systematically validating each core module and the technical feasibility of the overall linkage. The verification is carried out in two sequential layers of localization layer validation and control layer validation. In the localization layer validation, outdoor UWB positioning experiments are conducted to verify the accuracy, uncertainty reliability and spatial geometric characteristics of the geometry-aware STPR error prediction model. This layer solves the core problem of whether geometry-dependent positioning uncertainty can be reliably quantified without additional anchors. In addition, in the control layer validation, numerical simulations are performed to verify the collision-avoidance performance of the BCBF–NMPC scheme. The simulation parameters are calibrated according to the experimental measurement results, so as to examine whether the controller can achieve risk-adjustable obstacle avoidance under UWB-level positioning uncertainty.
The two layers of verification are logically connected. The statistical characteristics and spatial distribution law of positioning uncertainty obtained from the experiments provide the physical basis and parameter basis for the simulation, and the simulation further verifies the engineering value of the uncertainty quantification results. This phased strategy can fully verify the effectiveness of each module under the existing experimental conditions and clarify the implementation boundary of the current study.
4.1. UWB Positioning-Error Prediction
The positioning experiment employed a UWB module developed in our laboratory. A real-time kinematic (RTK) positioning module was introduced to provide a reference trajectory for evaluating the UWB positioning error. The nominal positioning error of the RTK module was approximately 1 cm. After the coordinate frames of the two positioning systems were aligned, the UWB positioning error was obtained by subtracting the UWB position measurements from the corresponding RTK reference coordinates. The positioning modules used in the experiment are shown in Figure 4.
Figure 4.
Positioning modules: (a) UWB module; (b) RTK module.
The experimental field and UWB anchor layout are shown in Figure 5. The experiment was conducted in a 10 m × 10 m outdoor field. The positioning system consisted of four fixed UWB anchors and one onboard tag. To provide signal coverage over the test field, the four anchors were placed at its corners. Their coordinates were (0, 0, 0.8), (10, 0, 0.8), (0, 10, 0.8), and (10, 10, 0.8) m.
Figure 5.
Experimental field and UWB anchor layout.
The STPR model takes HDOP and nearest-anchor distance as input features and takes the Euclidean norm of the positioning error as the regression output. A squared exponential kernel function is adopted, and the kernel hyperparameters are optimized by maximizing the log marginal likelihood. The degrees-of-freedom parameter is tuned via five-fold cross-validation. For fair comparison, a Gaussian process (GP) model with the same kernel function, feature set and hyperparameter optimization procedure is also constructed as the baseline.
The UWB positioning errors predicted by the STPR model with the corresponding measured errors are compared in Figure 6. The error magnitude was calculated as the Euclidean norm of the two-dimensional positioning error rather than the error along an individual coordinate axis. The predicted error closely followed the overall variation in the measured error, while most measurements remained within the 95% predictive interval. These results demonstrate that the STPR model can effectively capture variations in UWB positioning errors and provide reasonable estimates of the associated uncertainty.
Figure 6.
Comparison of STPR-predicted and measured UWB positioning errors.
To further demonstrate the superiority of the proposed method in practical error compensation, an outdoor flight experiment was conducted. The position measurements provided by the RTK system were used as the ground truth, and the positioning performances of raw UWB, the conventional Kalman filter (KF), and the proposed STPR-KF method were compared. As shown in Figure 7, the conventional KF effectively suppressed high-frequency fluctuations in the UWB measurements but could not correct the systematic positioning bias caused by anchor deployment imperfections and multipath propagation. In contrast, the STPR-KF method compensated for the systematic UWB positioning error before applying Kalman filtering, resulting in a flight trajectory that more closely followed the RTK ground truth.
Figure 7.
Comparison of outdoor flight trajectories using different positioning methods.
The corresponding positioning errors obtained using the three methods are presented in Figure 8. The RMSE values of the raw UWB measurements and the conventional KF were 0.299 m and 0.292 m, respectively, whereas the STPR-KF method reduced the RMSE to 0.071 m. The results show that conventional Kalman filtering alone cannot effectively eliminate systematic UWB positioning errors, whereas the proposed STPR-KF method substantially improves both positioning accuracy and robustness by combining error compensation with state filtering.
Figure 8.
Comparison of positioning errors using different positioning methods.
The influence of the degrees-of-freedom parameter was further evaluated and compared with that of a Gaussian-process model. The corresponding results are summarized in Table 1.
Table 1.
Comparison of Gaussian process and T-Process with different degrees of freedom.
It can be observed from Table 1 that, under all tested degrees-of-freedom settings, STP models achieve substantially lower RMSE and higher coverage probability than the GP baseline. As increases, the RMSE first decreases and then increases, while the coverage probability generally shows an upward trend. A smaller enhances robustness to outliers but may over-smooth normal error samples, whereas a larger approaches the GP behavior and produces more conservative uncertainty estimates. On the present dataset, = 5 achieves the optimal balance between prediction accuracy and uncertainty reliability.
4.2. Risk-Aware Collision-Avoidance Simulation
Numerical simulations are conducted to evaluate the collision-avoidance performance of the proposed BCBF–NMPC controller. All simulation parameters are calibrated according to the experimental results in Section 4.1: the baseline standard deviation of positioning noise is set to 0.04 m, which is consistent with the residual error level after STPR compensation; the spatial variation law of uncertainty follows the geometric dependence revealed in Section 4.1, i.e., the position covariance increases as the quadrotor approaches the boundary of the positioning area.
Gaussian white noise is added to the quadrotor position measurements, which are processed by the Kalman filter to obtain the state mean and covariance. The resulting belief state is then fed into the BCBF–NMPC controller for risk-aware trajectory planning. In the simulation, the NMPC control input is defined as three-axis velocity commands, and the state vector is reduced to three-dimensional position. The conversion from velocity commands to attitude commands is implemented by a low-level PID controller. The prediction horizon N is set to 60 steps. The state weight matrix and control weight matrix are set to and , respectively, and the velocity control bound is set to .
The quadrotor departed from (0, 0, 0) and followed a reference trajectory generated using B-spline interpolation. An ellipsoidal obstacle was positioned at (4.0, 0.0, 2.0), with semi-axis lengths of 1.2 m, 0.8 m, and 1.0 m along the , and z axis, respectively. The default safety confidence level is set to 95%.
The three-dimensional trajectory and its projection onto the – plane are presented in Figure 9. The safety confidence level was set to 95%. The simulated mean trajectory passed around the ellipsoidal obstacle, while the variation in the belief region reflected the uncertainty introduced by the position noise. Under the specified simulation conditions, the BCBF constraint enabled the NMPC controller to account for the estimated state uncertainty during collision avoidance.
Figure 9.
Risk-aware collision-avoidance simulation results.
The time histories of the position states and control inputs during the flight are presented in Figure 10. As the quadrotor approaches the obstacle, the BCBF safety constraint is gradually activated and modifies the velocity commands, causing the trajectory to deviate from the reference path and bypass the obstacle from the side. After the quadrotor completely clears the obstacle, the safety constraint becomes inactive, and the quadrotor gradually converges back to the reference trajectory. All control inputs remain within the specified bounds during the whole process, and no command saturation occurs.
Figure 10.
Quadrotor position states and control inputs during collision avoidance.
The simulated trajectories obtained under different values of the risk parameter are shown in Figure 11. The results indicate that directly affects the conservativeness of the collision-avoidance behavior. When a larger value of is selected, the controller imposes a stricter safety requirement, and the quadrotor tends to maintain a larger distance from the obstacle during flight. In contrast, when is assigned a smaller value, the resulting trajectory becomes more aggressive and passes closer to the obstacle, which improves the use of the available space but increases the potential collision risk. Therefore, the selection of should consider both the required safety level and the spatial constraints of the operating environment. In practical deployment, can be tuned according to the uncertainty level of UWB positioning and the available maneuvering space so as to achieve a suitable balance between safety conservativeness and trajectory-tracking performance.
Figure 11.
Trajectories obtained under different values of the risk parameter .
To further evaluate the effectiveness of the proposed BCBF-NMPC strategy, comparative simulations were conducted against two representative CBF-based baselines, namely a fixed-margin CBF method and a robust CBF method. All methods were evaluated using the same reference trajectory, obstacle configuration, and simulation settings. As shown in Figure 12, the three methods were able to generate feasible collision-avoidance trajectories around the obstacle. Compared with the fixed-margin CBF method, the proposed BCBF-NMPC maintained a larger clearance from the safety boundary during obstacle avoidance. Compared with the robust CBF method, BCBF-NMPC produced a trajectory with comparable safety behavior while preserving smoother tracking of the reference path in the obstacle-avoidance region.
Figure 12.
Trajectory comparison of BCBF-NMPC with fixed-margin CBF and robust CBF baselines.
Overall, the parameter sensitivity results and the baseline comparison jointly demonstrate the adaptability of the proposed framework. The risk parameter δ allows the conservativeness of the planned trajectory to be adjusted according to the desired safety level, while the comparison with fixed-margin and robust CBF baselines shows that BCBF-NMPC can maintain a clear safety buffer without excessively sacrificing trajectory tracking performance. This behavior is particularly suitable for UWB-localized quadrotor operation, where positioning uncertainty varies spatially and the safety margin should be adjusted according to the local risk level.
5. Conclusions
This study developed an STPR-BCBF-NMPC framework for risk-aware collision avoidance in UWB-localized quadrotors under a fixed four-anchor configuration. The framework connects geometry-aware UWB positioning-error compensation, Kalman-filter-based belief-state estimation, and probabilistic collision avoidance. Unlike approaches that treat positioning correction and safety control separately, the proposed method uses UWB geometric features to quantify residual positioning uncertainty and incorporates the resulting belief state into the NMPC safety constraint. The experimental and simulation results show that the STPR-KF method reduces the positioning RMSE to 0.071 m, compared with 0.299 m for the raw UWB measurements and 0.292 m for the conventional KF. In addition, the proposed BCBF-NMPC method achieves better obstacle-avoidance performance than the fixed-margin CBF and robust CBF methods.
Several limitations remain for future work. First, the performance of the STPR model under varying anchor geometries, stronger NLOS propagation, and more diverse environments requires further validation. Second, the experimental evaluation can be extended to more diverse UWB scenarios by implementing the complete collision-avoidance framework on an onboard quadrotor platform and assessing its online computational performance and closed-loop safety under real flight conditions.
Author Contributions
Conceptualization, Y.Y. and J.C.; methodology, Y.Y. and J.C.; software, Y.Y. and J.C.; validation, Y.Y. and J.C.; formal analysis, Y.Y. and J.C.; investigation, Y.Y.; resources, Y.S.; data curation, Y.Y.; writing—original draft preparation, Y.Y.; writing—review and editing, Y.S.; visualization, Y.Y. and J.C.; supervision, Y.S.; project administration, Y.S.; funding acquisition, Y.S. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the Natural Science Foundation of Jiangsu Province under Grant BK20251019 and the Natural Science Fundamental Research Project of Jiangsu Colleges and Universities under Grant 25KJB590001.
Data Availability Statement
Data will be made available on request.
Acknowledgments
The authors acknowledge the support provided by the School of Automation, Jiangsu University of Science and Technology, during the preparation of this study. During the preparation of this manuscript, the authors used ChatGPT version 5.6 (OpenAI) for language editing, clarity improvement, and drafting assistance. The authors reviewed and edited all outputs and take full responsibility for the content of this publication. These tools were not used to generate or modify experimental data, numerical results, or figures.
Conflicts of Interest
The authors declare no conflict of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| BCBF | Belief control barrier function |
| CBF | Control barrier function |
| DS-TWR | Double-sided two-way ranging |
| GDOP | Geometric dilution of precision |
| GNSS | Global Navigation Satellite System |
| GP | Gaussian process |
| HDOP | Horizontal dilution of precision |
| IMU | Inertial measurement unit |
| INS | Inertial navigation system |
| KF | Kalman filter |
| LOS | Line of sight |
| MR-CBF | Measurement-robust control barrier function |
| NLOS | Non-line of sight |
| NMPC | Nonlinear model predictive control |
| PID | Proportional–integral–derivative |
| RMSE | Root-mean-square error |
| RTK | Real-time kinematic positioning |
| SCBF | Stochastic control barrier function |
| STP | Student’s-t process |
| STPR | Student’s-t process regression |
| UWB | Ultra-wideband |
| VaR | Value at risk |
References
- Liu, J.; Luo, W.; Zhang, G.; Li, R. Unmanned Aerial Vehicle Path Planning in Complex Dynamic Environments Based on Deep Reinforcement Learning. Machines 2025, 13, 162. [Google Scholar] [CrossRef] [Scilit]
- Tran, N.-H.; Dao, Q.-T.; Nguyen, T.-V.-A.; Bui, N.-T. Trajectory and Parameter Optimization in Robust Tracking Control of a Quadrotor. IEEE Access 2025, 13, 155215–155232. [Google Scholar] [CrossRef] [Scilit]
- Lindqvist, B.; Mansouri, S.S.; Agha-Mohammadi, A.-A.; Nikolakopoulos, G. Nonlinear MPC for Collision Avoidance and Control of UAVs with Dynamic Obstacles. IEEE Robot. Autom. Lett. 2020, 5, 6001–6008. [Google Scholar] [CrossRef] [Scilit]
- Rodriguez-Guevara, D.; Favela-Contreras, A.; Gonzalez-Villarreal, O.J. A qLPV-MPC Control Strategy for Trajectory Tracking of Quadrotors. Machines 2023, 11, 755. [Google Scholar] [CrossRef] [Scilit]
- Sang, C.L.; Adams, M.; Hesse, M.; Rückert, U. Bidirectional UWB localization: A review on an elastic positioning scheme for GNSS-deprived zones. IEEE J. Indoor Seamless Position. Navig. 2023, 1, 161–179. [Google Scholar] [CrossRef] [Scilit]
- Ridolfi, M.; Kaya, A.; Berkvens, R.; Weyn, M.; Joseph, W.; De Poorter, E. Self-calibration and collaborative localization for UWB positioning systems: A survey and future research directions. ACM Comput. Surv. 2021, 54, 88. [Google Scholar]
- Fontaine, J.; Che, F.; Shahid, A.; Van Herbruggen, B.; Ahmed, Q.Z.; Bin Abbas, W.; De Poorter, E. Transfer learning for UWB error correction and (N)LOS classification in multiple environments. IEEE Internet Things J. 2024, 11, 4085–4101. [Google Scholar] [CrossRef] [Scilit]
- Huang, Y.; Mazuelas, S.; Ge, F.; Shen, Y. Indoor localization system with NLOS mitigation based on self-training. IEEE Trans. Mob. Comput. 2023, 22, 3952–3966. [Google Scholar] [CrossRef] [Scilit]
- Jia, J.; Guo, K.; Li, W.; Yu, X.; Guo, L. Composite filtering for UWB-based localization of quadrotor UAV with skewed measurements and uncertain dynamics. IEEE Trans. Instrum. Meas. 2022, 71, 1002313. [Google Scholar] [CrossRef] [Scilit]
- Bach, S.-H.; Yi, S.-Y. Constrained least-squares trilateration for indoor positioning system under high GDOP condition. IEEE Trans. Ind. Inform. 2024, 20, 4550–4558. [Google Scholar] [CrossRef] [Scilit]
- Tian, Y.; Lian, Z.; Wang, P.; Wang, M.; Yue, Z.; Chai, H. Application of a long short-term memory neural network algorithm fused with Kalman filter in UWB indoor positioning. Sci. Rep. 2024, 14, 1925. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Sun, J.; Sun, W.; Zheng, J.; Chen, Z.; Tang, C.; Zhang, X. A novel UWB/IMU/odometer-based robot localization system in LOS/NLOS mixed environments. IEEE Trans. Instrum. Meas. 2024, 73, 7502913. [Google Scholar] [CrossRef] [Scilit]
- Sui, X.; Song, J.; Wang, C.; Ding, W.; Gao, S.; Shi, Z. UWB/MEMS IMU integrated positioning method based on NLOS angle discrimination and MAP constraints. Sci. Rep. 2024, 14, 19879. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zhang, T.; Yuan, M.; Wei, L.; Wang, Y.; Tang, H.; Niu, X. MR-ULINS: A tightly-coupled UWB-LiDAR-inertial estimator with multi-epoch outlier rejection. IEEE Robot. Autom. Lett. 2024, 9, 11786–11793. [Google Scholar] [CrossRef] [Scilit]
- Wang, S.; Dai, P.; Xu, T.; Nie, W.; Cong, Y.; Gao, F.; Xing, J. Application of variational Bayesian-based cubature information filter for UWB/INS tightly coupled positioning system. Meas. Sci. Technol. 2025, 36, 046302. [Google Scholar] [CrossRef] [Scilit]
- Lu, C.; Guo, Z.; Qi, X.; Mo, L.; Liu, L. A decoupled backend optimizer for UWB localization in NLOS environments. Measurement 2026, 276, 121494. [Google Scholar] [CrossRef] [Scilit]
- Tracey, B.D.; Wolpert, D.H. Upgrading from Gaussian processes to Student’s-t processes. In Proceedings of the 2018 AIAA Non-Deterministic Approaches Conference, Kissimmee, FL, USA, 8–12 January 2018. [Google Scholar]
- Ames, A.D.; Grizzle, J.W.; Tabuada, P. Control barrier function based quadratic programs with application to adaptive cruise control. In Proceedings of the 53rd IEEE Conference on Decision and Control, Los Angeles, CA, USA, 15–17 December 2014; pp. 6271–6278. [Google Scholar]
- Schilliger, J.; Lew, T.; Richards, S.M.; Hänggi, S.; Pavone, M.; Onder, C. Control barrier functions for cyber-physical systems and applications to NMPC. IEEE Robot. Autom. Lett. 2021, 6, 8623–8630. [Google Scholar] [CrossRef] [Scilit]
- Zeng, J.; Li, Z.; Sreenath, K. Enhancing feasibility and safety of nonlinear model predictive control with discrete-time control barrier functions. In Proceedings of the 2021 60th IEEE Conference on Decision and Control, Austin, TX, USA, 14–17 December 2021; pp. 6137–6144. [Google Scholar]
- Wabersich, K.P.; Zeilinger, M.N. Predictive control barrier functions: Enhanced safety mechanisms for learning-based control. IEEE Trans. Autom. Control 2023, 68, 2638–2651. [Google Scholar] [CrossRef] [Scilit]
- Hobbs, K.L.; Mote, M.L.; Abate, M.C.L.; Coogan, S.D.; Feron, E.M. Runtime assurance for safety-critical systems: An introduction to safety filtering approaches for complex control systems. IEEE Control Syst. Mag. 2023, 43, 28–65. [Google Scholar] [CrossRef] [Scilit]
- Dean, S.; Taylor, A.J.; Cosner, R.K.; Recht, B.; Ames, A.D. Guaranteeing safety of learned perception modules via measurement-robust control barrier functions. In Proceedings of the 2020 Conference on Robot Learning, Virtual Conference, 16–18 November 2020; Volume 155, pp. 654–670. [Google Scholar]
- Clark, A. Control barrier functions for stochastic systems. Automatica 2021, 130, 109688. [Google Scholar] [CrossRef] [Scilit]
- Nishimura, Y.; Hoshino, K. Control barrier functions for stochastic systems and safety-critical control designs. IEEE Trans. Autom. Control 2024, 69, 8088–8095. [Google Scholar] [CrossRef] [Scilit]
- Yaghoubi, S.; Fainekos, G.; Yamaguchi, T.; Prokhorov, D.; Hoxha, B. Risk-bounded control with Kalman filtering and stochastic barrier functions. In Proceedings of the 2021 60th IEEE Conference on Decision and Control, Austin, TX, USA, 14–17 December 2021; pp. 5213–5219. [Google Scholar]
- Cosner, R.K.; Culbertson, P.; Taylor, A.J.; Ames, A.D. Robust safety under stochastic uncertainty with discrete-time control barrier functions. In Proceedings of the Robotics: Science and Systems XIX, Daegu, Republic of Korea, 10–14 July 2023. [Google Scholar]
- Daş, E.; Burdick, J.W. Robust control barrier functions using uncertainty estimation with application to mobile robots. IEEE Trans. Autom. Control 2025, 70, 4766–4773. [Google Scholar] [CrossRef] [Scilit]
- Blackmore, L.; Ono, M.; Williams, B.C. Chance-constrained optimal path planning with obstacles. IEEE Trans. Robot. 2011, 27, 1080–1094. [Google Scholar] [CrossRef] [Scilit]
- Vahs, M.; Pek, C.; Tumova, J. Belief control barrier functions for risk-aware control. IEEE Robot. Autom. Lett. 2023, 8, 8565–8572. [Google Scholar] [CrossRef] [Scilit]
- Ye, H.; Cao, J.; Yang, X.; Shao, S. Safety-critical model predictive control for quadcopter UAV subject to wind disturbances and measurement errors in confined environments. Aerosp. Sci. Technol. 2026, 173, 111790. [Google Scholar] [CrossRef] [Scilit]
- Ma, H.; Chen, M.; Guo, H.; Song, X. Fixed-time prescribed performance-based adaptive neural safe control for QUAV under flight environment constraints. IEEE Trans. Ind. Electron. 2026, 73, 9153–9163. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.












