arXiv:2611.03307cs.RONov 2026

Manuscript Offprint

arXiv:2611.03307

Safe-Ballbot: Tilt-Consistent MPC with Control Barrier Functions for Ballbot Navigation

Duc Cuong Vu, Tung Lam Nguyen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Duc Cuong Vu and Tung Lam Nguyen

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

BALLBOT 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

Figure

Fig. 1. The proposed scheme in MuJoCo. Tracking: (a) figure eight, (b) recovery from a 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.

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^{*} that is smaller than the tilt limit; the acceleration bound of the planner must be derived from φ∗\varphi^{*}, not from the limit itself. All results are obtained on a MuJoCo model adapted from the asRoBallet platform [8], using its

Corresponding author: Tung Lam Nguyen.

Duc Cuong Vu is with the School of Electrical and Electronic Engineering, Nanyang Technological University, Singapore (e-mail: duccuong001@e.ntu.edu.sg).

Tung Lam Nguyen is with the Motion Control and Applied Robotics Laboratory (MoCAR), School of Electrical and Electronic Engineering, Hanoi University of Science and Technology, Hanoi, Vietnam (e-mail: lam.nguyentung@hust.edu.vn).

TABLE I COMPARISON WITH RELATED WORK ON BALLBOT MOTION PLANNING AND SAFE CONTROL.

WorkYearPlanner / controller modelObstaclesEvaluation
OnlineStaticMovingConcaveTilt limit
Nagarajan [1]2013shape-space planner✗-✗✗-hardware
Jespersen [2]2020path-following MPC, reduced quaternion model✓✓✗✗✓ softsim. + hardware
Mavrogiannis [3]2021topology-informed MPC✓-✓ crowd✗-hardware + crowd sim.
Fischer [4]2024identified LTI model, MPC + LQR✓✗✗✗-hardware
Vu [5]2024flat output, offline time-optimal + RRT*, ESO✗✓✗✗✓ ECBFsim. (design model)
Pham [6]2025nonlinear MPC on the full 3D model, ESO✓✓✓✓✓ CBF-QPsim. (design model)
Salehi [7]2025model-free RL policy✓✗✗✗✗MuJoCo
Wan [8]2026friction-aware RL policy (sim-to-real)✓✗✗✗✗MuJoCo + hardware
This work-jerk model (robot-independent) + DCBF, ESO✓✓✓✓✓ ECBF, φ∗\varphi^*MuJoCo, roller contacts

✓: addressed; ×: not addressed; -: not reported. Online: replanning during the motion. ESO: extended state observer.

ballbot base with omni-wheel roller contacts and wheel torque saturation (Fig. 1).

The contributions are:

  1. 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);

  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;

  3. 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–7 compared to a bound derived from the tilt limit;

  4. 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;

  5. 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.

References (45)