Abstract
Reliable robot autonomy hinges on decision-making systems that account for uncertainty without imposing overly conservative restrictions on the robot’s action space. We introduce Chance-Constrained Via-Point-Based Stochastic Trajectory Optimisation (CC-VPSTO), a real-time capable framework for generating task-efficient robot trajectories that satisfy constraints with high probability by formulating stochastic control as a chance-constrained optimisation problem. Since such problems are generally intractable, we propose a deterministic surrogate formulation based on Monte Carlo sampling, solved efficiently with gradient-free optimisation. To address bias in naïve sampling approaches, we quantify approximation error and introduce padding strategies to improve reliability. We focus on three challenges: (i) sample-efficient constraint approximation, (ii) conditions for surrogate solution validity, and (iii) online optimisation. Integrated into a receding-horizon MPC framework, CC-VPSTO enables reactive, task-efficient control under uncertainty, balancing constraint satisfaction and performance in a principled manner. The strengths of our approach lie in its generality, that is, no assumptions on the underlying uncertainty distribution, system dynamics, cost function, or the form of inequality constraints; and its applicability to online robot motion planning. We demonstrate the validity and efficiency of our approach in both simulation and on a Franka Emika robot. Videos and additional material are made available here: https://sites.google.com/oxfordrobotics.institute/cc-vpsto.
1. Introduction
Uncertainty is inherent to most real-world robotics applications, arising from noisy sensors, imprecise actuators, and incomplete or evolving knowledge of the environment. Effectively managing this uncertainty is essential for achieving reliable and efficient robot behaviour, particularly in online motion planning tasks that require fast adaptation to new information. In this work, we adopt a chance-constrained perspective, where constraints such as collision avoidance (cf. Figure 1), force limits, or task completion cannot be guaranteed but must instead be satisfied with high probability (Dai et al., 2019; Prékopa, 2013). Unlike traditional robust control methods (Badings et al., 2023; Köhler et al., 2023; Majumdar and Tedrake, 2017) that optimise for the worst-case scenario under bounded uncertainty, chance constraints enable a more general, probabilistic treatment of uncertainty (Margellos et al., 2014; Schildbach et al., 2014), allowing for more explicit trade-offs between constraint satisfaction and task efficiency.
Crucially, we are interested in an online robot motion planning setting where constraint violations are undesirable but not catastrophic, and where performance (e.g., motion duration) remains important. Our objective is to trade-off constraint satisfaction and task performance in a principled manner that avoids unnecessary conservatism. While Model Predictive Control (MPC) can implicitly provide some robustness via frequent replanning, it typically relies on deterministic models, leading to brittle, myopic behaviour in stochastic settings. Incorporating probabilistic information directly into the control loop remains a key challenge, but is essential for enabling more flexible and robust decision-making in uncertain environments.
Chance-constrained formulations, which require that constraints must be satisfied with high probability (e.g., at least 95%), offer a natural solution but are in general intractable (Blackmore et al., 2010). One common strategy is to approximate the chance constraint and reformulate the problem as a deterministic surrogate that can be addressed using standard optimisation techniques. However, identifying a suitable approximation is often non-trivial. Common approaches either introduce significant conservatism at the cost of task efficiency (Calafiore and Campi, 2006; Lew et al., 2023), or, like naïve sample average approximation (SAA) methods (Pagnoncelli et al., 2009; Shapiro, 2003; Shapiro et al., 2021), are overly optimistic under limited samples, biasing solutions toward regions that appear feasible in the surrogate problem but violate the true constraint (Homem-de Mello and Bayraksan, 2014), a phenomenon we also observed in our experiments (cf., e.g., Figure 10).
Towards this end, we propose (1) A new surrogate formulation for chance-constrained trajectory optimisation, designed specifically for online motion planning. It maintains low added conservatism even with small sample sizes, while accounting for approximation errors to avoid overly optimistic solutions. (2) A theoretical analysis of the surrogate’s correctness. Under the assumption of independence between the solution and the samples, we show that the solution of the surrogate problem satisfies the original (intractable) chance constraint with high confidence. We further provide insights into why the approach remains effective in receding-horizon settings, such as MPC, where the independence assumption may not strictly hold. (3) The empirical evaluation of our approach across a range of challenging tasks. Even when used heuristically (i.e., without guaranteed independence), the surrogate performs reliably in both simulation and real-world robot experiments. (4) The integration of the surrogate formulation into VP-STO, an MPC framework for online reactive robot control (Jankowski et al., 2023), extending it to a stochastic setting. This enables receding-horizon control that effectively balances constraint satisfaction and task performance under uncertainty.
The key advantages of our approach are: (i) flexibility to handle arbitrary uncertainty distributions, (ii) compatibility with real-time MPC via parallelisable sampling and optimisation, and (iii) support for general inequality constraints, such as collision avoidance, force limits, or performance objectives.
2. Related work
Risk-averse planning and control methods in robotics aim to enforce constraints in the presence of uncertainty. These methods typically enforce these constraints by formulating them as chance constraints (CCs) or by using risk measures, such as Conditional Value-at-Risk (CVaR). When employed in an online receding-horizon control scheme, these methods fall into the category of Stochastic Model Predictive Control (SMPC) (Heirung et al., 2018; Mesbah, 2016). SMPC addresses optimal control problems for dynamical systems under stochastic uncertainty, while enforcing constraints that must be satisfied with high probability (i.e., chance constraints). In the context of chance-constrained control, the literature distinguishes between two types of formulations for limiting constraint violations. These can be defined either point-wise, that is, imposing a separate probability bound at each time step, or jointly, where the constraint must hold over the entire (finite) time horizon with high probability. We focus on joint chance constraints in this work, as they are preferable in robotics where it is important to account for the cumulative effect of uncertainty over time. As discussed by Janson et al. (2017), many approaches bound the joint probability using either an additive approach, summing over all point-wise probabilities via Boole’s inequality (e.g., Ono and Williams, 2008; Priore and Oishi, 2023; Castillo-Lopez et al., 2020), or a multiplicative approach, which involves explicitly constraining the product of the complements of point-wise probabilities (e.g., Sun et al., 2016; Van Den Berg et al., 2011). Yet, both of these strategies do not account for the time correlations of uncertainty, and thus may lead to over- or underestimation of the joint probability of constraint violation. We thus adopt the time-wise supremum approach from Lew et al. (2023), which evaluates only the maximum constraint violation over the entire time horizon for a given trajectory, thereby capturing time correlations effectively.
The main challenge in SMPC is evaluating the probability of constraint violation over the planning horizon. This requires computing an expectation integral over time and space, which is typically intractable for general uncertainty distributions and constraint structures (Peña-Ordieres et al., 2020). As a result, SMPC must address two key questions: (i) how to approximate or bound the probability of constraint violation in a tractable way, and (ii) how to solve the resulting optimisation problem with minimal computational overhead for online control. Previous approaches to these questions proposed semidefinite programming formulations (Jasour et al., 2015) or constraint tightening (Alcan and Kyrki, 2022; Ono and Williams, 2008; Parsi et al., 2022). While effective in providing probabilistic guarantees on the satisfaction of chance constraints, they are typically tailored to very specific types of constraints, uncertainty distributions and/or system dynamics, thereby limiting their applicability to real robotics problems. As noted in Lew et al. (2023), there is still a lack of formulations and solution algorithms that are capable of capturing different sources of uncertainty as well as different types of constraints in a unified framework.
In contrast, sample-based methods offer a more general approach for approximating chance constraints, as they do not require any assumptions on the underlying probability distributions, as long as the number of samples is sufficiently large. In the sample-based setting, we can distinguish between scenario optimisation (De Groot et al., 2023; Schildbach et al., 2014) and Monte Carlo methods (Blackmore, 2006; Blackmore et al., 2010; Schmerling and Pavone, 2016). Both approaches use samples (aka. scenarios) to capture the underlying uncertainty. Scenario optimisation synthesises controls satisfying the constraint for each of the samples and relies on a well-established theory to identify the right sample size for a given confidence level (Calafiore and Campi, 2006). However, these theoretical bounds are mostly limited to convex or quasi-convex problems (Berger et al., 2021; Calafiore, 2010) and solutions are typically overly conservative, that is, they require much larger sample sizes than identified by empirical tests (Schildbach et al., 2014). Monte Carlo methods typically approximate the probability of constraint violation from the samples, rooted in the sample average approximation (SAA) approach (Pagnoncelli et al., 2009; Shapiro, 2003; Shapiro et al., 2021). They are generally less conservative and can be used with arbitrary constraints and uncertainty models. However, without further adjustments, they do not provide finite-sample guarantees, but only asymptotic guarantees (Blackmore, 2006), implying the requirement of large sample sets, and higher computational resources. The need for large sample sets is reinforced when the desired probability of constraint violation is low, as is commonly targeted in robotics applications. A remedy to this can be importance sampling (Schmerling and Pavone, 2016), or data reduction methods based on parameter estimation of sample statistics, for example, through computing moments of the probability distribution of the uncertainty (Blackmore et al., 2006; Priore and Oishi, 2023; Wang et al., 2020; Yan et al., 2018). Yet, the propagation of moments can be complex, and requires restrictive assumptions, such as Gaussianity. Alternatively, for collision avoidance, Trevisan et al. (2025) propose a naïve Monte Carlo approach that approximates the chance constraint using a fixed number of samples, increasing sample density by constraining the collision region across time steps. However, this method is tailored specifically to collision avoidance and does not account for the approximation error introduced by the finite-sample size.
Other approaches have used SAA to approximate constraints on risk metrics like conditional Value-at-Risk (CVaR) instead (Lew et al., 2023; Nemirovski and Shapiro, 2007; Yin et al., 2023). CVaR constraints are more conservative than chance constraints, as they account for tail events, but the resulting reformulation is smooth and convex, which enables the use of off-the-shelf optimisation tools, such as sequential convex programming (SCP). For instance, Lew et al. (2023) provide a general framework for risk-averse SMPC based on the combination of the SAA of CVaR constraints and concentration inequalities to bound the approximation error. However, their approach relies on strong continuity assumptions on the objective function and constraints, which may not hold in practice. Yin et al. (2023) use the SAA of CVaR constraints within a Model Predictive Path Integral (MPPI) controller but do not account for errors in the approximation of the CVaR constraint and limit the source of uncertainty to process noise. Finally, the work of Peña-Ordieres et al. (2020) reformulates the chance constraint as a quantile function and uses SAA to approximate it, which results in a formulation that is amenable to gradient-based optimisation methods. However, similar to Lew et al. (2023), their approach relies on continuity and differentiability assumptions of the constraint function.
Our main observation across chance constrained optimisation approaches is that they are typically tailored to specific constraint models (e.g., collision avoidance constraints, or reaching polytopic target sets) with smoothness and continuity assumptions, or specific types of uncertainty (e.g., Gaussian or bounded uncertainty). These restrictive assumptions limit the applicability of these approaches in real-world robotics problems. In contrast, we provide a general framework for chance-constrained finite-horizon optimal control problems with generic chance constraints and generic uncertainty distributions. Building upon the SAA approach, we propose a sample-based approximation that actively accounts for the approximation error caused by the number of samples used in the approximation by adjusting the threshold for constraint violation based on a fixed confidence level. This allows us to use a small number of samples in order to efficiently solve the resulting deterministic problem with the stochastic trajectory optimisation framework VP-STO (Jankowski et al., 2023).
3. Problem formulation
3.1. Preliminaries
Let Δ be a random variable that models the uncertainty of the system. This can include stochasticity in the dynamics, the environment, and the sensor measurements. A realisation
3.2. Chance-constrained optimisation
In the following, we introduce the general chance-constrained optimisation problem. The goal is to find a solution
Chance-constrained optimisation generalises the above by allowing constraints that depend on a random variable. More precisely, the constraints have the form g(
Note, that we do not make any additional assumptions on the uncertainty distribution, that is, it can be of any type and is not restricted to additive noise formulations. However, note that state-dependent uncertainties are outside the scope of this work. The following example illustrates possible sources of uncertainty in a simplified robot motion planning problem.
3.3. Constraint satisfaction as a binary random variable
In this subsection, we reformulate the chance constraint in equation (1) as a constraint on a binary random variable obtained from Δ. The motivation for doing this is that we will use this formulation to define a sample average approximation of the chance constraint in the next section. Concretely, given
G
4. Sample average approximation
Because of the challenges in computing the probability in equation (2) exactly (see Remark 2), a tractable approximation is required. A popular approach is the particle-based approximation proposed by Blackmore et al. (2010). The core concept is to draw a finite set of i.i.d. uncertainty samples, or samples, and approximate P[G
Formally, consider a set
This is equivalent to counting the number s
N
(
We can now use the approximation in equation (4) to construct a surrogate constraint of the intractable chance constraint in the optimisation problem equation (1). A naïve approach is to simply replace P[G
Leveraging equation (5), we formulate the following surrogate optimisation problem to the original chance-constrained optimisation problem equation (1) as follows:
Our goal is to determine values of kthresh (as a function of N the number of samples) such that feasible solutions of equation (6) are feasible for the original problem equation (1) with user-given confidence.
The term confidence above refers to the probability that we sample N samples
4.1. Sample average approximation as a Bernoulli process
The approximation equation (4) of P[G
Bernoulli process: a sequence of N i.i.d. binary random variables G1, …, G
N
, where each variable follows the same Bernoulli distribution with success probability p, denoted as G
i
∼Bern(p)
1
. Hence, every variable in the sequence is associated with a Bernoulli trial that has a binary outcome governed by the Bernoulli distribution Bern(p). The resulting sum of the outcomes of the Bernoulli trials, that is,
In the sample average approximation equation (4), the binary random variable G is G
The above yields a closed-form expression of confidence through the cumulative distribution function (CDF) C(k; N, p) of the binomial distribution with parameters N and p, defined for all k = 0, …, N by
4.2. Confidence-bounded surrogate constraint
In the following, we leverage the Bernoulli formulation of the sample average approximation in equation (5) and the closed-form expression of the CDF in equation (8) to determine a threshold kthresh = kbinom(β, N, η)
2
. We set this threshold such that the true chance constraint equation (2) is satisfied with a user-defined confidence 1 − β ∈ (0, 1) (where typically, β ≪ 1). This confidence level applies to any solution
Let β ∈ (0, 1), Let The inequality in equation (11) is a lower bound on the probability of correctly rejecting a candidate solution In Figure 2, we show the CDF of the binomial distribution for different values of N and p. From the plots, we can obtain kbinom(β, N, p) by looking at the intersection of the CDF with the horizontal line y ≡ β. The key insight from the derivation of the above framework is that using the naïve SAA approach, that is, kthresh = ηN, corresponds to a confidence β ≈ 0.5. Indeed, in Figure 2, we can see that kbinom(0.5, N, p) ≈ pN because the horizontal line y ≡ 0.5 intersects the curves roughly at k/N = p. This highlights a key limitation of the naïve approach: by implicitly operating at a confidence level of around 50%, it tends to accept solutions that have a high chance of violating the true constraint, despite appearing feasible on the sampled data. This is further illustrated in Section 11 and Figure 13 in the Appendix. The idea of expressing a chance constraint in terms of a sample-based variable s
N
(

CDF of the binomial distribution for different values of N and p, given k/N on the x-axis. The CDF values map to our confidence in observing k/N constraint violations under the assumption that the true probability of constraint violation is p.
4.3. Limitation of the approximation
In summary, the confidence-bounded surrogate constraint equation (9) is based on the formulation of the SAA as a Bernoulli process. However, a crucial assumption in Proposition 1 is that the Bernoulli variables
4.4. Addressing the limitation
In the following, we present two settings where the optimisation framework (6) can be applied under reasonable independence assumptions. These represent cases where our heuristic approach offers firm guarantees. For the second setting, this also provides insight into why the surrogate performs well in practice, even if the underlying assumption is difficult to verify in practice, or may be satisfied only part of the time.
4.4.1. A-posteriori validation
In the first setting, equation (6) is used as an a-posteriori validation step. This works as follows: Given a candidate solution
(Informal). If the candidate solution passes the validation test, then with confidence 1 − β it satisfies the true chance constraint.
However, this raises the question of how to proceed when a candidate solution is rejected. One option is to repeat the optimisation and validation steps until a candidate passes. Yet, doing so introduces a multiple hypothesis testing problem: although each individual test maintains a confidence level of 1 − β, the overall probability of accepting a violating solution increases unless this accumulation is properly corrected. Statistical correction methods, such as those discussed by Abdi (2007), can mitigate this issue, though at the cost of increased conservatism or a higher required sample size. A more rigorous analysis of a-posteriori validation as a verification mechanism for certifying the safety and performance of robotic policies is provided in Vincent et al. (2024).
In time-sensitive applications such as online planning, performing multiple rounds of optimisation and validation, potentially with increasing sample counts, may not be feasible. In such cases, it is advisable to cap the number of candidate evaluations (or limit the computation time) and instead rely on fallback strategies or recovery controllers to ensure constraint satisfaction when no validated solution is found.
4.4.2. Receding-horizon optimisation
The second setting where our approach can offer firm guarantees is the receding-horizon MPC context, where equation (6) is solved repeatedly at each control step. We provide an assumption (Assumption 1) under which a form of independence of the Bernoulli variables holds. While this assumption may not strictly hold at every step or be directly verifiable in practice, it provides a plausible theoretical justification for the empirical effectiveness of our approach in the MPC setting. In other words, even though our method is heuristic in the general setting, this setting gives a context in which it behaves reliably and aligns with our experimental observations (see Section 6.2.3). We now formalise this intuition with an assumption and proposition:
At each MPC step m = 1, …, M, we compute a new solution
There is ϵ > 0 such that with probability 1 − ϵ on
See Figure 3 for an illustration of Assumption 1. When 
Under Assumption 1, it holds that Since the variables
4.5. Relationship between chance constraints and conditional value-at-risk
In the following, we introduce the concept of conditional value-at-risk (CVaR) (Majumdar and Pavone, 2020) and its relationship to chance constraints in the context of binary indicator functions. This relationship will be helpful to understand subsequent results comparing the two formulations. In contrast to formulating chance constraints, the concept of constraining the CVaR depends on the topology of the constraint function g with respect to the realisation of the disturbance. In general, Lew et al. (2023) shows that using a chance constraint as in equation (1) is equivalent to constraining the value-at-risk (VaR) with
Furthermore, it can be shown that constraining the CVaR is strictly more conservative, that is, equation (13) holds if CVaR ≤ 0 (Lew et al., 2023).
In the following, we show that constraining the CVaR of a binary indicator function corresponds to a tighter chance constraint with a lower effective chance threshold. As the CVaR corresponds to the expected value of the constraint function for g > VaR, the CVaR of a binary indicator function can be reformulated in terms of the probability of violating the constraint g, that is,
The CVaR
η
of the binary indicator function in equation (14) is in the range [0, 1]. Next, we may define a threshold CVaRmax ∈ [0, 1] in order to construct a constraint based on the CVaR with CVaR(G
Note that for any CVaRmax ∈ [0, 1), the resulting constraint is more conservative than the VaR constraint in equation (13).
This increased conservatism has practical implications in control and planning under uncertainty. In particular, CVaR-based constraints offer stronger safety guarantees by effectively lowering the allowable probability of constraint violation. However, this safety margin comes at the cost of increased conservatism, which may lead to overly cautious or suboptimal behaviour in less risk-sensitive settings. Therefore, understanding the trade-off between chance constraints and CVaR constraints is essential for selecting the appropriate level of risk aversion based on the application’s requirements, as we will show in Section 6.
5. Stochastic trajectory optimisation with chance constraints
Due to the non-smooth nature of the uncertainty dynamics and the resulting non-smooth surrogate chance constraint with respect to the optimisation variable in equation (9), we approach the optimisation problem with a gradient-free, that is, zero-order, evolutionary optimisation technique. Building upon our previous work Via-Point-Based Stochastic Trajectory Optimisation (VP-STO) (Jankowski et al., 2023), we introduce chance-constrained VP-STO (CC-VPSTO) for finding robot trajectories that minimise a given task-related objective while satisfying a given chance constraint.
5.1. Preliminaries on VP-STO
VP-STO builds on stochastic optimisation in order to find robot trajectories that minimise a given task-related objective in dynamic environments.
5.1.1. Trajectory representation
In VP-STO the decision variable
5.1.2. Optimisation algorithm
VP-STO uses the Covariance Matrix Adaptation Evolution Strategy (CMA-ES) (Hansen, 2016) to find the optimal set of via-points that map to a trajectory that minimises the given objective function. CMA-ES iteratively updates the mean and covariance of a Gaussian distribution that represents the search space of the optimisation problem, that is, the set of via-points. In each iteration j, the algorithm samples candidate solutions from this distribution, that is,
5.2. Chance-constrained VP-STO
VP-STO has been shown to be effective in generating robot trajectories in real-time for dynamic environments, outperforming state-of-the-art sampling-based MPC methods (Bhardwaj et al., 2022). Yet, in its original form, VP-STO does not consider uncertainty, but instead assumes a deterministic environment. In this work, we extend the VP-STO framework to consider uncertainty in the environment, that is, we introduce the chance-constrained VP-STO (CC-VPSTO) framework.
CC-VPSTO solves the optimisation problem in (6) using the surrogate constraint in equation (9). We enforce the constraint through a penalty-based approach, that is, we include the constraint k ≤ kthresh in the objective function as a penalty term. This can be seen as a discontinuous barrier function that adds a very high penalty term Jpen to the objective function if the constraint is violated, that is, when the observed number of constraint violations k > kthresh. The closed-form formulation of this penalty term is as follows:
We choose the minimum penalty term Jpen,min to be much larger than the maximum cost objective without constraint violations. Moreover, we add a piecewise linear term to the minimum penalty term that grows linearly with the extra number of violations compared to kthresh. This term makes the constraint landscape smoother and gives the optimiser a direction towards feasible solutions without violations. We note that the specific magnitude of the penalty does not significantly influence CMA-ES behaviour, provided it acts as a tight barrier that clearly separates feasible from infeasible solutions. In this regime, CMA-ES reliably avoids constraint-violating regions, given that a feasible solution exists and the covariance is sufficiently large to explore the solution space. A key advantage of using stochastic, derivative-free optimisation in this setting is that it allows us to employ an actual barrier-style penalty rather than smooth approximations such as log-barriers, which can introduce numerical sensitivity and tuning challenges (Figure 4). Graph of the penalty function used in CC-VPSTO. When observing more than kthresh constraint violations in the N Monte Carlo simulations, the penalty function takes value Jpen,min plus a quantity proportional to the number of extra constraint violations compared to kthresh. Note that we chose the minimum penalty term Jpen,min to be much larger than the largest cost objective without constraint violations.
The overall algorithm for CC-VPSTO is summarised in Algorithm 1, where the approximation of the chance constraint, that is, counting the number of samples that cause the solution to violate the constraint, is encapsulated in the
In our previous work, we demonstrated the suitability of the VP-STO framework for real-time robot motion planning in dynamic environments (Jankowski et al., 2023). Similarly, the CC-VPSTO framework, that is, the above algorithm, can be used in a receding-horizon MPC scheme to generate robot trajectories in real-time. Yet, we note that the constraint evaluation in the
6. Experiments
We evaluate our framework, that is, Algorithm 1, with and without the MPC scheme, in simulations and in a real-world experiment with a Franka Emika robot arm. The simulation experiments allow us to make claims about the empirical performance of our system across different settings and parameterisations. The robot experiment allows us to evaluate the real-time applicability of our approach. The supplemental video includes videos from both simulated and real experiments. These can also be found on our website https://sites.google.com/oxfordrobotics.institute/cc-vpsto.
6.1. Experimental setup
6.1.1. Joint probability of constraint violation
In all our experiments the chance constraint is formulated on the collision probability with obstacles in the robot’s environment. We encode this as a joint chance constraint, that is, enforcing trajectory-wise constraint satisfaction with high probability (cf. Section 2 for more details). A joint formulation is more meaningful interpretation for robot behaviour, in contrast to evaluating the constraint independently at each time step. This means that we would not consider a trajectory to be safe if it avoids collisions in one time step with a very high probability, but collides in the next time step. We thus consider correlation over time in the chance constraint, that is, the first collision in a trajectory renders the whole trajectory unsafe and all subsequent collisions do not add any additional risk (Lew et al., 2023).
6.1.2. Uncertainty samples
Before outlining our experiments in detail, we first clarify the role of uncertainty samples in both (i) our algorithm and (ii) its evaluation. In each of the experiments, we draw separate sample sets for the optimisation and for reporting satisfaction of the chance constraint within the experiment. Across all experiments, an uncertainty sample corresponds to a single possible realisation of how the environment may evolve, in other words, a scenario. A sample represents a specific obstacle position drawn from a distribution (e.g., a Gaussian). When multiple dynamic obstacles are present, a single sample consists of M predicted trajectories, one for each of the M obstacles. The uncertainty distribution used for both optimisation and evaluation is assumed to be the same and fixed throughout the experiment. In the following, we consistently use a confidence level of 1 − β = 0.95 (i.e., β = 0.05) across all experiments.
6.1.3. Collisions
In the case of a single obstacle, we consider a robot trajectory to be in collision if the robot collides with the obstacle at any point in time across the whole trajectory. For multiple obstacles, we extend this definition to say a robot trajectory is in collision if the robot would collide with any obstacle at any point in time. By this, we avoid double counting collisions. One uncertainty sample can only be counted as one collision, even in cases where it might collide with several obstacles at different points in time.
6.2. Simulation experiments
All simulation experiments are conducted in a bounded 2D environment with a circular holonomic robot, as shown in Figure 6. In Section 6.2.1, we perform offline planning experiments where CC-VPSTO is run once to compute a trajectory over the full horizon from start to goal under Gaussian uncertainty. In Section 6.2.2, we evaluate the same offline setting but with multimodal, non-Gaussian uncertainty to demonstrate the method’s flexibility beyond standard distributional assumptions. Last, in Section 6.2.3 we evaluate the online planning case, where we follow a receding-horizon approach using CC-VPSTO to replan the trajectory at every MPC step. The results of the offline experiments will also be relevant for the online setting, as each online replanning step can be seen as solving a new offline optimisation problem. In both experiment settings, the uncertainty stems from obstacles in the environment, with no uncertainty in the robot dynamics 4 . In the offline planning setting, obstacles are static but have uncertain positions, modelling the effect of measurement noise. In contrast, in the online receding-horizon setting, obstacles dynamically move according to a random walk model. Their velocities are reversed upon hitting workspace boundaries, keeping them within workspace bounds and introducing non-linear dynamics. In all experiments, the obstacles are circular with varying radii, but our optimisation scheme does not rely on convexity and can accommodate more complex obstacle shapes.
6.2.1. Offline planning (Gaussian uncertainty)
In this offline planning setting, we show the properties of CC-VPSTO with a single static obstacle whose uncertain position follows a Gaussian distribution, as shown in Figure 6 (see Section 6.2.2 for results on a non-Gaussian distribution). Here, a sample of the uncertainty refers to a possible (static) position of the obstacle, as explained in more detail in Section 6.1.
For every combination of values of N (100, 1000), η (0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.6, 0.8) and β = 0.05, we run Nexp = 105 experiments. For i = 0, …, Nexp sample sets of N i.i.d. samples, we compute the trajectory ξ
i
using CC-VPSTO with kbinom(β, η, N). Then, for each trajectory ξ
i
, we evaluate its probability (1) Mean collision probability: (2) (3) Probability of chance constraint violation:
Note that we denote empirical values with a hat, for example,
6.2.1.1. Baseline
In the course of this work, we developed an alternative approach to approximate the chance constraint in equation (1) based on the Rademacher complexity from statistical learning theory (Mohri et al., 2018; Shalev-Shwartz and Ben-David, 2014). Computing a suitable kthresh for the surrogate optimisation problem in equation (6) can be approached by computing an upper bound on the Rademacher complexity of the associated set of functions. However, despite the theoretical attractivity of the this approach, computing an upper bound on the Rademacher complexity can be very challenging in general, and there is usually no closed-from expression for such bounds. Yet, we found a tight bound krad for a special case of collision avoidance problem. This bound does not require the independence of the Bernoulli variables, but it is more conservative, computationally expensive, and, less general since it is limited to a specific motion planning problem. Consequently, we use this bound as a baseline for our simulation experiments. The full derivation, the closed-form expression for krad, and the proofs and assumptions can be found in Appendix 10.
6.2.1.2. Results
The results of our offline analysis are summarised in Figure 5. The pink dotted curves show the theoretical values of ηbinom and ηrad, and the green curves show the empirical values of 

6.2.2. Offline planning (multimodal uncertainty)
CC-VPSTO does not make any assumptions about the uncertainty distribution and is able to handle arbitrary distributions. To illustrate this, we provide an additional offline motion planning experiment where we replace the Gaussian distribution over the obstacle position in the previous experiment from Section 6.2.1 with a Gaussian mixture distribution with three modes. Figure 7 illustrates the qualitative results for this scenario with a multimodal distribution. It shows that CC-VPSTO is able to find a timing-optimal trajectory given the non-Gaussian uncertainty over the obstacle position depending on the user-defined chance threshold η and confidence threshold 1 − β. Table 1 provides numerical results on the average probability of collision of the solution Results of the offline planning experiment (multimodal uncertainty).
A comparison of Table 1 and Figure 5 suggests that a multimodal distribution as the one given by the Gaussian mixture requires more samples in the approximation. This is to be expected because multimodal distributions exhibit higher variance and can contain isolated high-probability regions that are easily missed with insufficient sampling. Capturing the shape and support of such distributions reliably in the sample-based surrogate requires a denser sampling of the space, which is why we used N = 200 samples in this experiment.
6.2.3. Online planning (MPC)
The online planning experiments correspond to a receding-horizon/model predictive control (MPC) approach, where a new robot trajectory is planned at every MPC step ti,MPC = ti−1,MPC + ΔMPC with 1/ΔMPC being the run frequency of the MPC controller. At each MPC step, the robot gets a position update of the M obstacles in the environment, which is assumed to be exact, that is, no measurement uncertainty. As in the offline planning experiment, we assume that CC-VPSTO has access to a generative model that generates predictions of future obstacle motions, with samples that reflect the underlying uncertainty in those motions. In our online experiments we use a random walk model, parametrised to match the simulation environment. In a real-world setting, this could be replaced by a generative model learned from real-world data, for example, a model similar to Jiang et al. (2023). In our optimisation scheme, given a position update, new obstacle trajectories are sampled from the random walk model and rolled out for a fixed time horizon T > ΔMPC. As described in Section 6.1, one sample of the uncertainty in this experiment corresponds to one possible future of how the obstacles are going to evolve in the next time steps, that is, one sample maps to M trajectory predictions of duration T for M obstacles.
We evaluate online CC-VPSTO on four metrics across three environment configurations with four and five obstacles. Each obstacle is initialised with varying start position, velocity, and acceleration variance in the random walk model. The trajectory we report results on is the trajectory that the robot executes, that is, the concatenation of the first ΔMPC time steps of each of the solutions across MPC steps. One single experiment produces one trajectory from the initial position to the goal for the given environment instantiation and η-value. Figure 8 shows a qualitative example of each of the three environment configurations used in the MPC experiments, along with the respective CC-VPSTO solutions for different values of η. Note, that the length of the plotted obstacle trajectories was not fixed across the three examples, but depended on the maximum duration of the generated solutions for the given example. All solutions depicted are collision-free. Additional details about the environment configurations can be found in the Appendix in Section 12.1. For each environment configuration and for different values of η (0.05, 0.2, 0.4, 0.6, 0.8), we run 1000 experiments. The evaluation metrics for the experiments are: (1) (2) (3) (4)

Note, that these metrics are different from the metrics used in the offline evaluation. This is because we aim to show the properties of the MPC trajectory given the guarantees from the offline experiments (which corresponds to a single MPC step in the online case).
6.2.3.1. Baselines
We compare the use of our confidence-based bound kbinom as a surrogate for the chance constraint (cf. equations (5) and (9)) against two alternative approximations: (i) the naïve MC approximation of the original chance constraint, as proposed in, for example, Blackmore et al. (2010), and (ii) the CVaR-based formulation described in Section 4.5, following the approach of Yin et al. (2023). As the main contribution of this work lies in the derivation a new confidence-bounded sample average approximation of a chance constraint, we do not compare against other methods of solving the resulting optimisation problem, such as Model Predictive Path Integral Control (MPPI) (Williams et al., 2017). For a more thorough comparison of VP-STO to MPPI, please refer to our previous work (Jankowski et al., 2023). In addition, we compare our approach to a baseline, that we abbreviate with “ML-VPSTO,” where ML stands for maximum likelihood. Instead of computing the probability of constraint violation based on samples, ML-VPSTO uses the same samples to compute mean obstacle trajectories and uses standard VP-STO to generate a solution that avoids these trajectories. In addition, running CC-VPSTO with η = 0 can also be seen as a baseline, as this is comparable to using a hard collision avoidance constraint within VP-STO. For all MPC simulation experiments, we assumed a replanning frequency of 4 Hz with a time step of 0.05 seconds, while setting the planning horizon TMPC to 5 seconds (mapping to 100 time steps for the rollouts), the maximum number of MPC iterations to 100 and the number of samples N to 100.
6.2.3.2. Results
The results of the online experiment are a key insight of this paper, as they demonstrate the effects of combining reactivity (the MPC setting) with probabilistic bounds on constraint satisfaction (the chance constraints). Figure 9 summarises the results across the 1000 experiments for each of the three different environment configurations. We observe that CC-VPSTO in an MPC loop is able to generate trajectories that are entirely collision-free for η values of up to 5%. In the given experimental setting, ML-VPSTO is approximately equivalent to permitting collisions with a probability as high as 80% in CC-VPSTO. In 
Last, we evaluate the effect of the number of samples used in the MC approximation on the success and collision rates depending on the surrogate constraint that is used in CC-VPSTO. We do this across 1000 MPC experiments for each sample count and environment configuration. We evaluate three different surrogate constraints: (1) Confidence: s
N
( (2) Value-at-Risk (VaR): s
N
( (3) Conditional VaR (CVaR): s
N
(
For all experiments we fixed η to 0.2 and the confidence threshold to 0.99. The results are shown in Figure 10. The numbers are averaged across three different environment configurations. For 100 samples, the experiments are equivalent to the results shown in Figure 9. With more samples, the collision rate converges to zero due to the MPC setting. The results show that the confidence-bounded approximation is the only approximation that is able to maintain high success and low collision rates with a small number of samples. This is in contrast to the other methods which do not account for the number of samples used in the approximation. With an increasing number of samples, VaR and our approximation converge to the same success and collision rates, which is expected as the number of samples increases, as shown in Section 4.5. Moreover, we notice that the success rate of CVaR decreases as the number of samples increases. Since CC-VPSTO explicitly accounts for the number of samples used in the approximation, its performance is less sensitive to the choice of N, showing the lowest variation across sample counts among the evaluated methods. That said, in low-sample regimes, some approximation error remains unavoidable. Comparison of the confidence-bounded chance constraint approximation to CVaR and a standard VaR approximation in terms of success and collision rates across MPC experiments depending on the number of samples used in the MC approximation.
6.3. Robot experiment
We further demonstrate CC-VPSTO on a real robot for the scenario shown in Figure 11. The robot is tasked to move from one side to the other of the conveyor belt, whilst avoiding a box which is controlled according to a stochastic policy. This requires online, reactive motion generation that balances constraint satisfaction with task efficiency. The possible motions, also illustrated in Figure 1, are to either move behind or in front of the box, as the robot is not allowed to simply move over the box. Moreover, besides the candidate trajectories that we synthesise from the sampled via-points in CC-VPSTO, we add a “waiting” trajectory to the set of candidate trajectories sampled in the final optimisation step. A waiting trajectory is a trajectory repeating the current robot position for the entire planning horizon, that is, keeping the robot stationary. This is to allow the robot to wait for the box to pass, which is a safe but not very efficient solution. Without these waiting trajectories, CC-VPSTO would keep the robot moving at all times, but this is not always necessary.
6.3.1. Results
Similar to the MPC experiments in simulation, we evaluate our real-world robot experiment on (i) the motion duration per run, that is, the time taken to go from one side of the conveyor belt to the other side, (ii) the share of experiments that collide with the box, and (iii) the minimum distance to the box across 70 runs for different values of η, as shown in Figure 12. We do not compare our approach to “ML-VPSTO” as for the given stochastic model, the mean is not useful. However, we include η = 0 as a baseline, which corresponds to a VPSTO approach with a hard collision avoidance constraint. Overall, the results support the insights gained from the simulation experiments. We observe that the higher the value of η, the shorter the duration of the trajectory. This is because higher values of η allow CC-VPSTO to generate trajectories that are more efficient, but also less safe. Moreover, we also observe the trend that higher values of η indeed lead to a higher share of experiments that collide with the box. However, we also observe that the share of experiments that collide with the box is still very low, even for very high values of η. This is an interesting insight from combining MPC with chance-constrained trajectory optimisation. In addition, we observe in this experiment that a value of η = 0.2 outperforms η = 0.1 in terms of the share of experiments that collide with the box. We anticipate that additional experiments will reduce this variability, as the current variance in the results is still quite high. Last, in terms of the minimum distance to the box, we cannot observe a clear trend across different values of η. This can be explained by the use of waiting trajectories that do not move the robot at all. The robot can choose to wait very close to the box, which is a constraint-satisfying but not very efficient solution. This results in higher durations, but not higher minimum distances.
7. Discussion and future work
Our experiments show that CC-VPSTO is able to generate task-efficient motions while consistently bounding the probability of constraint violation, for example, collision with stochastic obstacles. While it is typically more challenging to deal with chance constraints over entire trajectories (as opposed to constraints per time step), our SAA formulation allows us to do this in a straightforward way by simulating trajectories of the obstacles and the robot then checking for collisions between them at any time over a given horizon. This is made possible by the flexibility of our approach which makes no assumption on the distribution of the uncertainty, but only requires sampling access to it. Hence, this can also be a joint distribution across all sources of uncertainty, for example, several obstacles.
Consistent with our theoretical insights, the collision rate in the experiments remained below the specified threshold η, despite the fact that the independence assumption does not strictly hold in the receding-horizon (MPC) setting. Nevertheless, we observe a gap between the collision rate and the threshold η. This gap is much bigger in the online planning (MPC) than in the offline planning experiments. This can be explained by the fact that at each MPC step we optimise trajectories for a longer horizon than just the time steps that we actually execute on the robot. Hence, the anticipation of potential collisions in the future makes us more conservative, resulting in lower actual rate of collision than that which was imposed. In future work, we plan to use discounted probabilities in the chance constraint, such as in Yan et al. (2018), to allow for larger probabilities of collision for time steps far in the future, knowing that the control input that we will apply then will be recomputed with stronger constraints in the meantime. Besides the introduction of discounted chance constraints, another direction could be to explore how to adapt the parameters η and β during online execution, for example, based on the current state of the system, the current uncertainty distribution, or the current cost function. This could result in a more robust and adaptive approach, which would be more suitable for real-world applications.
An important direction for future research is how to respond when a constraint violation actually occurs, especially since our framework allows such violations with some probability. While we do not propose an explicit or general mechanism for handling these situations, we assume that the robot is capable of recovering from violations. In this context, the MPC framework provides implicit robustness through continual replanning based on updated information about the uncertain environment. Nonetheless, it remains an open and valuable question how the planner’s objective might be adapted in the face of violations; for instance, by temporarily shifting the objective to minimise the probability of further constraint violations rather than pursuing the original task goal.
Moreover, our work does not ensure recursive feasibility, which enforces that there always exists a solution to the optimisation problem. Other works such as Köhler et al. (2023) have addressed this issue by enforcing that the predicted nominal state lands in a terminal set while not taking the measured state into account. However, this again comes at the cost of being restricted to linear systems with linear inequality constraints and convex objectives. For chance constraints this means that they would need to be linearised into half-space constraints, yet if we took the collision avoidance examples from this work and view them as a system that is augmented by the obstacle states, the non-collision constraint itself is non-linear in the augmented state as it has a quadratic relation through the distance measure. Yet, an interesting direction for future research would be how to ensure recursive feasibility through a less constrained problem formulation.
A core assumption in our approach is that we are given a representative model of the uncertainty, from which we can take samples. Yet, this might be a limitation in practice, as our model might not capture the true underlying distribution with sufficient accuracy, relating to epistemic uncertainty. However, that can be addressed in future work, by either extending the approach to be distributionally robust, such as in Hakobyan and Yang (2021), or by using generative data-driven models that can be adapted online as the robot acquires more data, similar to the work of Thorpe et al. (2022). In addition, future work should also quantify the extent to which MPC is able to provide inherent robustness, given that its closed-loop formulation allows for partial compensation when the true uncertainty distribution diverges moderately from the one used during optimisation.
In terms of computational efficiency, we have demonstrated the applicability of our algorithm to an MPC setting, where we achieve frequencies of 3 Hz on a real robot using 100 samples. The biggest computational bottleneck lies in the rollouts of the uncertainty dynamics. We therefore believe that the reported control rate can be improved by adding parallelisation and GPU acceleration, which we did not leverage in the given experiments. However, multimodal distributions require more samples in the approximation, which might further limit current control rates. We believe that future work could explore methods to efficiently generate representative sample sets, possibly leveraging learned generative models. The advantage of our formulation is that the user can actively choose the number of samples while considering computational resources and requirements of minimum control rates. We also believe that there is still room for improvement in our implementation, as the sample rollouts for the stochastic box model have not been parallelised, as was done in the simulation experiments. Last, a learned generative model could also further improve the computational efficiency of the rollouts over the current Monte Carlo simulations, depending on the model’s inference speed.
8. Conclusion
In this work, we addressed the problem of robot motion planning under uncertainty, aiming for both efficiency and constraint satisfaction in stochastic control settings. We introduced a novel surrogate formulation for chance-constrained optimisation that enables statistically sound sampling-based motion planning under uncertainty. This, in turn, supports integration into a Model Predictive Control (MPC) framework for online, reactive robot control. The strength of our approach lies in its generality, as it does not require any specific assumptions on the underlying uncertainty distribution, the dynamics of the system, the cost function or the specific form of inequality constraints. While we focused on the problem of collision avoidance in this work, our approach is not limited to this problem, as it can be applied to any type of stochastic control problem, as long as we can sample from the uncertainty distribution. For instance, in future work we aim to extend this framework to include constraints on interaction forces in the context of contact-rich manipulation tasks and physical human–robot interaction. We showed that our approach is able to generate efficient trajectories that satisfy probabilistic constraints with high confidence across a variety of scenarios, including a real-world robot experiment.
Supplemental material
Footnotes
Funding
The authors disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: LB was supported by an Amazon Web Services Lighthouse scholarship. GB is an FNRS postdoctoral researcher. JJ was supported by the Swiss National Science Foundation (SNSF) through the CODIMAN project. RJ is a FNRS honorary Research Associate. This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme under grant agreement No. 864017 - L2C, from the Horizon Europe programme under grant agreement No. 101177842 - Unimaas, from the Walloon region (FLEXtest project), and from the ARC (French Community of Belgium)—project name: SIDDARTA. NH received EPSRC funding via the “From Sensing to Collaboration” programme grant (EP/V000748/1).
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Supplemental material
Supplemental material for this article is available online.
