Biorbd
GeneralizedCoordinates.h
1 #ifndef BIORBD_UTILS_GENERALIZED_COORDINATES_H
2 #define BIORBD_UTILS_GENERALIZED_COORDINATES_H
3 
4 #include "biorbdConfig.h"
5 #include "Utils/Vector.h"
6 
7 namespace biorbd {
8 namespace rigidbody {
9 class Joints;
10 
15 {
16 public:
17 
22 
28  unsigned int nbQ);
29 
35  const biorbd::rigidbody::Joints& j);
36 
43 
49  const RigidBodyDynamics::Math::VectorNd& v);
50 
51 #ifdef BIORBD_USE_EIGEN3_MATH
52 
57  template<typename OtherDerived> GeneralizedCoordinates(
58  const Eigen::MatrixBase<OtherDerived>& other) :
59  biorbd::utils::Vector(other){}
60 
61 #endif
62 
63 #ifdef BIORBD_USE_CASADI_MATH
64 
70  const casadi::MX& v);
71 
72 #endif
73 
74 
78  virtual ~GeneralizedCoordinates();
79 
80 #ifndef SWIG
81 
82 #ifdef BIORBD_USE_EIGEN3_MATH
83 
89  template<typename OtherDerived>
91  const Eigen::MatrixBase <OtherDerived>& other){
93  return *this;
94  }
95 
96 #endif
97 
102  void operator=(
103  const biorbd::utils::Vector& other);
104 
105 #ifdef BIORBD_USE_CASADI_MATH
106 
111  void operator=(
112  const RBDLCasadiMath::MX_Xd_SubMatrix& other);
113 
118  void operator=(
119  const casadi::MX& other);
120 #endif
121 
122 #endif
123 };
124 
125 }}
126 
127 #endif // BIORBD_UTILS_GENERALIZED_COORDINATES_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::GeneralizedCoordinates
Class GeneralizedCoordinates.
Definition: GeneralizedCoordinates.h:15
biorbd::rigidbody::Joints
This is the core of the musculoskeletal model in biorbd.
Definition: Joints.h:40