Control Experiments in Python.
The derivation of a space state equation is adapted from (1). A python implementation is available im the file planar_mip.py
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:
Angular acceleration of the wheel
Linear acceleration of the wheel
Angular acceleration of the body
Linear acceleration of the body in direction:
or matricially
with
and
When the system has full rank (), equations can be separated, leading to
which expands to:
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.