rland93 / pendsim

A simple inverse pendulum simulation + visualization.
MIT License
0 stars 5 forks source link

New Controller Tutorial / Developer Guide #15

Closed rland93 closed 2 years ago

rland93 commented 2 years ago

See https://github.com/openjournals/jose-reviews/issues/168#issuecomment-1124203559

Create a tutorial on how Controller interacts with the rest of the simulation to help users create their own, custom controllers.

rland93 commented 2 years ago

This is resolved (https://github.com/rland93/pendsim/commit/00e50145da9c979a6f302662a392bf65660477a7)

See: https://rland93.github.io/pendsim/customctl.html for the tutorial.

Part one is shows how to implement a very simple open-loop control policy.

Part two has a few extras, like encouraging the user to explore some of the built-in methods, and shows how to dump intermediate data into the simulation.

I originally started this pendsim project to look at concepts related to Model Predictive Control. So, I whipped up some example MPC code as a tutorial for part 2.