Skip to content

barcode/preview_controller

Repository files navigation

preview_controller

preview_controller is a library implementing a model preview controller. It uses QP softwares to solve its problem. A python binding is available.

Installing

Manual

Dependencies

To compile you need the following tools:

Optional dependencies

To have more qp solver:

To generate the documantation:

To have python bindings and unit tests

  • Boost >= 1.58 (>= 1.21 should work)

Building with c++14

git clone --recursive https://github.com/vsamy/preview_controller
cd preview_controller
./build_and_install
gedit build_and_install_config
./build_and_install

Please defines in build_and_install_config where to install the library, the build type, the number of core, etc... Note that you leave the BOOST_ROOT empty if boost has been installed by default.

Specific builds

If you don't want to compile the python bindings you need to set the variable PYTHON_BINDINGS to false (default is true).

If you want to compile the C++ unit tests, you need to set the variable BUILD_CXX_TESTS to true (default is false).

Building with c++11

git clone --recursive https://github.com/vsamy/preview_controller
cd preview_controller
git checkout c++11-back-compatibility
./build_and_install
gedit build_and_install_config
./build_and_install

Please defines in build_and_install_config where to install the library, the build type, the number of core, etc... Note that you leave the BOOST_ROOT empty if boost has been installed by default.

Testing and performance test

You can test the C++ and python version. Those are still basic tests and need to be completed

For c++

cd _build/tests
./TestSolvers --log_level=all
./TestPreviewControl --log_level=all

For python

cd binding/python/tests
python TestPreviewControl.py

Documentation

You have access to the doxygen files. Those files are in <install_path>/share/doc/mpc/doxygen-html/. Open the index.html file in your web browser. Plus you can find detailed information here

Examples

Please see here for an example. You can also check the tests folder.

About

No description, website, or topics provided.

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Packages

No packages published