Skip to content

kjiwa/inverted-pendulum-control

Repository files navigation

Inverted Pendulum Control

Overview

This program implements a nonlinear model and controller for the inverted pendulum. The controller seeks to maintain a particular equilibrium (33 degrees was chosen arbitrarily) by computing the torque needed to restore the pendulum to that point. To mimick reality, the controller may not access the pendulum's state, and so the state is estimated using a linearized model.

Results

Phase Portrait

The following plot shows the trajectories of the controlled inverted pendulum for a variety of starting conditions. In each case, the controller was initialized with its estimator at the equilibrium.

Controlled inverted pendulum phase portrait

Time Response

The response of the pendulum is shown below in comparison to the controller's estimated state and the torque applied by the controller.

Controlled inverted pendulum time response

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages