Structure-preserving discrete-time optimal maneuvers of a wheeled inverted pendulum

Karmvir Singh Phogat, Ravi N. Banavar, Debasish ChatterjeeIFAC-PapersOnLine 2018

Abstract

The Wheeled Inverted Pendulum (WIP) is a nonholonomic, underactuated mechanical system, and has been popularized commercially as the Segway. Designing optimal control laws for point-to-point state-transfer for this autonomous mechanical system, while respecting momentum and torque constraints as well as the underlying manifold, continues to pose challenging problems. In this article we present a successful effort in this direction: We employ geometric mechanics to obtain a discrete-time model of the system, followed by the synthesis of an energy-optimal control based on a discrete-time maximum principle applicable to mechanical systems whose configuration manifold is a Lie group. Moreover, we incorporate state and momentum constraints into the discrete-time control directly at the synthesis stage. The control is implemented on a WIP with parameters obtained from an existing prototype; the results are highly encouraging, as demonstrated by numerical experiments.

Introduction

Controlling a Wheeled Inverted Pendulum (WIP) is a classic but difficult robotics challenge. These systems are underactuated (having fewer motors than degrees of freedom) and nonholonomic (subject to constraints like "rolling without slipping" that cannot be simplified away). Traditional control design for such systems often suffers from three major gaps: loss of physical fidelity during discretization, ad-hoc handling of real-world constraints, and coordinate singularities that hinder large-scale maneuvers.

The wheeled inverted pendulum prototype used for parameter extraction.

Methodology

The researchers propose a "structure-preserving" approach that treats the WIP's configuration space as a Lie group ($SE(2) \times S^1 \times S^1 \times S^1$). This global mathematical description avoids the singularity issues common in local coordinate charts.

Schematic diagram of the WIP showing the geometric parameters and coordinate frames.

Key components of the methodology include:

  • Variational Integrators: Instead of discretizing the final equations of motion, the principle of least action itself is discretized. This ensures the resulting discrete-time model naturally respects the system's geometric and physical structure.
  • Discrete-Time Maximum Principle (PMP): A version of the Pontryagin Maximum Principle tailored for Lie groups is applied to derive first-order necessary conditions for energy-optimal control.
  • Direct Constraint Incorporation: State constraints (tilt limits, velocity bounds) and control constraints (torque limits) are embedded directly into the optimization stage.
  • Multiple Shooting: The resulting complex boundary value problem is solved using multiple shooting techniques, offering high accuracy and potential for parallel implementation.

Results and Discussion

The approach was validated through numerical experiments using physical parameters from a real-world WIP prototype. Two primary maneuvers were tested:

  1. Maneuver 1 ($M_1$): A diamond-shaped path involving a full 360-degree rotation, handled seamlessly within a single coordinate chart.
  2. Maneuver 2 ($M_2$): Forward and reverse motions where the optimal trajectory showed the robot leaning forward to gain velocity and leaning back to decelerate.

In all tests, the system strictly respected tilt angle limits ($| \alpha | \leq 5^\circ$) and torque bounds ($8 \cdot 10^{-3}$ Nm). The energy-optimal control law naturally led to "saturation" behavior, where motors operated at maximum torque during aggressive maneuvers to minimize overall energy consumption.

Conclusion

This framework successfully generates energy-optimal trajectories for a WIP while preserving the system's underlying physical properties. Future work will focus on transitioning from open-loop trajectories to closed-loop tracking controllers to handle environmental disturbances and optimizing the computational complexity for real-time onboard implementation.

Summary updated

BibTeX
@inproceedings{phogat2018structure,
  author = {Karmvir Singh Phogat and Ravi N. Banavar and Debasish Chatterjee},
  title = {{Structure-preserving discrete-time optimal maneuvers of a wheeled inverted pendulum}},
  booktitle = {IFAC-PapersOnLine},
  year = {2018},
  doi = {10.1016/j.ifacol.2018.06.042},
}
Figure