Biorbd Release_1.13.0
Loading...
Searching...
No Matches
GeneralizedCoordinates.h
1#ifndef BIORBD_UTILS_GENERALIZED_COORDINATES_H
2#define BIORBD_UTILS_GENERALIZED_COORDINATES_H
3
4#include "biorbdConfig.h"
5
6#include "Utils/Vector.h"
7
8namespace BIORBD_NAMESPACE {
9namespace rigidbody {
10class Joints;
11
15class BIORBD_API GeneralizedCoordinates : public utils::Vector {
16 public:
21
26 GeneralizedCoordinates(size_t nbQ);
27
33
39
44 GeneralizedCoordinates(const RigidBodyDynamics::Math::VectorNd& v);
45
46#ifdef BIORBD_USE_EIGEN3_MATH
47
52 template <typename OtherDerived>
53 GeneralizedCoordinates(const Eigen::MatrixBase<OtherDerived>& other)
54 : utils::Vector(other) {}
55
56#endif
57
58#ifdef BIORBD_USE_CASADI_MATH
59
64 GeneralizedCoordinates(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
97#ifdef BIORBD_USE_CASADI_MATH
98
103 void operator=(const RBDLCasadiMath::MX_Xd_SubMatrix& other);
104
109 void operator=(const casadi::MX& other);
110#endif
111
112#endif
113};
114
115} // namespace rigidbody
116} // namespace BIORBD_NAMESPACE
117
118#endif // BIORBD_UTILS_GENERALIZED_COORDINATES_H
void operator=(const utils::Vector &other)
operator= For submatrices
GeneralizedCoordinates()
Construct generalized coordinates.
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