Skip to content
LIBRARY
PlanarMechanics.examples.dyad_balans.DyadBalans2D.md

PlanarMechanics.examples.dyad_balans.DyadBalans2D ​

This example models a wheeled balancing robot with a cascade control system stabilizing the angle in the inner loop and the position in the outer loop.

See also DyadBalans2DFF for a version with a feedforward generator.

Usage ​

MultibodyComponents.PlanarMechanics.examples.dyad_balans.DyadBalans2D(M=0.1, m=0.05, R=0.04, L=0.08, Ib=2.5e-4, Iw=1e-4, d=0.0001)

Parameters: ​

NameDescriptionUnitsDefault value
MBody masskg0.1
mWheel masskg0.05
RWheel radiusm0.04
LDistance from wheel axis to body center of massm0.08
IbBody moment of inertiakg.m20.00025
IwWheel + motor moment of inertiakg.m20.0001
dMotor viscous frictionN.m.s/rad0.0001

Behavior ​