Safe-Ballbot: Tilt-Consistent MPC with Control Barrier Functions for Ballbot Navigation
Ball-balancing robots (ballbots) must lean to accelerate, and the lean is limited by the wheel torques and by safety. Planners that use the full robot model are expensive, while planners that ignore the balance dynamics produce references that cannot be followed.
From the abstract. Our summary is in progress.
Full paper
Safe-Ballbot: Tilt-Consistent MPC with Control Barrier Functions for Ballbot Navigation
Published under CC0 1.0. Reproduced with attribution; original at arXiv:2611.03307 (PDF).
Abstract
Ball-balancing robots (ballbots) must lean to accelerate, and the lean is limited by the wheel torques and by safety. Planners that use the full robot model are expensive, while planners that ignore the balance dynamics produce references that cannot be followed. This paper presents a two-layer navigation scheme for a three-omni-wheel ballbot. The upper layer is a model predictive controller on a jerk model of the ball position, with discrete-time control barrier functions for static, moving, rotating and concave obstacles. The lower layer is a hierarchical sliding mode controller with an extended state observer and a robust exponential control barrier function on the tilt (HSMC-ESO-ECBF). The layers are linked by an acceleration bound derived in closed form from the largest steady tilt that the barrier function admits, so that the plan never asks for a lean the tracker refuses. For obstacles whose motion is only predicted, the obstacles are inflated by conformal prediction radii that bound the prediction error with a prescribed probability. In MuJoCo, with omni-wheel roller contacts and torque saturation, the scheme keeps at least 10 cm of clearance, tracks the plan within 2 cm RMS, keeps the tilt below the limit and plans in 9–12 ms, 10–15 times faster than a full-model nonlinear MPC that enters the inflated obstacles; with predicted obstacles, the conformal inflation removes the collisions of a constant-velocity predictor in 30 random crossing scenarios and reduces them in an endless run on a closed path. The source code and video illustrations are available at https://safe-ballbot.github.io.
Index Terms:
Ballbot, model predictive control, control barrier function, sliding mode control, extended state observer, conformal prediction, obstacle avoidance.
I Introduction
25 N push. Known obstacles: (c) static, (d) moving, (e) rotating, (f) concave. Predicted obstacles: an obstacle that turns sharply toward the path, with (g) constant-velocity and (h) conformal prediction, (i) four random obstacles crossing the path, (j) an endless run on a closed path among three roaming obstacles.- Nagarajan [1]
- 2013
- shape-space planner
- \times
- –
- \times
- \times
- –
- hardware
- Jespersen [2]
- 2020
- path-following MPC, reduced quaternion model
- \checkmark
- \checkmark
- \times
- \times
- \checkmark soft
- sim. + hardware
- Mavrogiannis [3]
- 2021
- topology-informed MPC
- \checkmark
- –
- \checkmark crowd
- \times
- –
- hardware + crowd sim.
- Fischer [4]
- 2024
- identified LTI model, MPC + LQR
- \checkmark
- \times
- \times
- \times
- –
- hardware
- Vu [5]
- 2024
- flat output, offline time-optimal + RRT*, ESO
- \times
- \checkmark
- \times
- \times
- \checkmark ECBF
- sim. (design model)
- Pham [6]
- 2025
- nonlinear MPC on the full 3D model, ESO
- \checkmark
- \checkmark
- \checkmark
- \checkmark
- \checkmark CBF-QP
- sim. (design model)
- Salehi [7]
- 2025
- model-free RL policy
- \checkmark
- \times
- \times
- \times
- \times
- MuJoCo
- Wan [8]
- 2026
- friction-aware RL policy (sim-to-real)
- \checkmark
- \times
- \times
- \times
- \times
- MuJoCo + hardware
- This work
- –
- jerk model (robot-independent) + DCBF, ESO
- \checkmark
- \checkmark
- \checkmark
- \checkmark
- \checkmark ECBF, \varphi^{\star}
- MuJoCo, roller contacts
Aballbot balances on a single spherical wheel driven by omni wheels. The design gives omnidirectional motion and a small footprint, but the system is underactuated: three wheel torques control five degrees of freedom (the ball position and the three body angles), and the ball can only be accelerated by first leaning the body in the direction of motion. Every motion planner for a ballbot therefore has to respect the balance dynamics, and every controller has to keep the body tilt in a safe range while it tracks the plan.
Recent works address these questions in two ways. Full-model approaches put the nonlinear robot dynamics into an online optimization, for example a nonlinear MPC with CBF constraints for moving obstacles [6] or a path-following MPC on a reduced quaternion model [2]; they predict the balance dynamics but are computationally heavy and tie the planner to one robot model. Decoupled approaches plan offline, for example time-optimal trajectories in the flat-output domain tracked by an observer-based sliding mode controller with a tilt barrier function [5]; they are cheap to execute but cannot react to moving obstacles. Learning-based navigation [7] does not give explicit tilt or clearance guarantees.
This report studies a lighter split. The motion planner works on a jerk model of the ball position, a chain of three integrators per axis that is independent of the robot dynamics. The only robot-specific information in the planner is the relation between acceleration and lean, which becomes an acceleration bound, and the robot footprint. Balancing, disturbance rejection and the hard tilt limit are left to the HSMC-ESO-ECBF tracker [5]. A key observation is that the robust barrier function of the tracker admits a steady tilt \varphi^{\star} that is smaller than the tilt limit; the acceleration bound of the planner must be derived from \varphi^{\star}, not from the limit itself. All results are obtained on a MuJoCo model adapted from the asRoBallet platform [8], using its ballbot base with omni-wheel roller contacts and wheel torque saturation (Fig. 1).
The contributions are:
- Tracker (Section III): an HSMC-ESO-ECBF controller for a three-omni-wheel ballbot with a sliding surface designed in closed form by zero placement, an ECBF on the tilt cone solved in closed form, and a state-dependent robust term, motivated by a measured input-gain mismatch of
30\,\%between the design model and the contact dynamics; the largest steady tilt that this robust ECBF admits is derived in closed form (Proposition 2); - Planner (Section IV): a jerk-model MPC with discrete-time CBFs for static, moving and rotating elliptic obstacles and for concave obstacles decomposed into convex pieces bounded by minimum-area ellipses, with a tracking margin for the low-level controller;
- Planner–tracker interface (Section IV): an acceleration bound derived from the steady tilt of the tracker (19), so that the plan never asks for a lean the tracker refuses; it reduces the tracking error by a factor of
1.8–7compared to a bound derived from the tilt limit; - Predicted obstacles (Section V): an extension to obstacles whose motion is predicted rather than known, in which the obstacle ellipses are inflated by conformal prediction radii that bound the prediction error with a prescribed probability, and soft barrier constraints keep the planner feasible;
- Evaluation (Section VI): a cross-validation of the planar, 3D (Kane) and MuJoCo models, and a simulation study of the complete scheme with static, moving, rotating, concave and predicted obstacles, including a comparison with a full-model NMPC, Monte Carlo runs over random scenarios and model mismatch.
Section II reviews related work. Section III presents the robot, its kinematics and models, and the tracker. Section IV develops the planner, and Section V extends it to predicted obstacles with conformal prediction. Section VI reports the simulation results, and Section VII concludes.
II Related Work
Table I summarizes the planning and safety features of the ballbot works discussed below.
Ballbot design and control
The first ballbot used an inverse mouse-ball drive and a two-loop PI–LQR controller [9]; a decade of work on this platform is summarized in [10]. The three-omni-wheel design with a 45^{\circ} zenith angle drives the ball directly and adds control of the yaw axis [11, 12]. Linear designs, such as LQR with feedforward [12] or LQR inner loops with an MPC outer loop on an identified model [4], are simple and run on hardware, but they lose accuracy away from the upright posture and treat the two planes as independent. Hierarchical sliding mode control (HSMC) on decoupled planes [13] is robust to matched disturbances. Vu et al. [5] estimate the coupling between the planes and the model errors with an extended state observer (ESO) [14, 15], in the spirit of active disturbance rejection control, and add an exponential CBF (ECBF) [16, 17] that keeps the tilt inside a cone. Barrier Lyapunov functions [18] also limit the tilt, but they are undefined outside the safe set and give no safe action once the limit is exceeded, for example after a push. None of these controllers plans around obstacles; they follow a given reference.
Motion planning for balancing robots
For a balancing robot, a planned path is feasible only if the body can lean as the path requires. Shape-space planning [1] maps desired accelerations to body shapes of the ballbot, and flatness-based planning [19, 20, 5] turns the planar ballbot into a chain of integrators, so that balance-consistent trajectories follow from smooth position curves; both are offline and do not handle moving obstacles. Online, Jespersen et al. [2] run a path-following MPC on a reduced quaternion model with soft constraints for circular obstacles and for the tilt, validated on hardware. Mavrogiannis et al. [3] use an MPC that reasons about the topology of the robot’s path relative to the people in a crowd. Pham et al. [6] use a nonlinear MPC on the full 3D model with discrete CBF constraints for moving and complex-shaped obstacles and a separate ESO-based CBF for the tilt; the full model makes each solve expensive, and since the tilt constraint is removed from the MPC, the plan may ask for leans that the tilt filter later rejects. Model-free reinforcement learning has been used for ballbot navigation on uneven terrain in MuJoCo [7], without explicit safety constraints. Wan et al. [8] close the sim-to-real gap of the humanoid ballbot asRoBallet with friction-aware reinforcement learning and deploy an end-to-end policy for velocity tracking and station keeping on hardware; obstacles and an explicit tilt limit are not considered. The MuJoCo model of their platform is the simulation model of the present work.
Reduced-order models for planning
Planning on a simple model and leaving the full dynamics to a tracking controller is common for other dynamic robots. For humanoids, the center-of-mass dynamics are approximated by a linear inverted pendulum and planned by preview control [21] or by a linear MPC with the center-of-mass jerk as input [22]; the jerk input keeps the references smooth and the problem a small quadratic program. For quadrotors, differential flatness turns the dynamics into chains of integrators, and minimum-snap [23, 24] or minimum-jerk motion primitives [25] are planned on them and tracked by an attitude controller; the input limits of the full robot become bounds on the derivatives of the position. The ballbot has the same structure: by the lean–acceleration relation, the tilt limit becomes an acceleration bound on a triple integrator. What these works do not address is how to choose this bound when the tracker itself restricts the reachable tilt, as an ECBF does.
Control barrier functions and MPC
CBFs [17] enforce forward invariance of a safe set through a constraint that is affine in the input, which leads to safety filters solved as quadratic programs; exponential CBFs [16] extend this to constraints of higher relative degree such as a tilt limit. In MPC, discrete-time CBFs [26] replace distance constraints by a bound on the decay rate of the barrier along the horizon, so that the plan approaches an obstacle gradually and short horizons suffice. Polytopic obstacles can be handled exactly through duality-based distance constraints [27], at the price of extra variables per obstacle; bounding each convex piece by an ellipse [6] keeps one smooth constraint per piece.
Robust and observer-based barrier functions
A CBF guarantees safety only for the model it is designed on; model errors and disturbances enter the barrier condition directly. Robust CBFs [28] add a margin that covers a bounded disturbance, and input-to-state safety [29] quantifies how far the state may leave the safe set when the disturbance is not covered. When the disturbance is estimated instead, an observer such as the ESO provides the drift term of the barrier condition, and only the residual estimation error needs a margin [5, 6]. In the ballbot tracker, this residual is covered by the state-dependent term 2\delta\|\bm{\varphi}\|_{1}, which vanishes at the upright posture. These works study the safety of the filtered system; the side effect of the margin on the set of postures the filter accepts in steady state, and therefore on the motions that a planner may request, has not been analyzed. Proposition 2 gives this set in closed form.
Planning among predicted obstacles
When the future motion of an obstacle is not known, the planner must use a prediction and account for its error. Chance-constrained MPC bounds the collision probability under an assumed, typically Gaussian, distribution of the obstacle position [30]; the guarantee then depends on how well this distribution matches the real motion. Simple predictors remain competitive: a constant-velocity model is a strong baseline for pedestrian motion [31]. Conformal prediction [32, 33] instead bounds the error of any predictor with a prescribed probability, without a model of its distribution, from a calibration set of past prediction errors. Lindemann et al. [34] use these bounds as distance margins in an MPC for planning among dynamic agents, and adaptive variants recalibrate them online under distribution shift [35, 36]. These works plan for point-mass or simple vehicle models; the present work inflates the barrier functions of a ballbot planner with the conformal radii and keeps the tilt-consistent interface to the tracker unchanged.
Layered planning with tracking-error bounds
When a planner on a simple model is tracked by a controller of the full robot, safety requires a bound on the tracking error. Tube MPC [37] tightens the constraints of the nominal plan by a robust invariant set of the error, and FaSTrack [38] computes a tracking-error bound by reachability analysis and inflates the obstacles by it. The present scheme follows this structure with a simpler, empirical margin r_{\text{track}}, and adds a second interface that these frameworks do not have: the planner’s acceleration bound is derived from the tilt that the tracker’s barrier function actually admits.
III Preliminaries
III-A Robot and assumptions
The robot model is adapted from the asRoBallet ballbot of Wan et al. [8]: a body that balances on a ball of radius R driven by three omni wheels evenly spaced around the vertical axis, with inclined wheel axles (Fig. 2); the humanoid upper body is removed. We use the authors’ released MJCF model from the asRoBallet MuJoCo repository1 and retain its ball, omni-wheel and roller-contact geometry. The base has a free joint and the ball is connected to it by a ball joint. Each omni wheel has one actuated axle joint with a bounded torque and a set of passive rollers.
\bm{a}_{1} (violet) and the roller frames, (c) contact points (blue) and forces (red).Assumption 1 (Design models).
The design models rest on the following simplifications:
- the ball rolls on the floor without slipping, and the omni wheels transmit torque to the ball ideally;
- the base and the wheels form a single rigid body;
- near the upright posture the motion splits into the
x–zplane, they–zplane and the yaw axis (the 3D model of Section III-D drops this assumption); - friction, wheel and roller inertia, and roller slip are neglected.
The MuJoCo model used for all results contains none of these simplifications.
III-B Omni-wheel kinematics
Wheel geometry
In the base frame, wheel i\in\{1,2,3\} touches the ball at azimuth \alpha_{i}=2\pi(i-1)/3 and zenith angle \beta, measured from the upward vertical at the ball center. The unit vector from the ball center to the contact point and the unit rotation axis of the wheel are
\hat{\bm{c}}_{i}=\begin{bmatrix}\sin\beta\cos\alpha_{i}\\
\sin\beta\sin\alpha_{i}\\
\cos\beta\end{bmatrix},\qquad\bm{a}_{i}=\begin{bmatrix}\cos\beta\cos\alpha_{i}\\
\cos\beta\sin\alpha_{i}\\
-\sin\beta\end{bmatrix},so that \bm{a}_{i}\perp\hat{\bm{c}}_{i}: the axis lies in the vertical plane through the contact point, tilted by \beta from the horizontal. At the contact, the wheel rim moves along \bm{t}_{i}=\bm{a}_{i}\times\hat{\bm{c}}_{i} (a horizontal direction tangent to the circle of contacts); the passive rollers leave the ball free to slide along \bm{a}_{i}.
Velocity and torque maps
With \bm{\omega} the angular velocity of the ball relative to the body (base frame), r_{w} the wheel radius and \dot{\phi}_{i} the wheel speeds, no slip along the rim direction \bm{t}_{i} gives
\dot{\bm{\phi}}=\bm{J}\,\bm{\omega},\qquad\bm{J}=-\frac{R}{r_{w}}\begin{bmatrix}\bm{a}_{1}^{\top}\\
\bm{a}_{2}^{\top}\\
\bm{a}_{3}^{\top}\end{bmatrix},while the rollers absorb the contact velocity along \bm{a}_{i}. For evenly spaced wheels the singular values of \bm{J} are (R/r_{w})\sqrt{3/2}\cos\beta (twice) and (R/r_{w})\sqrt{3}\sin\beta, so \bm{J} is invertible for every 0<\beta<\pi/2. By the balance of power, \bm{\tau}_{w}^{\top}\dot{\bm{\phi}}=\bm{\tau}_{\text{ball}}^{\top}\bm{\omega}, the torque that the body applies to the ball and the wheel torques are related by
\bm{\tau}_{\text{ball}}=\bm{J}^{\top}\bm{\tau}_{w}\quad\Longleftrightarrow\quad\bm{\tau}_{w}=\bm{J}^{-\top}\bm{\tau}_{\text{ball}};the controllers compute \bm{\tau}_{\text{ball}} in the world frame and rotate it into the base frame before (3) is applied.
III-C Planar model
With \bm{q}=[\psi,\ \varphi]^{\top} (ball rolling angle, x=R\psi, and body tilt) and the torque \tau applied by the body to the ball, the Lagrange equations are
\begin{gathered}\bm{M}(\varphi)\begin{bmatrix}\ddot{\psi}\\
\ddot{\varphi}\end{bmatrix}=\begin{bmatrix}\tau+MRl\sin\varphi\,\dot{\varphi}^{2}\\
-\tau+Mgl\sin\varphi\end{bmatrix},\\
\bm{M}(\varphi)=\begin{bmatrix}(m_{b}+M)R^{2}+I_{b}&MRl\cos\varphi\\
MRl\cos\varphi&Ml^{2}+I_{B}\end{bmatrix}.\end{gathered}The y–z plane has the same equations with y=-R\psi, \varphi = roll and I_{B,x}, and the yaw axis is I_{B,z}\ddot{\gamma}=-\tau_{z}.
Linearized about \varphi=0 with \bm{s}=[\psi,\ \varphi,\ \dot{\psi},\ \dot{\varphi}]^{\top},
\begin{gathered}\dot{\bm{s}}=\bm{A}\bm{s}+\bm{B}\tau,\qquad\bm{A}=\begin{bmatrix}0&0&1&0\\
0&0&0&1\\
0&a_{1}&0&0\\
0&a_{2}&0&0\end{bmatrix},\quad\bm{B}=\begin{bmatrix}0\\
0\\
b_{1}\\
b_{2}\end{bmatrix},\\
\begin{bmatrix}a_{1}\\
a_{2}\end{bmatrix}=\bm{M}(0)^{-1}\begin{bmatrix}0\\
Mgl\end{bmatrix},\qquad\begin{bmatrix}b_{1}\\
b_{2}\end{bmatrix}=\bm{M}(0)^{-1}\begin{bmatrix}1\\
-1\end{bmatrix},\end{gathered}with eigenvalues \{0,0,\pm\sqrt{a_{2}}\}; since a_{2}>0 the body is an unstable inverted pendulum.
Lean and acceleration
For a constant ball acceleration \ddot{\psi} with \ddot{\varphi}=0, the linear model gives the equilibrium lean and torque
\begin{gathered}\varphi=\frac{M_{11}+M_{21}}{Mgl}\,\ddot{\psi}=\kappa\,\ddot{x},\qquad\tau=M_{11}\ddot{\psi},\\
\kappa=\frac{M_{11}+M_{21}}{R\,Mgl},\end{gathered}where M_{ij} are the entries of \bm{M}(0). This relation is the feedforward of the trackers and the basis of the acceleration bound of the planner.
III-D Nonlinear 3D model
To check the decoupled-plane assumption, a 3D rigid-body model keeps the coupling between the planes and yaw, the gyroscopic terms, the products of inertia and the COM offset \bm{r}_{B}. The body pivots about the ball center; the ball rolls without slipping and does not spin about the vertical.
With the ball position (x,y) and the unit quaternion \bm{\zeta} of the body as coordinates and \bm{u}=[v_{x},\ v_{y},\ \bm{\omega}^{\top}]^{\top}\in\mathbb{R}^{5} (ball velocity and body angular velocity) as generalized speeds, projecting the Newton–Euler equations of the ball and the body on the partial velocities (Kane’s method) gives
\bm{\mathcal{M}}(\bm{\zeta})\,\dot{\bm{u}}+\bm{\mathcal{C}}(\bm{\zeta},\bm{u})\,\bm{u}+\bm{\mathcal{G}}(\bm{\zeta})=\bm{\mathcal{B}}(\bm{\zeta})\,\bm{\tau}_{w},with the mass, Coriolis, gravity and input terms of the two rigid bodies; the input term maps the wheel torques through (3). For a COM on the body axis, diagonal inertia and small tilts, the linearization of (7) reduces to (5) in each plane and to I_{B,z}\ddot{\gamma}=-\tau_{z} for the yaw; the 3D model thus differs from the planar models only through the coupling terms, the COM offset and the products of inertia, which grow with the tilt.
III-E Tracking controller: HSMC-ESO-ECBF
The tracker follows [5]: per plane an ESO and an HSMC, and one ECBF on the tilt cone for both planes; the yaw axis uses LQR.
Plane model with total disturbance
For each plane, with \bm{q}=[\psi,\ \varphi]^{\top} and the virtual ball torque u of that plane, (4) is written as
\ddot{\bm{q}}=\bm{f}+\bm{g}(\varphi)\,u,\qquad\bm{g}(\varphi)=\bm{M}(\varphi)^{-1}\begin{bmatrix}1\\
-1\end{bmatrix},where the total disturbance \bm{f} collects gravity, centrifugal terms, the coupling with the other plane and with yaw, the omni-wheel contact and all model errors; \bm{g}(0)=[b_{1},\ b_{2}]^{\top} of (5). Lumping everything but the input channel into one unknown signal is the idea of active disturbance rejection control [14]; only \bm{g} has to be known.
Extended state observer
The total disturbance is estimated as an extra state by a linear high-gain ESO [14, 15, 5], from the measured \bm{q} only:
\displaystyle\dot{\hat{\bm{q}}}_{1} \\ \displaystyle=\hat{\bm{q}}_{2}+\tfrac{\gamma_{1}}{\varepsilon}\bm{e}, \\ \displaystyle\dot{\hat{\bm{q}}}_{2} \\ \displaystyle=\hat{\bm{q}}_{3}+\tfrac{\gamma_{2}}{\varepsilon^{2}}\bm{e}+\bm{g}(\hat{\varphi})\,u, \\ \displaystyle\dot{\hat{\bm{q}}}_{3} \\ \displaystyle=\tfrac{\gamma_{3}}{\varepsilon^{3}}\bm{e},\qquad\bm{e}=\bm{q}-\hat{\bm{q}}_{1},where s^{3}+\gamma_{1}s^{2}+\gamma_{2}s+\gamma_{3} is Hurwitz and \varepsilon>0 sets the observer bandwidth (the poles scale with 1/\varepsilon). If \dot{\bm{f}} is bounded, the estimation errors are ultimately bounded and shrink with \varepsilon [15]; a small \varepsilon gives a fast estimate but amplifies measurement noise. The input fed to the ESO is the ball torque that the wheels actually produce after saturation; otherwise \hat{\bm{q}}_{3} absorbs the saturation error and winds up.
Hierarchical sliding mode control
The ballbot plane has one input for two outputs, the ball position and the tilt. Hierarchical sliding mode control [13, 5] builds one sliding surface per output and combines them into a single surface for the input. With e_{1}=\hat{\psi}-\psi_{r}, e_{2}=\hat{\varphi}-\varphi_{r}, s_{1}=\dot{e}_{1}+k_{1}e_{1}, s_{2}=\dot{e}_{2}+k_{2}e_{2}, s=k_{\alpha}s_{1}+k_{\beta}s_{2} and the exponential reaching law [39] \dot{s}=-ks-\eta\,\mathrm{sat}(s/\Phi), whose boundary layer \Phi avoids chattering,
\begin{gathered}u_{\text{HSMC}}=-\frac{\Xi+ks+\eta\,\mathrm{sat}(s/\Phi)}{k_{\alpha}g_{1}+k_{\beta}g_{2}},\\
\Xi=k_{\alpha}(\hat{f}_{1}-\ddot{\psi}_{r}+k_{1}\dot{e}_{1})+k_{\beta}(\hat{f}_{2}-\ddot{\varphi}_{r}+k_{2}\dot{e}_{2}),\end{gathered}where the tilt reference is the lean (6) of the reference acceleration.
Proposition 1 (Sliding surface by zero placement).
Write s=\bm{c}^{\top}[e_{1},\ e_{2},\ \dot{e}_{1},\ \dot{e}_{2}]^{\top} with \bm{c}=[k_{\alpha}k_{1},\ k_{\beta}k_{2},\ k_{\alpha},\ k_{\beta}]^{\top}, and let the linearized plane be (5) with \bm{A}_{21}=\bigl[\begin{smallmatrix}0&a_{1}\\ 0&a_{2}\end{smallmatrix}\bigr] and \bm{B}=[0,\ 0,\ b_{1},\ b_{2}]^{\top}. The motion on s=0 has the poles -p_{1},-p_{2},-p_{3} if
\displaystyle c_{3} \\ \displaystyle=\frac{\sigma_{2}\,\beta}{\kappa_{0}}, \\ \displaystyle c_{1} \\ \displaystyle=\frac{\sigma_{3}\,\beta}{\kappa_{0}}, \\ \displaystyle\kappa_{0} \\ \displaystyle=a_{1}b_{2}-b_{1}a_{2}, \\ \displaystyle c_{4} \\ \displaystyle=\frac{\beta-c_{3}b_{1}}{b_{2}}, \\ \displaystyle c_{2} \\ \displaystyle=\frac{\sigma_{1}\,\beta-c_{1}b_{1}}{b_{2}},where s^{3}+\sigma_{1}s^{2}+\sigma_{2}s+\sigma_{3}=(s+p_{1})(s+p_{2})(s+p_{3}) and \beta=\bm{c}^{\top}\bm{B}\neq 0.
Proof.
With \bm{x}=[e_{1},\ e_{2},\ \dot{e}_{1},\ \dot{e}_{2}]^{\top}, the motion on s=\bm{c}^{\top}\bm{x}=0 has as poles the zeros of H(\lambda)=\bm{c}^{\top}(\lambda\bm{I}-\bm{A})^{-1}\bm{B}. A direct computation gives H(\lambda)=n(\lambda)/(\lambda^{2}(\lambda^{2}-a_{2})) with n(\lambda)=\beta\lambda^{3}+(c_{1}b_{1}+c_{2}b_{2})\lambda^{2}+c_{3}\kappa_{0}\lambda+c_{1}\kappa_{0}, and equating n with \beta(\lambda^{3}+\sigma_{1}\lambda^{2}+\sigma_{2}\lambda+\sigma_{3}) gives the stated gains. ∎
The sign of \beta is chosen such that all four gains are positive, as required in [5].
Exponential control barrier function
The safe set is the tilt cone \mathcal{C}=\{h\geq 0\}, h=\theta_{\max}^{2}-\varphi_{x}^{2}-\varphi_{y}^{2}. Since the input appears only in \ddot{h} (h has relative degree two), an exponential CBF [16] is used, with a robust term in the spirit of [28]:
\ddot{h}+\ell_{2}\dot{h}+\ell_{1}h\geq 2\delta\,\|\bm{\varphi}\|_{1},with s^{2}+\ell_{2}s+\ell_{1} Hurwitz. If the predicted tilt acceleration \hat{\bm{f}}_{\varphi}+\bm{G}_{\varphi}\bm{u} is wrong by at most \delta per axis, the error enters \ddot{h} as -2\bm{\varphi}^{\top}\bm{e}\geq-2\delta\|\bm{\varphi}\|_{1}, which the right-hand side covers; unlike a constant margin, the term vanishes at the upright posture. Condition (12) is affine in the two planar inputs, \bm{a}^{\top}\bm{u}\geq b, with \bm{a}=-2\,\bm{G}_{\varphi}\bm{\varphi} and b=2\|\dot{\bm{\varphi}}\|^{2}+2\,\bm{\varphi}^{\top}\hat{\bm{f}}_{\varphi}-\ell_{2}\dot{h}-\ell_{1}h+2\delta\|\bm{\varphi}\|_{1}, and the safety filter \min_{\bm{u}}\|\bm{u}-\bm{u}_{\text{HSMC}}\|^{2} s.t. \bm{a}^{\top}\bm{u}\geq b has the closed-form solution
\bm{u}=\bm{u}_{\text{HSMC}}+\frac{\max(0,\ b-\bm{a}^{\top}\bm{u}_{\text{HSMC}})}{\|\bm{a}\|^{2}}\,\bm{a}.Steady tilt admitted by the filter
The robust term protects the tilt limit, but it also changes which postures the filter accepts indefinitely, and this matters for the planner. A planned path with a constant acceleration \bm{a} asks, by (6), for a constant lean \bm{\varphi}=\kappa\bm{a} held for as long as the acceleration lasts. Such a lean can be sustained only if (12) keeps holding while the body stays at it; otherwise the filter modifies the input, the body leans back, and the robot falls behind the plan. For a steady lean, \dot{\bm{\varphi}}=\ddot{\bm{\varphi}}=\bm{0}, the derivatives of the barrier vanish,
\dot{h}=-2\bm{\varphi}^{\top}\dot{\bm{\varphi}}=0,\qquad\ddot{h}=-2\|\dot{\bm{\varphi}}\|^{2}-2\bm{\varphi}^{\top}\ddot{\bm{\varphi}}=0,and (12) reduces to a condition on the lean alone,
\ell_{1}\bigl(\theta_{\max}^{2}-\|\bm{\varphi}\|^{2}\bigr)\ \geq\ 2\delta\,\|\bm{\varphi}\|_{1}.Without the robust term (\delta=0), (15) is the tilt cone itself and every lean up to \theta_{\max} is admitted. With \delta>0 the right-hand side grows with the lean, so the admitted set shrinks; since \|\bm{\varphi}\|_{2}\leq\|\bm{\varphi}\|_{1}\leq\sqrt{2}\,\|\bm{\varphi}\|_{2}, it shrinks most for a lean along a diagonal between the two planes.
Proposition 2 (Steady tilt admitted by the robust ECBF).
Let \bm{\varphi} be a constant lean. (i) For a lean in one plane, \bm{\varphi}=(\varphi,0) or (0,\varphi), the robust ECBF condition (12) holds if and only if
|\varphi|\leq\varphi^{\star}=-\frac{\delta}{\ell_{1}}+\sqrt{\frac{\delta^{2}}{\ell_{1}^{2}}+\theta_{\max}^{2}}.(ii) For a lean in any direction, (12) holds if
\|\bm{\varphi}\|\leq\bar{\varphi}^{\star}=-\frac{\sqrt{2}\,\delta}{\ell_{1}}+\sqrt{\frac{2\delta^{2}}{\ell_{1}^{2}}+\theta_{\max}^{2}},and the bound is attained along the diagonals. (iii) For \delta>0, \bar{\varphi}^{\star}<\varphi^{\star}<\theta_{\max}.
Proof.
For a steady lean, (12) is equivalent to (15), so it suffices to analyze this condition. In a single plane, let z=|\varphi|\geq 0. Then \|\bm{\varphi}\|_{1}=\|\bm{\varphi}\|=z, and (15) reads
p_{\delta}(z)=\ell_{1}z^{2}+2\delta z-\ell_{1}\theta_{\max}^{2}\ \leq\ 0.The quadratic p_{\delta} is convex, and p_{\delta}(0)=-\ell_{1}\theta_{\max}^{2}<0, so its two roots have opposite signs. On z\geq 0, p_{\delta}(z)\leq 0 holds exactly up to the positive root, which is \varphi^{\star} of (16).
For an arbitrary lean direction, let z=\|\bm{\varphi}\|. Since \|\bm{\varphi}\|_{1}\leq\sqrt{2}\,z,
\ell_{1}\bigl(\theta_{\max}^{2}-z^{2}\bigr)-2\delta\|\bm{\varphi}\|_{1}\ \geq\ -p_{\sqrt{2}\delta}(z),so (15) holds whenever p_{\sqrt{2}\delta}(z)\leq 0, i.e. by the single-plane argument with \delta replaced by \sqrt{2}\,\delta, whenever z\leq\bar{\varphi}^{\star}. Along a diagonal, \|\bm{\varphi}\|_{1}=\sqrt{2}\,z and the inequality above is an equality, so the bound is attained.
To compare the two bounds, for c>0, the positive root \rho(c)=-c+\sqrt{c^{2}+\theta_{\max}^{2}} satisfies
\rho^{\prime}(c)=-1+\frac{c}{\sqrt{c^{2}+\theta_{\max}^{2}}}<0,\qquad\rho(c)<\theta_{\max},the latter because \sqrt{c^{2}+\theta_{\max}^{2}}<c+\theta_{\max}. With c=\delta/\ell_{1} and c=\sqrt{2}\,\delta/\ell_{1} this gives \bar{\varphi}^{\star}<\varphi^{\star}<\theta_{\max}. ∎
A steady acceleration that needs more lean than \varphi^{\star} (in one plane) or \bar{\varphi}^{\star} (in the worst direction) cannot be sustained by the tracker, even though it is below \theta_{\max}. The gap grows with the robustness level \delta/\ell_{1}; it is the price of the robust term, and the planner must respect it (Section IV).
Remark 1 (Comparison with the tracker of Vu et al. [5]).
The structure of the tracker is that of [5]. The present design assigns the sliding dynamics in closed form (Proposition 1) instead of tuning the gains, replaces the switching term by a saturation to avoid chattering, covers the estimation error with the single robust term 2\delta\|\bm{\varphi}\|_{1} and a closed-form filter instead of a quadratic program with Lipschitz-based bounds (a weaker but practical guarantee), analyzes the steady tilt that this term admits (Proposition 2), feeds the ESO with the saturated torque and measures the tilt toward the body COM. Unlike [5], which derives the tilt reference exactly from a flat-output trajectory, the planner here provides only the quasi-static lean (6). ∎
III-F Baseline: LQR
The baseline is the common linear design for ballbots [12]: a discrete LQR per plane on (5) (zero-order hold at the control period), u=\tau_{ff}-\bm{K}(\bm{s}-\bm{s}_{r}) with weights \bm{Q}\succ 0, R_{u}>0. The reference lean and the feedforward torque follow (6). The yaw axis uses the same design on I_{B,z}\ddot{\gamma}=-\tau_{z}.
IV Jerk-Model MPC with Control Barrier Functions
IV-A Architecture and design rationale
The navigation problem is split into two layers with separate roles (Fig. 3). The planner generates a collision-free and tilt-feasible reference for the ball position; the tracker follows it, balances the body and enforces the tilt limit. The planner does not model the balance dynamics. It needs only three quantities from the lower layer: (i) the lean–acceleration relation (6), which converts the tilt limit into a limit on the planned motion; (ii) the steady tilt \varphi^{\star} that the tracker admits (Proposition 2), which fixes how much of the tilt limit the planner may use; and (iii) the robot footprint and a bound on the tracking error, which fix how far the plan must stay from the obstacles.
Why a reduced model
Planning on the full robot model, as in [6], couples the planner to the balance dynamics: each solve integrates the nonlinear 3D model along the horizon, the problem changes with every change of the robot, and the tilt limit, which is handled by a separate filter, is not visible to the plan. Planning on a model of the ball alone removes all three issues, provided that the plan respects the limits of the balance. The model must therefore be simple enough to solve fast, rich enough to express those limits, and smooth enough for a tracker that turns accelerations into leans.
Time scales
The planner replans every \Delta t, much slower than the tracker period T_{s}; between replanning instants the tracker reads the current plan at its own rate. The two layers interact only through the reference and the three quantities above, so the planner can be changed without touching the tracker and vice versa.
\varphi^{\star}. Badges: contributions of Table I.IV-B Jerk model and acceleration bound
With the ball position, velocity and acceleration \bm{p},\bm{v},\bm{a}\in\mathbb{R}^{2} and the jerk \bm{j} held constant over a step \Delta t, the exact discretization of the triple integrator is
\displaystyle\bm{p}_{k+1} \\ \displaystyle=\bm{p}_{k}+\bm{v}_{k}\Delta t+\tfrac{1}{2}\bm{a}_{k}\Delta t^{2}+\tfrac{1}{6}\bm{j}_{k}\Delta t^{3}, \\ \displaystyle\bm{v}_{k+1} \\ \displaystyle=\bm{v}_{k}+\bm{a}_{k}\Delta t+\tfrac{1}{2}\bm{j}_{k}\Delta t^{2},\qquad\bm{a}_{k+1}=\bm{a}_{k}+\bm{j}_{k}\Delta t.Between planner steps the reference is the cubic polynomial of (18) evaluated at the current time. The two planes are independent in this model; they are coupled only through the norm bounds of the optimal control problem below.
The order of the model is chosen for the tracker. By (6), the tracker leans the body by \kappa\ddot{\bm{p}}_{r}, so the smoothness of the lean reference is the smoothness of the planned acceleration.
Remark 2 (Smooth lean reference).
Because the jerk is held constant over each planner step, the planned acceleration changes linearly in time and never jumps, also across steps; the lean reference, which is proportional to it, is therefore continuous, and it changes at a rate bounded by the jerk bound times the lean gain. A lower-order model would lose this property: with the acceleration as the input, the planned acceleration, and with it the lean reference, would jump at every step, and the tracker would have to tilt the body instantly, which produces large torque peaks and triggers the tilt filter. The jerk model is thus the lowest order with a continuous lean reference, and it keeps the optimal control problem small. The rate of the lean reference still jumps at the planner steps; the closed loop of the tracker smooths these corners. ∎
Acceleration constraint
The planner bounds the acceleration so that the lean it asks for is one that the tracker can hold. By (6), a planned acceleration \bm{a} asks for the lean \kappa\bm{a}, and by Proposition 2 the tracker holds a steady lean up to \varphi^{\star} in one plane and up to \bar{\varphi}^{\star} in the worst direction. The planner therefore uses
\|\bm{a}\|\leq a_{\max}=\frac{\rho\,\varphi^{\star}}{\kappa},\qquad 0<\rho\leq\frac{\bar{\varphi}^{\star}}{\varphi^{\star}},so that the requested lean stays below \bar{\varphi}^{\star} in every direction, and in a single plane a margin of (1-\rho)\varphi^{\star} remains for the corrections of the tracker. The bound depends on the tracker only through \varphi^{\star} and on the robot only through \kappa, both in closed form. A bound derived from \theta_{\max} instead asks for leans between \varphi^{\star} and \theta_{\max} that the tracker refuses; Section VI-F quantifies the effect.
IV-C Obstacle barrier functions
Each obstacle i is an ellipse with semi-axes a_{i}\geq b_{i}, center \bm{c}_{i}(t) and orientation \eta_{i}(t), moving with known velocity, acceleration and angular rate. In the obstacle frame, \bm{p}^{E_{i}}=\bm{\mathcal{R}}(\eta_{i})^{\top}(\bm{p}-\bm{c}_{i}), and the barrier is
D_{i}(\bm{p},t)=\left(\frac{p^{E_{i}}_{x}}{a_{i}+r}\right)^{2}+\left(\frac{p^{E_{i}}_{y}}{b_{i}+r}\right)^{2}-1,where r=r_{\text{robot}}+r_{\text{track}}, r_{\text{robot}} is the footprint radius and r_{\text{track}} a margin for the tracking error. The plan is safe if D_{i}>0, i.e. the ball center stays outside the ellipse with semi-axes inflated by r.
Inflated ellipse
Inflating the semi-axes is simpler than the exact offset of the ellipse by r, i.e. its Minkowski sum with a disc of radius r, which is not an ellipse. The inflated ellipse lies inside the exact offset, since in every direction its extent is at most that of the ellipse plus r; the two coincide for a circle, and the inflated ellipse falls short of the exact offset by at most
r\,\frac{(\sqrt{a_{i}}-\sqrt{b_{i}})^{2}}{a_{i}+b_{i}},which follows from the Kantorovich inequality and grows with the elongation of the ellipse. The barrier thus slightly underestimates the region that the footprint must avoid, and the margin r_{\text{track}} must cover this gap as well as the tracking error.
Discrete-time CBF
Distance constraints at every step would force the plan to start the evasion only when an obstacle enters the horizon. The discrete-time CBF constraint [26]
D_{i}(\bm{p}_{k+1},t_{k+1})\geq(1-\gamma)\,D_{i}(\bm{p}_{k},t_{k}),\qquad 0<\gamma<1,instead lets D_{i} decrease by at most a fraction \gamma per step, so the plan approaches an obstacle gradually; a small \gamma makes the evasion start earlier and the plan more conservative. If the plan starts outside the inflated obstacle, D_{i}(\bm{p}_{0},t_{0})>0, and satisfies (22) at every step, then by induction D_{i}(\bm{p}_{k},t_{k})\geq(1-\gamma)^{k}D_{i}(\bm{p}_{0},t_{0})>0 for k=0,\dots,N, so the plan is safe at the planner samples [26]. Between samples the plan is a cubic polynomial and the obstacle keeps moving; the step \Delta t is short compared with the time the robot needs to cross the inflation r, and the margin r_{\text{track}} also covers this inter-sample effect.
Concave obstacles
Following [6], the polygon of a concave obstacle (in its own moving frame) is decomposed into convex pieces by an ear-clipping triangulation followed by Hertel–Mehlhorn merging [40]. Each piece is bounded by its minimum-area enclosing ellipse,
\displaystyle\min_{\bm{c},\ \bm{Q}\succ 0} \\ \displaystyle-\log\det\bm{Q} \\ \displaystyle\text{s.t.} \\ \displaystyle(\bm{b}_{m}-\bm{c})^{\top}\bm{Q}\,(\bm{b}_{m}-\bm{c})\leq 1\quad\forall\ \text{vertices }\bm{b}_{m},solved with Khachiyan’s algorithm [41]. All ellipses move rigidly with the obstacle, and each one contributes its own constraint (22). The pieces cover the polygon much more tightly than one ellipse around the whole obstacle, which would close the opening of a concave shape; the price is one constraint per piece and per step.
IV-D Optimal control problem and replanning
At each replanning time t_{0} the planner solves
\displaystyle\min_{\bm{j}_{0},\dots,\bm{j}_{N-1}} \\ \displaystyle\sum_{k=1}^{N}\Bigl(w_{p}^{(k)}\|\bm{p}_{k}-\bm{p}_{\text{ref}}(t_{k})\|^{2}+w_{v}\|\bm{v}_{k}-\bm{v}_{\text{ref}}(t_{k})\|^{2} \\ \displaystyle+w_{a}\|\bm{a}_{k}\|^{2}+w_{j}\|\bm{j}_{k-1}\|^{2}\Bigr) \\ \displaystyle\text{s.t.} \\ \displaystyle\text{\eqref{eq:jerk}},\quad\bm{z}_{0}=\bm{z}(t_{0}), \\ \displaystyle\|\bm{v}_{k}\|\leq v_{\max},\quad\|\bm{a}_{k}\|\leq a_{\max},\quad|\bm{j}_{k}|_{\infty}\leq j_{\max}, \\ \displaystyle D_{i}(\bm{p}_{k+1},t_{k+1})\geq(1-\gamma)\,D_{i}(\bm{p}_{k},t_{k})\quad\forall i,k,where \bm{z}=[\bm{p},\bm{v},\bm{a}] and \bm{p}_{\text{ref}}, \bm{v}_{\text{ref}} are the nominal path and its velocity.
Cost
The position and velocity terms pull the plan back to the nominal path once an obstacle has been passed; a larger terminal weight w_{p}^{(N)} keeps the end of the horizon close to it. The acceleration term penalizes the lean that the plan asks from the tracker, and the jerk term penalizes the rate of change of that lean (Remark 2); together they make the plan prefer early, gentle evasions over late, sharp ones.
Structure
The dynamics (18) are linear and the velocity, acceleration and jerk bounds are convex. The only nonconvex constraints are the barrier conditions (22), one per obstacle ellipse and per step. The problem has six states and two inputs per stage, independent of the robot; its size grows linearly with the horizon and with the number of ellipses. It is solved with IPOPT [42] through CasADi [43], warm-started with the shifted previous solution.
Remark 3 (Plan continuity).
The initial state \bm{z}(t_{0}) is the previous plan evaluated at t_{0}, not the measured state. The reference is then continuous in position, velocity and acceleration across replanning instants, so the lean reference stays continuous as well (Remark 2), and the planner does not react to the tracking error, which is bounded by the margin r_{\text{track}}. ∎
Remark 4 (Feasibility).
With moving obstacles, (24) is not guaranteed to remain feasible from one replanning instant to the next: an obstacle may enter the horizon too fast for the bounded acceleration to avoid it. The constraints of (24) are kept hard for known obstacle motion; with predicted obstacles, Section V softens them and adds a fallback plan. Section VI reports the number of solver failures. ∎
V Uncertainty-Aware Planning with Conformal Prediction
Section IV assumes that the future motion of every obstacle is known. In practice the planner only observes the obstacles and must predict where they will be over its horizon; the prediction is wrong whenever an obstacle turns or changes its speed. This section replaces the known motion by a prediction and bounds the prediction error with conformal prediction [32, 33], following the idea of [34] (Fig. 4): the obstacle ellipses of (20) are inflated at every horizon step by a radius that the true obstacle position does not exceed with a prescribed probability. The planner, the tracker and the interface of Section IV are unchanged.
V-A Obstacle prediction
At every replanning instant t_{0} the planner has noisy observations \hat{\bm{c}}_{i}(t_{0}-j\Delta t), j=0,\dots,H-1, of the center of obstacle i. A predictor maps them to the predicted centers \hat{\bm{p}}_{i,k|t_{0}} at t_{k}=t_{0}+k\Delta t, k=0,\dots,N. Any predictor can be used; the simplest one fits a constant velocity by least squares,
\begin{gathered}(\hat{\bm{c}}_{0},\hat{\bm{v}})=\arg\min_{\bm{c},\bm{v}}\sum_{j=0}^{H-1}\bigl\|\hat{\bm{c}}_{i}(t_{0}-j\Delta t)-\bm{c}+j\Delta t\,\bm{v}\bigr\|^{2},\\
\hat{\bm{p}}_{i,k|t_{0}}=\hat{\bm{c}}_{0}+k\Delta t\,\hat{\bm{v}}.\end{gathered}The prediction error grows with k, since the obstacle may turn or change its speed within the horizon; its distribution is unknown.
q_{k} is the quantile covering a fraction 1-\alpha of the calibration errors S_{k}. (b) Online, the predicted obstacle at step k is inflated by r+q_{k}, and the plan (cyan) stays outside.V-B Conformal prediction regions
For horizon step k, the nonconformity score is the prediction error
S_{k}=\bigl\|\bm{c}_{i}(t_{k})-\hat{\bm{p}}_{i,k|t_{0}}\bigr\|.A calibration set of n scores S_{k}^{(1)},\dots,S_{k}^{(n)} is collected from independent recorded obstacle trajectories (or from a simulator of the obstacles), and the conformal radius is the empirical quantile
q_{k}=S_{k}^{(\lceil(n+1)(1-\alpha)\rceil)},the \lceil(n+1)(1-\alpha)\rceil-th smallest calibration score, with a miscoverage level \alpha\in(0,1).
The radius inherits the coverage guarantee of split conformal prediction [32, 33]: if the score S_{k} of a new prediction and the calibration scores are exchangeable and \alpha\geq 1/(n+1), then
\mathbb{P}\bigl(S_{k}\leq q_{k}\bigr)\ \geq\ 1-\alpha.The argument uses only that, by exchangeability, the rank of S_{k} among the n+1 scores is uniformly distributed; the condition on \alpha makes the index in (27) at most n. The guarantee holds for any predictor and any distribution of the obstacle motion, but only per horizon step. A guarantee for the whole horizon follows from the union bound by calibrating every step at the level \alpha/N, at the price of larger radii.
V-C Uncertainty-aware obstacle barriers
The barrier (20) of step k is evaluated at the predicted center with the semi-axes inflated by q_{k},
D_{i,k}(\bm{p})=\left(\frac{p^{E_{i}}_{x}}{a_{i}+r+q_{k}}\right)^{2}+\left(\frac{p^{E_{i}}_{y}}{b_{i}+r+q_{k}}\right)^{2}-1,with \bm{p}^{E_{i}}=\bm{\mathcal{R}}(\eta_{i})^{\top}(\bm{p}-\hat{\bm{p}}_{i,k|t_{0}}), and replaces D_{i}(\bm{p}_{k},t_{k}) in (22) and (24).
Probabilistic clearance
The inflation by q_{k} turns the coverage of the prediction into a clearance of the plan, as in [34]. For a disc obstacle, a_{i}=b_{i}, the constraint D_{i,k}(\bm{p}_{k})\geq 0 keeps the planned position at the distance a_{i}+r+q_{k} from the predicted center. With probability at least 1-\alpha the true center lies within q_{k} of the predicted one by (28), and then, by the triangle inequality,
\bigl\|\bm{p}_{k}-\bm{c}_{i}(t_{k})\bigr\|\ \geq\ \bigl\|\bm{p}_{k}-\hat{\bm{p}}_{i,k|t_{0}}\bigr\|-S_{k}\ \geq\ a_{i}+r,i.e. the planned footprint, enlarged by the tracking margin, does not intersect the true obstacle at step k. For an elongated ellipse, inflating the semi-axes by q_{k} is smaller than the offset of the ellipse by q_{k}, and the clearance holds up to the gap (21) evaluated with r+q_{k} instead of r. The tracking error is covered by r_{\text{track}} as in Section IV.
V-D Feasibility: soft barriers and fallback plan
The conformal radii grow along the horizon, so the inflated region of an obstacle expands from one step to the next. In (22) this expansion decreases D_{i,k} even when the planned position does not move toward the obstacle; together with the change of the prediction between replanning instants, the problem can become infeasible. Two mechanisms keep the planner well defined.
Soft barrier constraints
The barrier constraints are relaxed by nonnegative slacks,
D_{i,k+1}(\bm{p}_{k+1})\ \geq\ (1-\gamma)\,D_{i,k}(\bm{p}_{k})-\sigma_{i,k},\qquad\sigma_{i,k}\geq 0,and w_{\sigma}\sum_{i,k}\sigma_{i,k} with a large weight w_{\sigma} is added to the cost of (24). The problem is then always feasible, and a nonzero slack signals that the hard constraints could not be met; the number of such replanning instants is reported.
Fallback plan
If the solver does not converge, the planner keeps the previous plan, with its original time origin, instead of applying an unconverged iterate. The previous plan satisfied the constraints for the prediction at its own replanning instant; the next solve is warm-started from it.
Remark 5 (Assumptions and limits).
The coverage (28) requires the calibration data to be representative of the deployment, i.e. exchangeable with it; a change of the obstacle behavior (for example a different crowd density) calls for recalibration or for adaptive variants of conformal prediction. The guarantee concerns the plan at the planner samples; the tracking error and the motion between samples are covered by the margin r_{\text{track}}, as in Section IV. Finally, a better predictor does not change the guarantee but reduces q_{k} and therefore the conservatism of the plan. ∎
VI Simulation Results
All results are obtained in MuJoCo [44] using the detailed asRoBallet base model adapted from the authors’ released MJCF implementation [8] (free base, three omni wheels with 36 passive rollers, ball–floor contact with friction), at 2 ms per step with the controllers at the same rate and the wheel torques saturated at \pm 4 N m.
The experiments proceed from the components to the complete scheme. Section VI-B checks that the planar and 3D design models reproduce MuJoCo and determines up to which tilt the planes decouple. Section VI-C evaluates whether the HSMC-ESO-ECBF keeps the tilt limit on a step and a push despite the input-gain mismatch, and Section VI-D checks the steady tilt that the robust ECBF admits (Proposition 2). The complete scheme is then applied to static, moving, rotating and concave obstacles in Section VI-E; Section VI-F isolates the contribution of the tracker-consistent acceleration bound and of the tracking margin, Section VI-G compares the scheme with a full-model NMPC followed by a tilt filter, and Section VI-H tests its robustness to random obstacles and to model mismatch. Finally, Section VI-I evaluates the conformal radii against obstacles whose motion is predicted.
VI-A Simulation setup
Robot
The ball has radius R=0.115 m, mass m_{b}=3.021 kg and inertia I_{b}=0.0245 kg m2. The three omni wheels of radius r_{w}=0.050 m are spaced 120^{\circ} apart with axles tilted 45^{\circ} from the vertical, each with twelve passive rollers and an axle torque of at most \pm 4 N m (gear 2, control range \pm 2). The body (base only) has mass M=5.642 kg and inertia \mathrm{diag}(0.080,0.080,0.035) kg m2, and its COM lies l=0.241 m above the ball center, 0.63^{\circ} ahead of the base axis. These values are taken from the adapted asRoBallet MJCF model [8]. The kinematic matrix (2) is
\bm{J}=\begin{bmatrix}-1.626&0&1.626\\
0.813&-1.409&1.626\\
0.813&1.409&1.626\end{bmatrix},with singular values \{2.82,1.99,1.99\} (condition number \sqrt{2}); with the body fixed, MuJoCo reproduces it within 1–4\,\%. The linearized plane (5) has a_{1}=-64.83, a_{2}=57.59 s-2, b_{1}=17.505, b_{2}=-9.164 (kg m2)-1, i.e. unstable poles \pm 7.59 s-1 (time constant 0.13 s), and the lean gain (6) is \kappa=0.193 rad per m/s2 (11.0^{\circ} per m/s2).
Tracker
The tracker runs every T_{s}=2 ms (500 Hz). The ESO has \varepsilon=0.01 and (\gamma_{1},\gamma_{2},\gamma_{3})=(3,3,1), a triple pole at -1/\varepsilon. The sliding surface places the poles of Proposition 1 at 2,3,4 s-1; with \kappa_{0}=-414.0 and \beta=-1 this gives the positive gains (k_{\alpha},k_{1},k_{\beta},k_{2})=(0.063,0.923,0.229,4.77), and the reaching law uses k=15, \eta=0.5 and \Phi=0.05. The ECBF uses \theta_{\max}=0.1 rad (5.73^{\circ}), \ell_{1}=\ell_{2}=10 and \delta=0.5 rad/s2, for which Proposition 2 gives \varphi^{\star}=3.54^{\circ} in one plane and \bar{\varphi}^{\star}=2.97^{\circ} in the worst direction, so \bar{\varphi}^{\star}/\varphi^{\star}=0.84. The yaw LQR uses \bm{Q}=\mathrm{diag}(20,1), which gives \bm{K}=[-4.33,\ -1.11]. The LQR baseline uses \bm{Q}=\mathrm{diag}(30,200,10,10), R_{u}=1: \bm{K}=[-5.09,\ -88.83,\ -5.22,\ -17.53], closed-loop poles \{-1.77,-4.51\pm 0.15j,-63.0\} s-1.
Planner
The MPC replans every \Delta t=0.1 s (10 Hz) over N=25 steps (2.5 s), with the bounds v_{\max}=0.5 m/s and j_{\max}=2 m/s3, the cost weights (w_{p},w_{p}^{(N)},w_{v},w_{a},w_{j})=(10,50,1,1,0.05) and the DCBF rate \gamma=0.2. With \rho=0.8\leq\bar{\varphi}^{\star}/\varphi^{\star}, (19) gives a_{\max}=0.26 m/s2; the bound from \theta_{\max} used in the ablation is 0.7\,\theta_{\max}/\kappa=0.36 m/s2. The footprint radius is r_{\text{robot}}=0.25 m and the tracking margin r_{\text{track}}=0.10 m. With r=r_{\text{robot}}+r_{\text{track}}=0.35 m, the gap (21) between the inflated ellipses and the exact offset of the obstacles is zero for the circles and at most 2.0 cm for the translating ellipses and 4.0 cm for the pieces of the U-shaped obstacle (bound (21): 7.5 cm), well inside r_{\text{track}}. The solver converged at every replanning instant in the four scenarios, the Monte Carlo runs and the model-mismatch runs.
Conformal calibration
The calibration data are 200 independent trajectories of 30 s of the obstacles of Section VI-I, each started at a random position and heading; on each, the predictor (25) is applied at 20 random instants, which gives n=4000 score vectors (S_{0},\dots,S_{N}). The radii q_{k} of (27) are computed once, offline, for every horizon step with \alpha=0.1, and the planner uses them as a fixed table. On an independent test set generated in the same way, the per-step coverage is 0.893–0.910 (target 0.90; mean 0.900). The radius grows from 1.7 cm at k=0 to 18 cm at 1 s and 61 cm at the end of the horizon (2.5 s). The scores of one trajectory are correlated, so the calibration set is only approximately exchangeable with a new prediction; the test coverage confirms the level. The obstacles of Scenario 4 in Section VI-I stay inside an arena, which changes their motion, so their radii are calibrated separately in the same way: the per-step coverage is 0.897–0.908 (mean 0.904), and the radius grows from 1.7 cm to 21 cm at 1 s and 72 cm at 2.5 s.
VI-B Model validation
The LQR runs with identical gains, references and saturation on MuJoCo, on the planar model (4) and on the 3D model (7), both integrated with RK4 from the measured initial MuJoCo state (Table II, Figs. 5 and 6).
- x
- 15.7
- 0.94
- 1.7
- 1.00
- 2.7
- 1.00
- 1.8
- 1.00
- pitch
- 7.9
- 0.86
- 3.5
- 0.99
- 4.4
- 1.00
- 8.0
- 0.99
- \dot{x}
- 7.0
- 0.91
- 3.0
- 1.00
- 3.3
- 1.00
- 3.5
- 1.00
- pitch rate
- 3.6
- 0.97
- 2.2
- 0.99
- 16.3
- 0.84
- 28.1
- 0.30
- \tau_{y}
- 4.3
- 0.68
- 6.3
- 0.77
- 35.2
- 0.45
- 35.5
- 0.28
x_{r}:0\to 0.5 m.A=0.6 m, 12 s per lap): x–z plane (left) and y–z plane (right).The positions and tilts follow MuJoCo within a few percent; the rates and torques differ more on the slow references, where Coulomb friction of the wheels and rollers, absent from both models, is comparable to the control torque. The planar and 3D models are equal to 10^{-3} degrees here.
Validity of the decoupled planes
The robot is released from an initial tilt \theta_{0}=5^{\circ}\dots 50^{\circ} about y (pitch only) or about (1,1,0)/\sqrt{2} (combined roll–pitch), with and without the wheel saturation (Fig. 7).
1^{\circ}). (b) RMS lean error of each RK4 model with respect to MuJoCo.A pitch-only lean stays planar without saturation (difference <0.04^{\circ} up to 50^{\circ}). A combined roll–pitch lean couples the planes: the difference exceeds 1^{\circ} at \theta_{0}\approx 20^{\circ} with saturation and \approx 30^{\circ} without it. Saturation amplifies the coupling, because clipping each wheel separately turns the ball torque vector and creates a yaw torque; the 3D model is then closer to MuJoCo than the planar one (1.41^{\circ} vs. 2.11^{\circ} RMS at 40^{\circ}). With saturation and a pitch-only lean of 40^{\circ}, the 3D model falls while MuJoCo and the planar model recover, so the 3D model is not uniformly more accurate. The planar design models are adequate up to \approx 15^{\circ} of combined tilt; the tilt limit of 5.73^{\circ} keeps the robot well inside this range.
VI-C Tracking controller
HSMC-ESO with and without ECBF, and LQR, are compared on a step of the target to x=1 m and a 25 N push on the body for 0.1 s (Table III, Fig. 8).
- Step of 1 m
- max tilt [deg]
- \mathbf{5.71}
- 21.16
- 25.42
- undershoot [cm]
- \mathbf{0.2}
- 6.1
- 8.1
- settling to \pm 5 cm [s]
- 2.91
- 2.24
- \mathbf{2.03}
- control variation [1/s]
- 10.5
- \mathbf{5.5}
- 16.5
- ECBF active [%]
- 34.6
- –
- –
- Push of 25 N for 0.1 s
- max tilt [deg]
- \mathbf{4.50}
- 11.21
- 10.76
- max displacement [cm]
- 27.2
- 13.6
- \mathbf{12.9}
- control variation [1/s]
- 9.8
- \mathbf{3.8}
- 9.7
x=1 m and (b) 25 N push: the ECBF keeps the tilt below 5.73^{\circ}, at the price of a longer braking distance.Input-gain mismatch and robust term
Stepping two copies of the same balanced state with and without a ball-torque pulse shows that MuJoCo produces only \approx 70\,\% of the modeled tilt acceleration (-6.2 vs. -9.2 rad/s2 per N m over 2–4 ms): the wheels and rollers absorb part of the torque and the ball reacts through compliant roller contacts. The ECBF relies on the predicted tilt acceleration, so this mismatch, together with the observer lag, lets the tilt exceed the limit unless the observer is fast enough and the robust term covers the remaining error (Table IV). A constant margin is not usable: it makes the condition infeasible at the upright posture for tight limits.
- 0.02
- 0
- +4.75
- +4.73
- +4.50
- +2.74
- 1.9
- 0.01
- 0
- +1.24
- +1.40
- +1.34
- +0.54
- 2.5
- 0.01
- 0.2
- +0.82
- +1.01
- +1.04
- -0.17
- 2.5
- 0.01
- 0.5
- +0.01∗
- -0.40
- -0.02
- -1.23
- 3.9
The ECBF holds the limit at the price of speed, because accelerating and braking a ballbot require leaning: a tighter limit gives a slower step and a longer braking distance after a push. A reference that asks for leans close to \varphi^{\star} therefore cannot be tracked accurately with the filter active, which is what the acceleration bound of the planner avoids.
VI-D Steady tilt admitted by the robust ECBF
To check Proposition 2, the tracker alone follows a reference with a constant acceleration a, which asks for the constant lean \varphi_{\text{ref}}=\kappa a by (6), along the x axis or along a diagonal. The acceleration rises smoothly within 1 s and is then held for 4 s; the held tilt is the mean measured tilt over the last 1.5 s. Fig. 9 shows it for \delta=0, 0.2 and 0.5, with the other parameters of Section VI-A.
\varphi^{\star} and \bar{\varphi}^{\star} (Proposition 2).Without the robust term, the held tilt follows the request over the whole range, and at the largest request (5.5^{\circ}) it exceeds \theta_{\max} by 0.04^{\circ}. With \delta>0 it saturates, lower along the diagonal than along the axis and lower for the larger \delta, as Proposition 2 predicts. For the chosen \delta=0.5, the held tilt saturates at 3.8^{\circ} along the axis and at 3.1^{\circ} along the diagonal, 0.3^{\circ} and 0.1^{\circ} above \varphi^{\star}=3.54^{\circ} and \bar{\varphi}^{\star}=2.97^{\circ}; for \delta=0.2 the excess is up to 0.65^{\circ}. Below the saturation the held tilt exceeds the request by 0.1–0.2^{\circ}. The excess is consistent with the input-gain mismatch above: at the saturation the filter corrects the input for a tilt acceleration that MuJoCo produces only in part, so the body settles at a larger tilt than in the design model. The planner requests at most \rho\varphi^{\star}=2.83^{\circ}, below the saturation in both directions.
VI-E Jerk-model MPC-CBF obstacle avoidance
The complete scheme drives the robot from (0,0) to (4,4) m along a nominal line at 0.3 m/s, in four scenarios following [6]: static (two circles), moving (two circles crossing the path at 0.26 m/s, timed to meet the robot at t=7 and 13 s), ellipse (two 0.5\times 0.18 m ellipses that translate and rotate at \pm 0.5 rad/s), and concave (the U-shaped obstacle bounded by three ellipses, accelerating across the path and turning at 0.2 rad/s). For the U (1.2\times 0.9 m, area 0.63 m2) the three ellipses cover 1.02 m2, against 1.70 m2 for one ellipse around the U. The clearance is the distance from the ball center to the obstacle boundary minus the robot radius. The paths are shown in Fig. 10 and the time histories in Fig. 11. Time-lapses of the four runs in MuJoCo are shown in Fig. 1(c)–(f).
- Min clearance [cm], robot / plan
- 11.8 / 10.0
- 11.1 / 10.0
- 10.3 / 10.1
- 11.0 / 10.0
- Max plan deviation [m] / max tilt [deg]
- 0.52 / 4.06
- 0.74 / 4.07
- 0.66 / 4.05
- 1.15 / 4.23
- Tracking error [cm], RMS / max / final
- 2.0 / 3.8 / 0.9
- 2.0 / 4.5 / 0.1
- 1.9 / 3.8 / 0.4
- 1.6 / 3.5 / 0.8
- MPC solve time [ms], median / 95th percentile / max∗
- 10 / 16 / 17
- 12 / 16 / 21
- 9 / 15 / 17
- 11 / 18 / 21
t=6, 12, 18 s (darker = later), with the robot (dots) at the same times.In all scenarios the robot keeps more than 10 cm between its footprint and the obstacles, the tilt stays below \theta_{\max}, the robot arrives at the same time as on the nominal line (18.8 s; the detours are absorbed by the velocity margin), and the MPC solves in 9–12 ms (median) and at most 21 ms, well below the 100 ms replanning period. Only the first solve, started without a warm start while the robot is at rest, takes 64–114 ms. The measured tilt follows the lean implied by the planned acceleration; the excess over \rho\varphi^{\star}=2.8^{\circ}, up to 1.4^{\circ}, comes from tracking corrections.
VI-F Ablation: acceleration bound and tracking margin
Table VI compares the proposed planner with two variants: an acceleration bound derived from the tilt limit (a_{\max}=0.7\,\theta_{\max}/\kappa=0.36 m/s2) instead of \varphi^{\star}, and no tracking margin.
- Proposed: a_{\max}=\rho\varphi^{\star}/\kappa, r_{\text{track}}=10 cm
- 11.8
- 11.1
- 10.3
- 11.0
- 2.0
- 2.0
- 1.9
- 1.6
- 3.8
- 4.5
- 3.8
- 3.5
- 4/4
- a_{\max} from \theta_{\max}
- 11.2
- 6.8
- 10.7
- 11.1
- 6.7
- 3.6
- 5.4
- 11.7
- 18.5
- 10.0
- 16.7
- 39.1
- 3/4
- No tracking margin (r_{\text{track}}=0)
- 1.6
- 1.4
- 0.7
- 1.9
- 1.8
- 2.0
- 2.2
- 1.5
- 3.5
- 4.5
- 4.8
- 3.5
- 4/4
With the bound derived from \theta_{\max}, the plan asks for leans between \varphi^{\star} and 0.7\,\theta_{\max} that the ECBF refuses; the robot lags the plan by up to 39 cm, the clearance in the moving scenario drops to 6.8 cm, and in the concave scenario the robot does not reach the goal within 24 s. The proposed bound reduces the RMS tracking error by a factor of 1.8–7. Without the tracking margin, the plan touches the footprint-inflated boundary and the robot keeps only 0.7–1.9 cm of clearance.
VI-G Comparison with a full-model NMPC
As a baseline, the full-model approach of [6] is applied to the same robot and scenarios: a nonlinear MPC on the 3D model of Section III-D computes the ball torques directly, with the same inflated ellipses and discrete-time CBFs for the obstacles, and the tilt limit is removed from the MPC and enforced afterwards by the same robust ECBF filter. As in [6], the prediction horizon is 1 s (20 steps of 0.05 s) and the control horizon 0.5 s; the barrier decay per second equals that of the jerk-model planner, and the barrier constraints are softened by a heavily penalized slack, without which the problem became infeasible as soon as an obstacle entered the horizon. The NMPC is re-solved every 20 ms from the measured state, and the simulation waits for each solve, which favors the baseline: on a real robot the first input would be applied only after the solve time.
- static
- 11.8
- -11.2
- 4.06
- 5.21
- 10
- 145
- moving
- 11.1
- -12.3
- 4.07
- 8.02
- 12
- 131
- ellipse
- 10.3
- -2.3
- 4.05
- 5.38
- 9
- 150
- concave
- 11.0
- -3.7
- 4.23
- 6.30
- 11
- 108
Table VII summarizes the results. The full-model NMPC enters the inflated region of an obstacle in all four scenarios, by up to 12 cm, and exceeds the tilt limit in two of them, while the proposed scheme keeps more than 10 cm of clearance and a tilt below 4.3^{\circ}. The cause is the inconsistency between the plan and the tilt filter discussed in Section II: the NMPC does not know the tilt limit and plans evasions that require large leans; the filter modifies its input during 69–86\,\% of the time (against 26–41\,\% for the proposed scheme), the robot does not execute the evasion that the NMPC planned, and the next solve starts from a state closer to the obstacle. Two variants confirm this. Without the tilt filter, the NMPC keeps 10.5 cm of clearance in the static scenario but leans the body by up to 23^{\circ}, four times the limit. With the same 2.5 s horizon as the jerk-model planner, it still enters the inflated obstacle (-4.9 cm), leans by up to 8.0^{\circ}, and stops 53 cm short of the goal.
The full model is also costly: the median solve time of the NMPC is 108–150 ms, 10–15 times that of the jerk-model planner and above the 20 ms period at which it must run to balance the robot.
VI-H Robustness: random scenarios and model mismatch
Random scenarios
In 50 Monte Carlo runs the robot drives along the same nominal line among two random obstacles: a circle (radius 0.20–0.35 m) or a rotating ellipse (semi-axes 0.30–0.50 by 0.12–0.25 m, rate up to \pm 0.5 rad/s), moving at up to 0.3 m/s in a random direction and crossing the line within \pm 0.3 m of the robot at a random time between 4 and 16 s, at least 4 s apart. In all runs there is no collision, no fall and no solver failure, the goal is reached, the tilt stays below 4.7^{\circ}, and the RMS tracking error is 1.8–3.4 cm (median 2.4 cm), with a final error of at most 1.7 cm; the median minimum clearance is 11.1 cm.In 11 runs the clearance falls below the margin r_{\text{track}} (at worst 3.1 cm), mostly with an obstacle moving at 0.2–0.3 m/s: the tracking error during the evasive maneuver (up to 12 cm) then uses part of the margin.
Model mismatch
The MuJoCo model is changed after the planner and the tracker are designed from the nominal model: the body mass and inertia by \pm 20\,\%, and the height of the body COM by \pm 20\,\% (\pm 4.8 cm). The tilt is measured as on a real robot, from the base orientation and the nominal COM offset. A heavier or lighter body and a higher COM leave the results almost unchanged; the ESO absorbs the model error. A lower COM is the hardest case: the body leans more for the same acceleration than the planner assumes (\kappa grows), the tracking error reaches 10.2 cm and the clearance 6.0 cm, still without collision and with the tilt below the limit. In the worst case over the four scenarios, the tilt stays below 4.4^{\circ} and the final error below 1 cm for all models; the mass changes keep the clearance at 9.8–10.5 cm and the RMS error at 2.0–2.5 cm, against 10.9 and 2.1 cm with the nominal model.
VI-I Predicted obstacles with conformal prediction
90 s. Robot with the oracle (black dotted), the constant-velocity prediction CV (red) and CV with conformal inflation (green); obstacle paths (except in (d)) and footprints at the smallest clearance of the CV planner.Setup
The obstacles are discs of radius 0.25 m whose speed and turn rate follow Ornstein–Uhlenbeck processes [45] (mean speed 0.25 m/s, speed limited to 0.45 m/s), so that they turn and change speed unpredictably. The planner observes the obstacle centers every 0.1 s with Gaussian noise of 1 cm, predicts them with (25) from the last H=5 observations, inflates them by the radii of Section VI-A, and softens the barriers as in (31) with w_{\sigma}=10^{4}. In the random scenarios (Scenarios 2 and 3), each obstacle heads for the nominal line of the robot and would meet it at a random time; scenarios in which an obstacle occupies the start or the goal are discarded.
- oracle (true future)
- 0
- 6.9
- 13.1
- 4.60
- 0
- 18
- CV
- 7
- -8.8
- 6.5
- 4.81
- 392
- 18
- CV + CP
- 0
- 5.2
- 28.0
- 4.57
- 329
- 22
Scenario 1: an obstacle that turns sharply
A single obstacle moves north at 0.4 m/s, parallel to the robot’s path and clear of it, then turns left by 90^{\circ} at t=7 s within 1 s and crosses the nominal line where the robot arrives at t\approx 10 s. Before the turn, the constant-velocity prediction places the obstacle away from the path. Fig. 12(a) and Fig. 13(a) compare the three planners, all with soft barriers. With the constant-velocity prediction the footprint enters the obstacle by 4.1 cm. With the conformal inflation the regions of the later horizon steps already cover the turn, the plan starts to evade earlier, and the robot passes with 0.8 cm of clearance (oracle: 14.1 cm). Even sharper or later turns (for example at 0.5 m/s, or within 0.8 s) defeat both predictors: such maneuvers lie outside the calibration data, which violates the exchangeability assumption of (28) (Remark 5).
Scenario 2: two random obstacles
Table VIII compares three planners on 30 scenarios with two random obstacles each, all with the soft barriers (31); Fig. 12(b) shows one of them, in which the constant-velocity planner enters an obstacle by 8.8 cm while the conformal planner keeps 5.2 cm (oracle: 12.8 cm). The oracle, which knows the future obstacle positions, never collides. The constant-velocity prediction without inflation collides in 7 of 30 runs, by up to 9 cm, whenever an obstacle turns toward the planned path. With the conformal inflation no run collides; the price is a larger detour (median clearance 28 cm against 13 cm for the oracle), since the radii at the end of the horizon are large. With predicted obstacles a nonzero slack is needed at about 5\,\% of the replanning instants; with hard barrier constraints the solver would fail at these instants instead (between 3 and 6\,\% of them in the same scenarios), mostly when the inflated region of an obstacle expands faster than (22) allows. All solves take a median of 18–22 ms, well below the 100 ms period.
- Scenario 3: four random obstacles
- oracle (true future)
- 0
- 9.0
- 4.46
- 0
- –
- CV
- 1
- -1.4
- 4.57
- 37
- –
- CV + CP
- 0
- 19.4
- 4.33
- 10
- –
- Scenario 4: closed path, 90 s
- oracle (true future)
- 0
- 11.7
- 4.51
- 0
- 1.97
- CV
- 3
- -9.4
- 4.64
- 97
- 1.72
- CV + CP
- 1
- -3.7
- 4.61
- 100
- 1.96
Scenario 3: four random obstacles
Four obstacles of the same random motion, so that the radii remain valid, cross the nominal line one after the other within the windows 4–6, 6.5–8.5, 9–11 and 11.5–13.5 s. Fig. 12(c) and Table IX show one run. With the constant-velocity prediction the footprint enters an obstacle by 1.4 cm; with the conformal inflation the clearance stays above 19.4 cm (oracle: 9.0 cm). Both planners end within 3 cm of the goal at t=20 s.
Scenario 4: endless run on a closed path
The robot follows an elliptical path of semi-axes 2.5 and 1.5 m at 0.3 m/s, without end, while three obstacles with the motion above roam across it and steer back whenever they leave a box of half-size 3.0\times 1.9 m around the center of the path. A reference parametrized by time would make a robot that fell behind chase a point that has moved on. The reference is therefore parametrized by the progress along the path: at every replanning instant, the planned position is projected on the path, searching only up to 1.5 m ahead of the last progress, and the reference over the horizon starts at this point at the path speed. The progress never decreases, so that the robot continues from where it is after a detour instead of turning back. Fig. 12(d) and Table IX show the first 90 s of one run. The oracle does not collide. With the constant-velocity prediction the footprint enters an obstacle three times, by up to 9.4 cm, and the robot completes 1.72 laps. With the conformal inflation the robot completes 1.96 laps, about as many as the oracle, and the footprint enters an obstacle once, by 3.7 cm for about 0.6 s at t\approx 70 s. The inflation thus reduces the collisions but does not remove them: (28) holds per horizon step and per obstacle, not for a whole run, and a long run with several obstacles leaves more occasions for the true motion to leave the regions. A guarantee over a run would need the smaller level of the union bound and larger radii, which is not evaluated here.
VII Conclusion
A two-layer navigation scheme for a three-omni-wheel ballbot was presented: a jerk-model MPC with discrete-time CBFs plans collision-free references for the ball, and an HSMC-ESO-ECBF tracker balances the robot and enforces the tilt cone. The layers are linked by an acceleration bound derived from the largest steady tilt that the robust ECBF admits, which proved essential: a bound derived from the tilt limit alone multiplied the tracking error by up to 7 and caused a mission failure. On a contact-rich MuJoCo model with wheel saturation, the scheme avoided static, moving, rotating and concave obstacles with more than 10 cm of clearance, tracked the plan within 2 cm RMS and planned in about 10 ms per step. A full-model NMPC with the same obstacle constraints and a separate tilt filter, in contrast, entered the inflated obstacles in all four scenarios and needed 10–15 times more computation. In 50 random scenarios the scheme reached the goal without collision every time, and it tolerated a \pm 20\,\% change of the body mass and of the COM height. When the obstacle motion is only predicted, inflating the obstacles by conformal prediction radii removed the collisions of a constant-velocity predictor (from 7 to 0 of 30 random runs) and handled a turning obstacle that the predictor alone hit, while soft barrier constraints kept every planning problem feasible; maneuvers outside the calibration data remain a limit. In one run of 90 s of an endless path-following task on a closed path among three roaming obstacles, the inflation reduced the collisions from three to one, but did not remove them, since the coverage holds per step and not over a run. Open points are replanning from the measured state, learned obstacle predictors and recalibration when the obstacle behavior changes, a time-varying robust bound from the ESO error, the reflected wheel inertia in the input gain, the wheel saturation inside the ECBF quadratic program, and validation on hardware.