wbc
QPSolverConfig.hpp
Go to the documentation of this file.
1#ifndef QP_SOLVER_CONFIG_HPP
2#define QP_SOLVER_CONFIG_HPP
3
4#include <string>
5
6namespace wbc {
7
9public:
11 type("qpoases"){
12 }
13 QPSolverConfig(const std::string type, const std::string file) :
14 type(type),
15 file(file){
16 }
17 void validate(){
18 if(type.empty())
19 throw std::runtime_error("Invalid solver config. Type must not be empty!");
20 }
21 std::string type;
22 std::string file;
23};
24
25}
26
27#endif
Definition ContactsAccelerationConstraint.cpp:3
Definition QPSolverConfig.hpp:8
QPSolverConfig(const std::string type, const std::string file)
Definition QPSolverConfig.hpp:13
std::string type
Definition QPSolverConfig.hpp:21
std::string file
Definition QPSolverConfig.hpp:22
void validate()
Definition QPSolverConfig.hpp:17
QPSolverConfig()
Definition QPSolverConfig.hpp:10