Biorbd
Release_1.13.0
Toggle main menu visibility
Loading...
Searching...
No Matches
GeneralizedAcceleration.cpp
1
#define BIORBD_API_EXPORTS
2
#include "RigidBody/GeneralizedAcceleration.h"
3
4
#include "RigidBody/Joints.h"
5
6
using namespace
BIORBD_NAMESPACE;
7
8
rigidbody::GeneralizedAcceleration::GeneralizedAcceleration
() {}
9
10
rigidbody::GeneralizedAcceleration::GeneralizedAcceleration
(
size_t
nQddot)
11
: utils::
Vector
(nQddot) {}
12
13
rigidbody::GeneralizedAcceleration::GeneralizedAcceleration
(
14
const
rigidbody::Joints
&j)
15
: utils::
Vector
(j.nbQ()) {}
16
17
rigidbody::GeneralizedAcceleration::GeneralizedAcceleration
(
18
const
rigidbody::GeneralizedAcceleration
&Q)
19
: utils::
Vector
(Q) {}
20
21
rigidbody::GeneralizedAcceleration::GeneralizedAcceleration
(
22
const
RigidBodyDynamics::Math::VectorNd &v)
23
: utils::
Vector
(v) {}
24
25
#ifdef BIORBD_USE_CASADI_MATH
26
27
rigidbody::GeneralizedAcceleration::GeneralizedAcceleration
(
const
casadi::MX &v)
28
: utils::Vector(v) {}
29
30
#endif
31
32
rigidbody::GeneralizedAcceleration::~GeneralizedAcceleration
() {}
33
34
void
rigidbody::GeneralizedAcceleration::operator=
(
const
utils::Vector
&other) {
35
this->
utils::Vector::operator=
(other);
36
}
37
38
#ifdef BIORBD_USE_CASADI_MATH
39
40
void
rigidbody::GeneralizedAcceleration::operator=
(
41
const
RBDLCasadiMath::MX_Xd_SubMatrix &other) {
42
this->
utils::Vector::operator=
(other);
43
}
44
45
void
rigidbody::GeneralizedAcceleration::operator=
(
const
casadi::MX &other) {
46
this->
utils::Vector::operator=
(other);
47
}
48
49
#endif
BIORBD_NAMESPACE::rigidbody::GeneralizedAcceleration
Class GeneralizedAcceleration.
Definition
GeneralizedAcceleration.h:15
BIORBD_NAMESPACE::rigidbody::GeneralizedAcceleration::GeneralizedAcceleration
GeneralizedAcceleration()
Construct generalized acceleration vector.
Definition
GeneralizedAcceleration.cpp:8
BIORBD_NAMESPACE::rigidbody::GeneralizedAcceleration::~GeneralizedAcceleration
virtual ~GeneralizedAcceleration()
Destroy the class properly.
Definition
GeneralizedAcceleration.cpp:32
BIORBD_NAMESPACE::rigidbody::GeneralizedAcceleration::operator=
void operator=(const utils::Vector &other)
operator= For submatrices
Definition
GeneralizedAcceleration.cpp:34
BIORBD_NAMESPACE::rigidbody::Joints
This is the core of the musculoskeletal model in biorbd.
Definition
Joints.h:48
BIORBD_NAMESPACE::utils::Vector
Wrapper of the Eigen VectorXd.
Definition
Vector.h:21
BIORBD_NAMESPACE::utils::Vector::Vector
Vector()
Construct vector.
Definition
Vector.cpp:10
BIORBD_NAMESPACE::utils::Vector::operator=
void operator=(const Vector &other)
operator= For submatrices
Definition
Vector.cpp:83
src
RigidBody
GeneralizedAcceleration.cpp
Generated by
1.18.0