Blender
V4.3
intern
itasc
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
14
namespace
iTaSC
{
15
16
class
WSDLSSolver
:
public
iTaSC::Solver
{
17
private
:
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;
24
public
:
25
WSDLSSolver
();
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_ */
Solver.hpp
init
void init()
iTaSC::Solver
Definition
Solver.hpp:17
iTaSC::Solver::SolverParam
SolverParam
Definition
Solver.hpp:19
iTaSC::Solver::DLS_QMAX
@ DLS_QMAX
Definition
Solver.hpp:20
iTaSC::WSDLSSolver
Definition
WSDLSSolver.hpp:16
iTaSC::WSDLSSolver::WSDLSSolver
WSDLSSolver()
Definition
WSDLSSolver.cpp:15
iTaSC::WSDLSSolver::solve
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)
Definition
WSDLSSolver.cpp:55
iTaSC::WSDLSSolver::~WSDLSSolver
virtual ~WSDLSSolver()
Definition
WSDLSSolver.cpp:23
iTaSC::WSDLSSolver::setParam
virtual void setParam(SolverParam param, double value)
Definition
WSDLSSolver.hpp:30
e_vector
#define e_vector
Definition
eigen_types.hpp:39
e_scalar
#define e_scalar
Definition
eigen_types.hpp:38
e_matrix
#define e_matrix
Definition
eigen_types.hpp:41
iTaSC
Definition
Armature.cpp:14
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0