A simple simulator to test control algorithms in C++
Inverted pendulum in open-loop
Inverted pendulum in closed-loop with PID
Inverted pendulum in closed-loop with LQR
This simulator is being developed on Ubuntu using the Windows Subsystem for Linux (WSL)
- cmake
- make
- gcc/g++
- eigen (included)
- sfml
- googletest (optional)
- sciplot (optional)
- Clone this repo.
- Make a build directory:
mkdir build && cd build
- Compile:
cmake .. && make
- Run it:
./cartpole
- Åström, K. J., & Murray, R. M. (2021). Feedback systems: An introduction for scientists and engineers (2nd ed.). Princeton University Press. (online)