Biorbd
Release_1.13.0
Toggle main menu visibility
Loading...
Searching...
No Matches
GeneralizedCoordinates.h
1
#ifndef BIORBD_UTILS_GENERALIZED_COORDINATES_H
2
#define BIORBD_UTILS_GENERALIZED_COORDINATES_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
GeneralizedCoordinates
:
public
utils::Vector
{
16
public
:
20
GeneralizedCoordinates
();
21
26
GeneralizedCoordinates
(
size_t
nbQ);
27
32
GeneralizedCoordinates
(
const
Joints
& j);
33
38
GeneralizedCoordinates
(
const
GeneralizedCoordinates
& Q);
39
44
GeneralizedCoordinates
(
const
RigidBodyDynamics::Math::VectorNd& v);
45
46
#ifdef BIORBD_USE_EIGEN3_MATH
47
52
template
<
typename
OtherDerived>
53
GeneralizedCoordinates
(
const
Eigen::MatrixBase<OtherDerived>& other)
54
:
utils::Vector
(other) {}
55
56
#endif
57
58
#ifdef BIORBD_USE_CASADI_MATH
59
64
GeneralizedCoordinates
(
const
casadi::MX& v);
65
66
#endif
67
71
virtual
~GeneralizedCoordinates
();
72
73
#ifndef SWIG
74
75
#ifdef BIORBD_USE_EIGEN3_MATH
76
82
template
<
typename
OtherDerived>
83
GeneralizedCoordinates
&
operator=
(
84
const
Eigen::MatrixBase<OtherDerived>& other) {
85
this->
utils::Vector::operator=
(other);
86
return
*
this
;
87
}
88
89
#endif
90
95
void
operator=
(
const
utils::Vector
& other);
96
97
#ifdef BIORBD_USE_CASADI_MATH
98
103
void
operator=
(
const
RBDLCasadiMath::MX_Xd_SubMatrix& other);
104
109
void
operator=
(
const
casadi::MX& other);
110
#endif
111
112
#endif
113
};
114
115
}
// namespace rigidbody
116
}
// namespace BIORBD_NAMESPACE
117
118
#endif
// BIORBD_UTILS_GENERALIZED_COORDINATES_H
BIORBD_NAMESPACE::rigidbody::GeneralizedCoordinates::operator=
void operator=(const utils::Vector &other)
operator= For submatrices
Definition
GeneralizedCoordinates.cpp:34
BIORBD_NAMESPACE::rigidbody::GeneralizedCoordinates::GeneralizedCoordinates
GeneralizedCoordinates()
Construct generalized coordinates.
Definition
GeneralizedCoordinates.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
GeneralizedCoordinates.h
Generated by
1.18.0