Abstract
The Wheeled Inverted Pendulum (WIP) is an underactuated, nonholonomic mechatronic system, popularized commercially as the Segway. Designing a control law for motion planning that incorporates state and control constraints while respecting the configuration manifold is a challenging problem. In this article, we derive a discrete-time model of the WIP system using discrete mechanics and generate optimal trajectories by solving a discrete-time constrained optimal control problem. Further, we describe a nonlinear continuous-time model for designing a closed-loop LQ-controller. A dual control architecture is implemented in which the designed optimal trajectory is provided as a reference with feedforward control, and an LQ-controller in feedback mode mitigates noise and disturbances. Experiments involving aggressive maneuvers show a high degree of congruence between designed trajectories and the path traced by the robot, corroborating the validity of the nonlinear model and the control scheme.
Introduction
The Wheeled Inverted Pendulum (WIP) represents a classic challenge in robotics. It is underactuated (possessing more degrees of freedom than motors) and nonholonomic (constrained in its instantaneous direction of motion). Standard control approaches often struggle with three specific areas:
- Manifold Integrity: Heuristic discretization methods like Runge-Kutta can "drift" away from the true geometric constraints of the robot's configuration space.
- Physical Constraints: Models frequently ignore the reality of battery voltage limits and motor current saturations.
- Aggressive Maneuvering: Most controllers are optimized for gentle stabilization rather than the sharp, high-speed turns where nonlinear effects dominate.
Methods
The researchers employed a dual control architecture to bridge the gap between theoretical optimization and real-world execution.
Variational Integrators
Instead of discretizing the differential equations of motion, the authors used discrete mechanics based on the Lagrange-D’Alembert-Pontryagin principle. This approach discretizes the system's action (energy over time), ensuring the resulting model preserves the underlying geometric structure and physical invariants, such as momentum.
Integrated Motor Dynamics and Optimal Control
The model explicitly includes the electrical properties of DC motors (inductance, resistance, and back-EMF). This allows the optimizer to account for actual voltage and current limits. The resulting energy-minimization problem is solved via nonlinear programming (using the IPOPT solver and CasADi), generating a reference path guaranteed to be feasible within physical limits.
LQR Feedback
To handle real-world noise and disturbances, a standard Linear Quadratic Regulator (LQR) tracks the optimal reference in real-time, providing the necessary stability for the underactuated system.
Key Insights
- Structure Preservation is Efficient: The variational integrator provides significantly higher accuracy for long-term trajectory planning with a computation time comparable to simple first-order Euler methods.
- Current Dynamics Matter: By including motor current in the state space, the authors eliminated the need for a complex cascaded control architecture, simplifying the final implementation.
- The "Tilt-to-Turn" Coupling: Stability in the tilt axis is inextricably linked to movement in the $x-y$ plane. The optimizer successfully leverages forward motion to execute sharp turns that would otherwise cause a simpler controller to tip.
Key Results
Experimental results on a 3D-printed WIP demonstrated a high degree of congruence between the planned optimal path and the actual path traced by the robot during aggressive maneuvers.
- Precision: In aggressive maneuvers, the maximum position error was held to 24 mm (with a root-mean-square error of only 8.3 mm). Orientation error was limited to a maximum of 12.1°.
- Aggressive Performance: The system successfully handled tilt rates up to 41°/s and forward velocities of 0.6 m/s followed by immediate 90-degree turns.
- Robustness: The dual architecture successfully mitigated communication delays (averaging 63 ms) from the external Vicon tracking system.
Limitations and Future Work
While successful, the system currently relies on an external Vicon motion capture system for absolute positioning. Transitioning to onboard SLAM or GPS would be necessary for autonomous real-world applications. Additionally, while the current work focuses on energy efficiency and waypoint following, future iterations could integrate dynamic obstacle avoidance into the discrete-time optimization framework.
Summary updated