Blender V4.3
WSDLSSolver.hpp
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2009 Benoit Bolsee
2 *
3 * SPDX-License-Identifier: LGPL-2.1-or-later */
4
9#ifndef WSDLSSOLVER_HPP_
10#define WSDLSSOLVER_HPP_
11
12#include "Solver.hpp"
13
14namespace iTaSC {
15
17private:
18 e_matrix m_AWq,m_WyAWq,m_WyAWqt,m_U,m_V,m_WqV;
19 e_vector m_S,m_temp,m_Wy_ydot;
20 std::vector<bool> m_ytask;
21 e_scalar m_qmax;
22 unsigned int m_ns, m_nc, m_nq;
23 bool m_transpose;
24public:
26 virtual ~WSDLSSolver();
27
28 virtual bool init(unsigned int _nq, unsigned int _nc, const std::vector<bool>& gc);
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);
30 virtual void setParam(SolverParam param, double value)
31 {
32 switch (param) {
33 case DLS_QMAX:
34 m_qmax = value;
35 break;
36 default:
37 break;
38 }
39 }
40};
41
42}
43
44#endif /* WSDLSSOLVER_HPP_ */
void init()
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)
virtual void setParam(SolverParam param, double value)
#define e_vector
#define e_scalar
#define e_matrix