Biorbd
include
RigidBody
GeneralizedTorque.h
1
#ifndef BIORBD_UTILS_GENERALIZED_TORQUE_H
2
#define BIORBD_UTILS_GENERALIZED_TORQUE_H
3
4
#include "biorbdConfig.h"
5
#include "Utils/Vector.h"
6
7
namespace
biorbd {
8
namespace
rigidbody {
9
class
Joints;
10
14
class
BIORBD_API
GeneralizedTorque
:
public
biorbd::utils::Vector
15
{
16
public
:
17
21
GeneralizedTorque
();
22
27
GeneralizedTorque
(
28
unsigned
int
nTorque);
29
34
GeneralizedTorque
(
const
biorbd::rigidbody::Joints
& j);
35
40
GeneralizedTorque
(
41
const
biorbd::rigidbody::GeneralizedTorque
& other);
42
47
GeneralizedTorque
(
48
const
RigidBodyDynamics::Math::VectorNd& v);
49
50
#ifdef BIORBD_USE_EIGEN3_MATH
51
56
template
<
typename
OtherDerived>
GeneralizedTorque
(
57
const
Eigen::MatrixBase<OtherDerived>& other) :
58
biorbd::utils::Vector
(other){}
59
60
#endif
61
62
#ifdef BIORBD_USE_CASADI_MATH
63
68
GeneralizedTorque
(
69
const
casadi::MX& v);
70
71
#endif
72
73
74
#ifndef SWIG
75
76
#ifdef BIORBD_USE_EIGEN3_MATH
77
83
template
<
typename
OtherDerived>
84
biorbd::rigidbody::GeneralizedTorque
& operator=(
const
Eigen::MatrixBase <OtherDerived>& other){
85
this->
biorbd::utils::Vector::operator=
(other);
86
return
*
this
;
87
}
88
89
#endif
90
95
void
operator=(
96
const
biorbd::utils::Vector
& other);
97
#ifdef BIORBD_USE_CASADI_MATH
98
103
void
operator=(
104
const
RBDLCasadiMath::MX_Xd_SubMatrix& other);
105
110
void
operator=(
111
const
casadi::MX& other);
112
#endif
113
114
#endif
115
};
116
117
}}
118
119
#endif // BIORBD_UTILS_GENERALIZED_TORQUE_H
biorbd::utils::Vector::operator=
void operator=(const biorbd::utils::Vector &other)
operator= For submatrices
Definition:
Vector.cpp:105
biorbd::utils::Vector
Wrapper of the Eigen VectorXd.
Definition:
Vector.h:20
biorbd::rigidbody::Joints
This is the core of the musculoskeletal model in biorbd.
Definition:
Joints.h:40
biorbd::rigidbody::GeneralizedTorque
Class GeneralizedTorque.
Definition:
GeneralizedTorque.h:15
Generated by
1.8.18