Biorbd Release_1.13.0
Loading...
Searching...
No Matches
GeneralizedTorque.cpp
1#define BIORBD_API_EXPORTS
2#include "RigidBody/GeneralizedTorque.h"
3
4#include "RigidBody/Joints.h"
5
6using namespace BIORBD_NAMESPACE;
7
9
11 : utils::Vector(nTorque) {}
12
14 : utils::Vector(j.nbGeneralizedTorque()) {}
15
19
21 const RigidBodyDynamics::Math::VectorNd &v)
22 : utils::Vector(v) {}
23
24#ifdef BIORBD_USE_CASADI_MATH
25
27 : utils::Vector(v) {}
28
29#endif
30
34
35#ifdef BIORBD_USE_CASADI_MATH
36
38 const RBDLCasadiMath::MX_Xd_SubMatrix &other) {
39 this->utils::Vector::operator=(other);
40}
41
42void rigidbody::GeneralizedTorque::operator=(const casadi::MX &other) {
43 this->utils::Vector::operator=(other);
44}
45
46#endif
GeneralizedTorque()
Construct generalized torque.
void operator=(const utils::Vector &other)
operator= For submatrices
This is the core of the musculoskeletal model in biorbd.
Definition Joints.h:48
Wrapper of the Eigen VectorXd.
Definition Vector.h:21
Vector()
Construct vector.
Definition Vector.cpp:10
void operator=(const Vector &other)
operator= For submatrices
Definition Vector.cpp:83