wbc
EiquadprogSolver.hpp
Go to the documentation of this file.
1#ifndef WBC_SOLVERS_EIQUADPROG_SOLVER_HPP
2#define WBC_SOLVERS_EIQUADPROG_SOLVER_HPP
3
5
6#include <base/Time.hpp>
7
8#include <eiquadprog/eiquadprog-fast.hpp>
9
10namespace wbc {
11
12class HierarchicalQP;
13
26private:
28
29public:
31 virtual ~EiquadprogSolver();
32
39 virtual void solve(const wbc::HierarchicalQP& hierarchical_qp, base::VectorXd& solver_output);
40
42 void setMaxNIter(const uint& n){ _n_iter = n; }
43
45 uint getMaxNIter(){ return _n_iter; }
46
48 int getNter(){ return _actual_n_iter; }
49
50protected:
51 eiquadprog::solvers::EiquadprogFast _solver;
52
55
56 Eigen::MatrixXd _CI_mtx;
57 Eigen::VectorXd _ci0_vec;
58};
59
60}
61
62#endif
The EiquadprogSolver class is a wrapper for the qp-solver eiquadprog (see https://github....
Definition EiquadprogSolver.hpp:25
uint getMaxNIter()
Definition EiquadprogSolver.hpp:45
int getNter()
Definition EiquadprogSolver.hpp:48
virtual ~EiquadprogSolver()
Definition EiquadprogSolver.cpp:16
int _n_iter
Definition EiquadprogSolver.hpp:53
void setMaxNIter(const uint &n)
Definition EiquadprogSolver.hpp:42
eiquadprog::solvers::EiquadprogFast _solver
Definition EiquadprogSolver.hpp:51
Eigen::VectorXd _ci0_vec
Definition EiquadprogSolver.hpp:57
EiquadprogSolver()
Definition EiquadprogSolver.cpp:11
Eigen::MatrixXd _CI_mtx
Definition EiquadprogSolver.hpp:56
virtual void solve(const wbc::HierarchicalQP &hierarchical_qp, base::VectorXd &solver_output)
solve Solve the given quadratic program
Definition EiquadprogSolver.cpp:21
int _actual_n_iter
Definition EiquadprogSolver.hpp:54
Definition QPSolver.hpp:14
Definition ContactsAccelerationConstraint.cpp:3
Describes a hierarchy of quadratic programs.
Definition QuadraticProgram.hpp:57
Definition QPSolver.hpp:67