Biorbd
GeneralizedAcceleration.h
1 #ifndef BIORBD_UTILS_GENERALIZED_ACCELERATION_H
2 #define BIORBD_UTILS_GENERALIZED_ACCELERATION_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 nQddot);
29 
35 
42 
48  const RigidBodyDynamics::Math::VectorNd& v);
49 
50 
51 #ifdef BIORBD_USE_EIGEN3_MATH
52 
57  template<typename OtherDerived> GeneralizedAcceleration(
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 ~GeneralizedAcceleration();
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 #ifdef BIORBD_USE_CASADI_MATH
105 
110  void operator=(
111  const RBDLCasadiMath::MX_Xd_SubMatrix& other);
112 
117  void operator=(
118  const casadi::MX& other);
119 #endif
120 
121 #endif
122 };
123 
124 }}
125 
126 #endif // BIORBD_UTILS_GENERALIZED_ACCELERATION_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::GeneralizedAcceleration
Class GeneralizedAcceleration.
Definition: GeneralizedAcceleration.h:15