Control Sandbox

Control Experiments in Python.

View the Project on GitHub

Mobile Inverted Pendulum

Simple Planar Model

MIP Planar MIP Schematics
Fig1. - Planar MIP Picture (left) and Schematics (right).

The derivation of a space state equation is adapted from (1). A python implementation is available im the file planar_mip.py

Notations

Kinematics

Position of the body center of mass:

Velocity of the body center of mass:

Acceleration of the body center of mass:

The no slip hypothesis also brings:

Dynamics

State Space Equation

or matricially

with

and

When the system has full rank (), equations can be separated, leading to

which expands to:

Simulation

The dynamic model for the planar MIP is available in the file planar_mip.py. Figure 2 display a simulation of the MIP with zero torque applied to the wheel.

Planar MIP simulation plot
Fig2. - Simulation of the planar MIP in open loop.

References