Skip to content

sfwa/nmpc

Repository files navigation

nmpc

Non-linear Model Predictive Control library for UAV control.

Structure

Configuration

Building

Requirescmakeversion 2.8.7 or higher.

Create a build directory outside the source tree, then use cmake to generate the makefile.

mkdir nmpc_build

cd nmpc_build

cmake /path/to/nmpc

Now, build the library using themakecommand. An appropriate version of Eigen will be downloaded automatically.

To build the dynamic library, runmake cnmpc.A dynamic library appropriate for the host platform should be built.

Testing

Python module installation

Requirescmakeversion 2.8.7 or higher.

Runpython setup.py installto build the C shared library and install the Python interface (thenmpcmodule) in yoursite-packagesdirectory.

Alternatively, just runpip install https://github.com/sfwa/nmpc/archive/master.zip#egg=nmpc-1.0.0 to download and install.