Quizzes for Vehicle Models and Model Predictive Control sections.
- Global Kinematic Model - Implement the Global Kinematic Model.
- Polynomial Fitting - Fit and evaluate polynomials.
- MPC - Implement MPC and minimize cross track and orientation errors to a straight line trajectory.
To do a quiz:
- Go to quiz directory.
- Make a build directory with
mkdir build
. - Change into the build directory,
cd build
. - Compile the project,
cmake .. && make
.
A solution for each quiz is presented in the solution directory.
The Global Kinematic Quiz and Polynomial Fitting quizzes have all the dependencies in repo. For the MPC quiz you'll have to install Ipopt and CppAD.
- Ipopt
- Mac:
brew tap homebrew/science brew install ipopt --with-openblas
- Linux
- This Dockerfile might be helpful.
- You will need a version of Ipopt 3.12.1 or higher. The version available through
apt-get
is 3.11.x, sudo apt-get install coinor-libipopt-dev. If you can get that version to work great but if not there's a scriptinstall_ipopt.sh
that will install Ipopt. You just need to download the source from here. - Then call
install_ipopt.sh
with the source directory as the first argument, ex:sudo bash install_ipopt.sh Ipopt-3.12.1
.
- Windows: TODO. If you can use the Linux subsystem and follow the Linux instructions.
- Mac:
- CppAD
- Mac:
brew install cppad
- Linux
sudo apt-get install cppad
or equivalent. - Windows: TODO. If you can use the Linux subsystem and follow the Linux instructions.
- Mac: