Blender V4.3
Solver.hpp
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2009 Ruben Smits
2 *
3 * SPDX-License-Identifier: LGPL-2.1-or-later */
4
9#ifndef SOLVER_HPP_
10#define SOLVER_HPP_
11
12#include <vector>
13#include "eigen_types.hpp"
14
15namespace iTaSC{
16
17class Solver{
18public:
24 virtual ~Solver(){};
25
26 // gc = grouping of constraint output ,
27 // size of vector = nc, alternance of true / false to indicate the grouping of output
28 virtual bool init(unsigned int nq, unsigned int nc, const std::vector<bool>& gc)=0;
29 virtual bool solve(const e_matrix& A, const e_vector& Wy, const e_vector& ydot, const e_matrix& Wq, e_vector& qdot, e_scalar& nlcoef)=0;
30 virtual void setParam(SolverParam param, double value)=0;
31};
32
33}
34#endif /* SOLVER_HPP_ */
virtual ~Solver()
Definition Solver.hpp:24
virtual bool init(unsigned int nq, unsigned int nc, const std::vector< bool > &gc)=0
virtual bool solve(const e_matrix &A, const e_vector &Wy, const e_vector &ydot, const e_matrix &Wq, e_vector &qdot, e_scalar &nlcoef)=0
virtual void setParam(SolverParam param, double value)=0
#define e_vector
#define e_scalar
#define e_matrix