Biorbd
Release_1.13.0
Toggle main menu visibility
Loading...
Searching...
No Matches
GeneralizedAcceleration.h
1
#ifndef BIORBD_UTILS_GENERALIZED_ACCELERATION_H
2
#define BIORBD_UTILS_GENERALIZED_ACCELERATION_H
3
4
#include "biorbdConfig.h"
5
6
#include "Utils/Vector.h"
7
8
namespace
BIORBD_NAMESPACE {
9
namespace
rigidbody {
10
class
Joints
;
11
15
class
BIORBD_API
GeneralizedAcceleration
:
public
utils::Vector
{
16
public
:
20
GeneralizedAcceleration
();
21
26
GeneralizedAcceleration
(
size_t
nQddot);
27
32
GeneralizedAcceleration
(
const
rigidbody::Joints
& j);
33
38
GeneralizedAcceleration
(
const
GeneralizedAcceleration
& Q);
39
44
GeneralizedAcceleration
(
const
RigidBodyDynamics::Math::VectorNd& v);
45
46
#ifdef BIORBD_USE_EIGEN3_MATH
47
52
template
<
typename
OtherDerived>
53
GeneralizedAcceleration
(
const
Eigen::MatrixBase<OtherDerived>& other)
54
:
utils::Vector
(other) {}
55
56
#endif
57
58
#ifdef BIORBD_USE_CASADI_MATH
59
64
GeneralizedAcceleration
(
const
casadi::MX& v);
65
66
#endif
67
71
virtual
~GeneralizedAcceleration
();
72
73
#ifndef SWIG
74
75
#ifdef BIORBD_USE_EIGEN3_MATH
76
82
template
<
typename
OtherDerived>
83
GeneralizedAcceleration
&
operator=
(
84
const
Eigen::MatrixBase<OtherDerived>& other) {
85
this->
utils::Vector::operator=
(other);
86
return
*
this
;
87
}
88
89
#endif
90
95
void
operator=
(
const
utils::Vector
& other);
96
#ifdef BIORBD_USE_CASADI_MATH
97
102
void
operator=
(
const
RBDLCasadiMath::MX_Xd_SubMatrix& other);
103
108
void
operator=
(
const
casadi::MX& other);
109
#endif
110
111
#endif
112
};
113
114
}
// namespace rigidbody
115
}
// namespace BIORBD_NAMESPACE
116
117
#endif
// BIORBD_UTILS_GENERALIZED_ACCELERATION_H
BIORBD_NAMESPACE::rigidbody::GeneralizedAcceleration::GeneralizedAcceleration
GeneralizedAcceleration()
Construct generalized acceleration vector.
Definition
GeneralizedAcceleration.cpp:8
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::operator=
void operator=(const Vector &other)
operator= For submatrices
Definition
Vector.cpp:83
include
RigidBody
GeneralizedAcceleration.h
Generated by
1.18.0