Biorbd
include
RigidBody
GeneralizedAcceleration.h
1
#ifndef BIORBD_UTILS_GENERALIZED_ACCELERATION_H
2
#define BIORBD_UTILS_GENERALIZED_ACCELERATION_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
GeneralizedAcceleration
:
public
biorbd::utils::Vector
15
{
16
public
:
17
21
GeneralizedAcceleration
();
22
27
GeneralizedAcceleration
(
28
unsigned
int
nQddot);
29
34
GeneralizedAcceleration
(
const
biorbd::rigidbody::Joints
& j);
35
40
GeneralizedAcceleration
(
41
const
biorbd::rigidbody::GeneralizedAcceleration
& Q);
42
47
GeneralizedAcceleration
(
48
const
RigidBodyDynamics::Math::VectorNd& v);
49
50
51
#ifdef BIORBD_USE_EIGEN3_MATH
52
57
template
<
typename
OtherDerived>
GeneralizedAcceleration
(
58
const
Eigen::MatrixBase<OtherDerived>& other) :
59
biorbd::utils::Vector
(other){}
60
61
#endif
62
63
#ifdef BIORBD_USE_CASADI_MATH
64
69
GeneralizedAcceleration
(
70
const
casadi::MX& v);
71
72
#endif
73
74
78
virtual
~
GeneralizedAcceleration
();
79
80
#ifndef SWIG
81
82
#ifdef BIORBD_USE_EIGEN3_MATH
83
89
template
<
typename
OtherDerived>
90
biorbd::rigidbody::GeneralizedAcceleration
& operator=(
91
const
Eigen::MatrixBase <OtherDerived>& other){
92
this->
biorbd::utils::Vector::operator=
(other);
93
return
*
this
;
94
}
95
96
#endif
97
102
void
operator=(
103
const
biorbd::utils::Vector
& other);
104
#ifdef BIORBD_USE_CASADI_MATH
105
110
void
operator=(
111
const
RBDLCasadiMath::MX_Xd_SubMatrix& other);
112
117
void
operator=(
118
const
casadi::MX& other);
119
#endif
120
121
#endif
122
};
123
124
}}
125
126
#endif // BIORBD_UTILS_GENERALIZED_ACCELERATION_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::GeneralizedAcceleration
Class GeneralizedAcceleration.
Definition:
GeneralizedAcceleration.h:15
Generated by
1.8.18