Biorbd Release_1.13.0
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
8namespace BIORBD_NAMESPACE {
9namespace rigidbody {
10class Joints;
11
15class BIORBD_API GeneralizedAcceleration : public utils::Vector {
16 public:
21
26 GeneralizedAcceleration(size_t nQddot);
27
33
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
72
73#ifndef SWIG
74
75#ifdef BIORBD_USE_EIGEN3_MATH
76
82 template <typename OtherDerived>
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
GeneralizedAcceleration()
Construct generalized acceleration vector.
void operator=(const utils::Vector &other)
operator= For submatrices
This is the core of the musculoskeletal model in biorbd.
Definition Joints.h:48
Wrapper of the Eigen VectorXd.
Definition Vector.h:21
void operator=(const Vector &other)
operator= For submatrices
Definition Vector.cpp:83