Biorbd
Release_1.13.0
Toggle main menu visibility
Loading...
Searching...
No Matches
GeneralizedVelocity.h
1
#ifndef BIORBD_UTILS_GENERALIZED_VELOCITY_H
2
#define BIORBD_UTILS_GENERALIZED_VELOCITY_H
3
4
#include "biorbdConfig.h"
5
6
#include "Utils/Vector.h"
7
8
namespace
BIORBD_NAMESPACE {
9
namespace
rigidbody {
10
class
Joints
;
11
15
class
BIORBD_API
GeneralizedVelocity
:
public
utils::Vector
{
16
public
:
20
GeneralizedVelocity
();
21
26
GeneralizedVelocity
(
size_t
nbQdot);
27
32
GeneralizedVelocity
(
const
Joints
& j);
33
38
GeneralizedVelocity
(
const
GeneralizedVelocity
& Q);
39
44
GeneralizedVelocity
(
const
RigidBodyDynamics::Math::VectorNd& v);
45
46
#ifdef BIORBD_USE_EIGEN3_MATH
51
template
<
typename
OtherDerived>
52
GeneralizedVelocity
(
const
Eigen::MatrixBase<OtherDerived>& other)
53
:
utils::Vector
(other) {}
54
#endif
55
#ifdef BIORBD_USE_CASADI_MATH
56
61
GeneralizedVelocity
(
const
casadi::MX& v);
62
63
#endif
64
68
virtual
~GeneralizedVelocity
();
69
70
#ifndef SWIG
71
72
#ifdef BIORBD_USE_EIGEN3_MATH
73
79
template
<
typename
OtherDerived>
80
GeneralizedVelocity
&
operator=
(
const
Eigen::MatrixBase<OtherDerived>& other) {
81
this->
utils::Vector::operator=
(other);
82
return
*
this
;
83
}
84
85
#endif
86
91
void
operator=
(
const
utils::Vector
& other);
92
93
#ifdef BIORBD_USE_CASADI_MATH
94
99
void
operator=
(
const
RBDLCasadiMath::MX_Xd_SubMatrix& other);
100
105
void
operator=
(
const
casadi::MX& other);
106
#endif
107
108
#endif
109
};
110
111
}
// namespace rigidbody
112
}
// namespace BIORBD_NAMESPACE
113
114
#endif
// BIORBD_UTILS_GENERALIZED_VELOCITY_H
BIORBD_NAMESPACE::rigidbody::GeneralizedVelocity::operator=
void operator=(const utils::Vector &other)
operator= For submatrices
Definition
GeneralizedVelocity.cpp:33
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::operator=
void operator=(const Vector &other)
operator= For submatrices
Definition
Vector.cpp:83
include
RigidBody
GeneralizedVelocity.h
Generated by
1.18.0