This is a repository for a course project. The basic framework is from official implementation - Udacity. The compilation is referred to an other repository. I just finished the optimization code about the mpc controller. The visualization is an open-sourced simulator from Udacity too.
- Prepare the compilers
sudo apt install cmake gcc g++ gfortran cppad
- Clone this repo with the submodules recursively
git clone --recurse-submodules https://github.com/Wsine/mpc-car-simulation.git
- Execute
./install_ipopt.sh
and./install_uwebsocket.sh
individually. - Make a build directory:
mkdir build && cd build
- Compile:
cmake .. && make
- Run it:
./mpc
.
Then, download the simulator from this release page and try it.
The repository is tested under a pure ubuntu 18.04 environment.