Skip to content

Installing TinyMPC

A python interface is available that allows for direct usage of TinyMPC. The interface can also be used to generate C++ code and an associated python module which allows for quick testing before integrating the generated code with your project. We provide examples for a few robots and have firmware for running TinyMPC on the Crazyflie 2.1 quadrotor.

Source code is here. Check out the Python interface repository for implementation details.

Visit our GitHub Discussions page for any questions related to the solver!

Install from PyPI

Currently only available on Linux operating systems

pip install --upgrade tinympc

Go to the examples page to see how to use TinyMPC.

Build from source

If you'd like to build from source, you can do so by following these steps:

Clone the repository and build the project

git clone
cd TinyMPC
mkdir build
cd build
cmake ..
cmake --build .

Run an example from the build directory