Biorbd
Release_1.13.0
Toggle main menu visibility
Loading...
Searching...
No Matches
Matrix3d.h
1
#ifndef BIORBD_UTILS_MATRIX3D_H
2
#define BIORBD_UTILS_MATRIX3D_H
3
4
#include "biorbdConfig.h"
5
6
#include "Utils/Scalar.h"
7
#include "rbdl/rbdl_math.h"
8
9
namespace
BIORBD_NAMESPACE {
10
namespace
utils {
11
class
String
;
12
16
#ifdef SWIG
17
class
BIORBD_API
Matrix3d
18
#else
19
class BIORBD_API
Matrix3d
:
public
RigidBodyDynamics::Math::Matrix3d
20
#endif
21
{
22
public
:
26
Matrix3d
();
27
32
Matrix3d
(
const
Matrix3d
& other);
33
46
Matrix3d
(
47
const
Scalar& v00,
48
const
Scalar& v01,
49
const
Scalar& v02,
50
const
Scalar& v10,
51
const
Scalar& v11,
52
const
Scalar& v12,
53
const
Scalar& v20,
54
const
Scalar& v21,
55
const
Scalar& v22);
56
57
#ifdef BIORBD_USE_EIGEN3_MATH
62
template
<
typename
OtherDerived>
63
Matrix3d
(
const
Eigen::MatrixBase<OtherDerived>& other)
64
: RigidBodyDynamics::Math::Matrix3d(other) {}
65
#endif
66
67
#ifndef BIORBD_USE_CASADI_MATH
72
utils::Scalar
normOne
()
const
;
73
78
utils::Scalar
normInf
()
const
;
79
87
utils::Matrix3d
orthoNormalize
()
const
;
88
#endif
89
96
static
utils::Matrix3d
fromEulerSequence
(
const
utils::String
& seq);
97
98
#ifdef BIORBD_USE_CASADI_MATH
99
104
Matrix3d
(
const
RBDLCasadiMath::MX_Xd_static<3, 3>& other);
105
110
Matrix3d
(
const
RBDLCasadiMath::MX_Xd_SubMatrix& other);
111
112
#endif
113
114
#ifndef SWIG
115
116
#ifdef BIORBD_USE_EIGEN3_MATH
121
template
<
typename
OtherDerived>
122
Matrix3d
& operator=(
const
Eigen::MatrixBase<OtherDerived>& other) {
123
this->Eigen::Matrix3d::operator=(other);
124
return
*
this
;
125
}
126
#endif
127
#ifdef BIORBD_USE_CASADI_MATH
132
void
operator=(
const
RBDLCasadiMath::MX_Xd_static<3, 3>& other);
133
138
void
operator=(
const
RBDLCasadiMath::MX_Xd_SubMatrix& other);
139
#endif
140
141
#endif
142
};
143
144
}
// namespace utils
145
}
// namespace BIORBD_NAMESPACE
146
147
#endif
// BIORBD_UTILS_MATRIX3D_H
BIORBD_NAMESPACE::utils::Matrix3d
A wrapper for the Eigen::MatrixXd.
Definition
Matrix3d.h:21
BIORBD_NAMESPACE::utils::Matrix3d::normOne
utils::Scalar normOne() const
Return the 1-norm of the matrix.
Definition
Matrix3d.cpp:36
BIORBD_NAMESPACE::utils::Matrix3d::orthoNormalize
utils::Matrix3d orthoNormalize() const
Produce an orthonormal matrix from the current matrix.
Definition
Matrix3d.cpp:56
BIORBD_NAMESPACE::utils::Matrix3d::normInf
utils::Scalar normInf() const
Return the inf-norm of the matrix.
Definition
Matrix3d.cpp:46
BIORBD_NAMESPACE::utils::Matrix3d::Matrix3d
Matrix3d()
Construct matrix.
Definition
Matrix3d.cpp:9
BIORBD_NAMESPACE::utils::Matrix3d::fromEulerSequence
static utils::Matrix3d fromEulerSequence(const utils::String &seq)
Creates a base 3d matrix from a euler sequence of exactly 3 elements.
Definition
Matrix3d.cpp:67
BIORBD_NAMESPACE::utils::String
Wrapper around the std::string class with augmented functionality.
Definition
String.h:18
include
Utils
Matrix3d.h
Generated by
1.18.0