wbc
QPOasesSolver.hpp
Go to the documentation of this file.
1#ifndef WBC_SOLVERS_QP_OASES_SOLVER_HPP
2#define WBC_SOLVERS_QP_OASES_SOLVER_HPP
3
5#include <qpOASES.hpp>
6#include <base/Time.hpp>
7
11
12namespace wbc {
13
14class HierarchicalQP;
15
27class QPOASESSolver : public QPSolver{
28private:
30
31public:
33 virtual ~QPOASESSolver();
34
40 virtual void solve(const wbc::HierarchicalQP &hierarchical_qp, base::VectorXd &solver_output);
41
43 void setMaxNoWSR(const uint& n){n_wsr = n;}
45 uint getMaxNoWSR(){return n_wsr;}
47 qpOASES::returnValue getReturnValue();
49 int getNoWSR(){return actual_n_wsr;}
51 qpOASES::Options getOptions(){return options;}
53 void setOptions(const qpOASES::Options& opt);
57 const qpOASES::SQProblem& getSQProblem(){return sq_problem;}
58
59protected:
60 qpOASES::Options options;
61 qpOASES::SQProblem sq_problem;
63 qpOASES::returnValue ret_val;
64 Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> H;
65 Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> A;
66 base::Time stamp;
67};
68
69}
70
71#endif
The QPOASESSolver class is a wrapper for the qp-solver qpoases (see https://www.coin-or....
Definition QPOasesSolver.hpp:27
qpOASES::returnValue ret_val
Definition QPOasesSolver.hpp:63
const qpOASES::SQProblem & getSQProblem()
Definition QPOasesSolver.hpp:57
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > A
Definition QPOasesSolver.hpp:65
int n_wsr
Definition QPOasesSolver.hpp:62
void setMaxNoWSR(const uint &n)
Definition QPOasesSolver.hpp:43
qpOASES::returnValue getReturnValue()
Definition QPOasesSolver.cpp:104
uint getMaxNoWSR()
Definition QPOasesSolver.hpp:45
qpOASES::SQProblem sq_problem
Definition QPOasesSolver.hpp:61
qpOASES::Options options
Definition QPOasesSolver.hpp:60
virtual void solve(const wbc::HierarchicalQP &hierarchical_qp, base::VectorXd &solver_output)
solve Solve the given quadratic program
Definition QPOasesSolver.cpp:23
int getNoWSR()
Definition QPOasesSolver.hpp:49
qpOASES::Options getOptions()
Definition QPOasesSolver.hpp:51
void setOptions(const qpOASES::Options &opt)
Definition QPOasesSolver.cpp:108
int actual_n_wsr
Definition QPOasesSolver.hpp:62
virtual ~QPOASESSolver()
Definition QPOasesSolver.cpp:19
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > H
Definition QPOasesSolver.hpp:64
base::Time stamp
Definition QPOasesSolver.hpp:66
QPOASESSolver()
Definition QPOasesSolver.cpp:13
void setOptionsPreset(const qpOASES::optionPresets &opt)
Definition QPOasesSolver.cpp:113
Definition QPSolver.hpp:14
Definition QPOasesSolver.hpp:8
optionPresets
Definition QPOasesSolver.hpp:9
@ qp_unset
Definition QPOasesSolver.hpp:9
@ qp_default
Definition QPOasesSolver.hpp:9
@ qp_reliable
Definition QPOasesSolver.hpp:9
@ qp_fast
Definition QPOasesSolver.hpp:9
Definition ContactsAccelerationConstraint.cpp:3
Describes a hierarchy of quadratic programs.
Definition QuadraticProgram.hpp:57
Definition QPSolver.hpp:67