Giter VIP home page Giter VIP logo

preview_controller's Introduction

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.

preview_controller's People

Watchers

 avatar  avatar

Forkers

gergondet

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.