Blender
V4.3
intern
itasc
WDLSSolver.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 WDLSSOLVER_HPP_
10
#define WDLSSOLVER_HPP_
11
12
#include "
Solver.hpp
"
13
14
namespace
iTaSC
{
15
16
class
WDLSSolver
:
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
double
m_lambda;
21
double
m_epsilon;
22
double
m_qmax;
23
int
m_ns;
24
bool
m_transpose;
25
public
:
26
WDLSSolver
();
27
virtual
~WDLSSolver
();
28
29
virtual
bool
init
(
unsigned
int
nq,
unsigned
int
nc,
const
std::vector<bool>& gc);
30
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);
31
virtual
void
setParam
(
SolverParam
param,
double
value)
32
{
33
switch
(param) {
34
case
DLS_QMAX
:
35
m_qmax = value;
36
break
;
37
case
DLS_LAMBDA_MAX
:
38
m_lambda = value;
39
break
;
40
case
DLS_EPSILON
:
41
m_epsilon = value;
42
break
;
43
}
44
}
45
};
46
47
}
48
49
#endif
/* WDLSSOLVER_HPP_ */
Solver.hpp
init
void init()
iTaSC::Solver
Definition
Solver.hpp:17
iTaSC::Solver::SolverParam
SolverParam
Definition
Solver.hpp:19
iTaSC::Solver::DLS_EPSILON
@ DLS_EPSILON
Definition
Solver.hpp:22
iTaSC::Solver::DLS_QMAX
@ DLS_QMAX
Definition
Solver.hpp:20
iTaSC::Solver::DLS_LAMBDA_MAX
@ DLS_LAMBDA_MAX
Definition
Solver.hpp:21
iTaSC::WDLSSolver
Definition
WDLSSolver.hpp:16
iTaSC::WDLSSolver::WDLSSolver
WDLSSolver()
Definition
WDLSSolver.cpp:14
iTaSC::WDLSSolver::setParam
virtual void setParam(SolverParam param, double value)
Definition
WDLSSolver.hpp:31
iTaSC::WDLSSolver::~WDLSSolver
virtual ~WDLSSolver()
Definition
WDLSSolver.cpp:20
iTaSC::WDLSSolver::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
WDLSSolver.cpp:47
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