Biorbd
GeneralizedVelocity.h
1 #ifndef BIORBD_UTILS_GENERALIZED_VELOCITY_H
2 #define BIORBD_UTILS_GENERALIZED_VELOCITY_H
3 
4 #include "biorbdConfig.h"
5 #include "Utils/Vector.h"
6 
7 namespace biorbd {
8 namespace rigidbody {
9 class Joints;
10 
14 class BIORBD_API GeneralizedVelocity : public biorbd::utils::Vector
15 {
16 public:
17 
22 
28  unsigned int nbQdot);
29 
35 
42 
48  const RigidBodyDynamics::Math::VectorNd& v);
49 
50 #ifdef BIORBD_USE_EIGEN3_MATH
51  template<typename OtherDerived> GeneralizedVelocity(
56  const Eigen::MatrixBase<OtherDerived>& other) :
57  biorbd::utils::Vector(other){}
58 #endif
59 #ifdef BIORBD_USE_CASADI_MATH
60 
66  const casadi::MX& v);
67 
68 #endif
69 
73  virtual ~GeneralizedVelocity();
74 
75 #ifndef SWIG
76 
77 #ifdef BIORBD_USE_EIGEN3_MATH
78 
84  template<typename OtherDerived>
86  const Eigen::MatrixBase <OtherDerived>& other){
88  return *this;
89  }
90 
91 #endif
92 
97  void operator=(
98  const biorbd::utils::Vector& other);
99 
100 #ifdef BIORBD_USE_CASADI_MATH
101 
106  void operator=(
107  const RBDLCasadiMath::MX_Xd_SubMatrix& other);
108 
113  void operator=(
114  const casadi::MX& other);
115 #endif
116 
117 #endif
118 };
119 
120 }}
121 
122 #endif // BIORBD_UTILS_GENERALIZED_VELOCITY_H
biorbd::utils::Vector::operator=
void operator=(const biorbd::utils::Vector &other)
operator= For submatrices
Definition: Vector.cpp:105
biorbd::utils::Vector
Wrapper of the Eigen VectorXd.
Definition: Vector.h:20
biorbd::rigidbody::Joints
This is the core of the musculoskeletal model in biorbd.
Definition: Joints.h:40
biorbd::rigidbody::GeneralizedVelocity
Class GeneralizedVelocity.
Definition: GeneralizedVelocity.h:15