Biorbd Release_1.13.0
Loading...
Searching...
No Matches
GeneralizedVelocity.h
1#ifndef BIORBD_UTILS_GENERALIZED_VELOCITY_H
2#define BIORBD_UTILS_GENERALIZED_VELOCITY_H
3
4#include "biorbdConfig.h"
5
6#include "Utils/Vector.h"
7
8namespace BIORBD_NAMESPACE {
9namespace rigidbody {
10class Joints;
11
15class BIORBD_API GeneralizedVelocity : public utils::Vector {
16 public:
21
26 GeneralizedVelocity(size_t nbQdot);
27
33
39
44 GeneralizedVelocity(const RigidBodyDynamics::Math::VectorNd& v);
45
46#ifdef BIORBD_USE_EIGEN3_MATH
51 template <typename OtherDerived>
52 GeneralizedVelocity(const Eigen::MatrixBase<OtherDerived>& other)
53 : utils::Vector(other) {}
54#endif
55#ifdef BIORBD_USE_CASADI_MATH
56
61 GeneralizedVelocity(const casadi::MX& v);
62
63#endif
64
68 virtual ~GeneralizedVelocity();
69
70#ifndef SWIG
71
72#ifdef BIORBD_USE_EIGEN3_MATH
73
79 template <typename OtherDerived>
80 GeneralizedVelocity& operator=(const Eigen::MatrixBase<OtherDerived>& other) {
81 this->utils::Vector::operator=(other);
82 return *this;
83 }
84
85#endif
86
91 void operator=(const utils::Vector& other);
92
93#ifdef BIORBD_USE_CASADI_MATH
94
99 void operator=(const RBDLCasadiMath::MX_Xd_SubMatrix& other);
100
105 void operator=(const casadi::MX& other);
106#endif
107
108#endif
109};
110
111} // namespace rigidbody
112} // namespace BIORBD_NAMESPACE
113
114#endif // BIORBD_UTILS_GENERALIZED_VELOCITY_H
void operator=(const utils::Vector &other)
operator= For submatrices
GeneralizedVelocity()
Construct generalized velocity vector.
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