Biorbd
Release_1.13.0
Toggle main menu visibility
Loading...
Searching...
No Matches
GeneralizedVelocity.cpp
1
#define BIORBD_API_EXPORTS
2
#include "RigidBody/GeneralizedVelocity.h"
3
4
#include "RigidBody/Joints.h"
5
6
using namespace
BIORBD_NAMESPACE;
7
8
rigidbody::GeneralizedVelocity::GeneralizedVelocity
() {}
9
10
rigidbody::GeneralizedVelocity::GeneralizedVelocity
(
size_t
nbQdot)
11
: utils::
Vector
(nbQdot) {}
12
13
rigidbody::GeneralizedVelocity::GeneralizedVelocity
(
const
rigidbody::Joints
&j)
14
: utils::
Vector
(j.nbQdot()) {}
15
16
rigidbody::GeneralizedVelocity::GeneralizedVelocity
(
17
const
rigidbody::GeneralizedVelocity
&Q)
18
: utils::
Vector
(Q) {}
19
20
rigidbody::GeneralizedVelocity::GeneralizedVelocity
(
21
const
RigidBodyDynamics::Math::VectorNd &v)
22
: utils::
Vector
(v) {}
23
24
#ifdef BIORBD_USE_CASADI_MATH
25
26
rigidbody::GeneralizedVelocity::GeneralizedVelocity
(
const
casadi::MX &v)
27
: utils::Vector(v) {}
28
29
#endif
30
31
rigidbody::GeneralizedVelocity::~GeneralizedVelocity
() {}
32
33
void
rigidbody::GeneralizedVelocity::operator=
(
const
utils::Vector
&other) {
34
this->
utils::Vector::operator=
(other);
35
}
36
37
#ifdef BIORBD_USE_CASADI_MATH
38
39
void
rigidbody::GeneralizedVelocity::operator=
(
40
const
RBDLCasadiMath::MX_Xd_SubMatrix &other) {
41
this->
utils::Vector::operator=
(other);
42
}
43
44
void
rigidbody::GeneralizedVelocity::operator=
(
const
casadi::MX &other) {
45
this->
utils::Vector::operator=
(other);
46
}
47
48
#endif
BIORBD_NAMESPACE::rigidbody::GeneralizedVelocity
Class GeneralizedVelocity.
Definition
GeneralizedVelocity.h:15
BIORBD_NAMESPACE::rigidbody::GeneralizedVelocity::operator=
void operator=(const utils::Vector &other)
operator= For submatrices
Definition
GeneralizedVelocity.cpp:33
BIORBD_NAMESPACE::rigidbody::GeneralizedVelocity::~GeneralizedVelocity
virtual ~GeneralizedVelocity()
Destroy the class properly.
Definition
GeneralizedVelocity.cpp:31
BIORBD_NAMESPACE::rigidbody::GeneralizedVelocity::GeneralizedVelocity
GeneralizedVelocity()
Construct generalized velocity vector.
Definition
GeneralizedVelocity.cpp:8
BIORBD_NAMESPACE::rigidbody::Joints
This is the core of the musculoskeletal model in biorbd.
Definition
Joints.h:48
BIORBD_NAMESPACE::utils::Vector
Wrapper of the Eigen VectorXd.
Definition
Vector.h:21
BIORBD_NAMESPACE::utils::Vector::Vector
Vector()
Construct vector.
Definition
Vector.cpp:10
BIORBD_NAMESPACE::utils::Vector::operator=
void operator=(const Vector &other)
operator= For submatrices
Definition
Vector.cpp:83
src
RigidBody
GeneralizedVelocity.cpp
Generated by
1.18.0