1#ifndef WBC_SOLVERS_SOLVER_HPP
2#define WBC_SOLVERS_SOLVER_HPP
5#include <base/Eigen.hpp>
41 throw std::runtime_error(
"Failed to create instance of plugin " + name +
". Is the plugin registered?");
48 T* ret =
dynamic_cast<T*
>(tmp);
59 qp_solver_map->clear();
71 throw std::runtime_error(
"Failed to register plugin with name " + name +
". A plugin with the same name is already registered");
Definition QPSolver.hpp:14
virtual ~QPSolver()
Definition QPSolver.cpp:8
bool configured
Definition QPSolver.hpp:16
virtual void solve(const HierarchicalQP &hierarchical_qp, base::VectorXd &solver_output)=0
solve Solve the given quadratic program
void reset()
reset Enforces reconfiguration at next call to solve()
Definition QPSolver.hpp:28
QPSolver()
Definition QPSolver.cpp:5
Definition ContactsAccelerationConstraint.cpp:3
QPSolver * createT()
Definition QPSolver.hpp:33
std::shared_ptr< QPSolver > QPSolverPtr
Definition QPSolver.hpp:31
Describes a hierarchy of quadratic programs.
Definition QuadraticProgram.hpp:57
Definition QPSolver.hpp:35
static T * createInstance(const std::string &name)
Definition QPSolver.hpp:46
static QPSolverMap * getQPSolverMap()
Definition QPSolver.hpp:52
std::map< std::string, QPSolver *(*)()> QPSolverMap
Definition QPSolver.hpp:36
static void clear()
Definition QPSolver.hpp:58
static QPSolver * createInstance(const std::string &name)
Definition QPSolver.hpp:38
Definition QPSolver.hpp:67
QPSolverRegistry(const std::string &name)
Definition QPSolver.hpp:68