Skip to content

Shihao-Feng-98/osqp-eigen_qpOASES_tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Osqp-Eigen_and_qpOASES

The c++ libraries for QP.

Eigen Installation

official documents: https://eigen.tuxfamily.org/dox-3.3/group__TutorialMatrixArithmetic.html

sudo apt-get install libeigen3-dev

The default path is: /usr/include/eigen3. You should use

#include <eigen3/Eigen/Dense>

or you can

sudo cp -r  /usr/include/eigen3/Eigen /usr/include/

then use

#include <Eigen/Dense>

OSQP Installation

official repository: https://github.com/osqp/osqp

git clone --recursive https://github.com/oxfordcontrol/osqp
cd osqp
mkdir build
cd build
cmake ..
make -j16
sudo make install

Osqp-eigen Installation

official repository: https://github.com/robotology/osqp-eigen

git clone https://github.com/robotology/osqp-eigen
cd osqp-eigen
mkdir build
cd build
cmake ..
make -j16
sudo make install

Then modify the head files in /usr/local/include/OsqpEigen, make sure the osqp.h can be found. Modifing the file Constraints.hpp, Data.hpp, Settings.hpp, Solver.hpp, Solver.tpp, SparseMatrixHelper.hpp.

#include </usr/local/include/osqp/osqp.h>
#include </usr/local/include/osqp/auxil.h>
#include </usr/local/include/osqp/scaling.h>

qpOASES Installation

official repository: https://github.com/coin-or/qpOASES

git clone https://github.com/coin-or/qpOASES
cd qpOASES
mkdir build
cd build
cmake ..
make -j16
sudo make install

About

The c++ libraries for QP.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors