|
Biorbd Release_1.13.0
|
#include <Rotation.h>
Public Member Functions | |
| Rotation (const Matrix3d &matrix=Matrix3d::Identity()) | |
| Construct Rotation matrix. | |
| Rotation (const Scalar &v00, const Scalar &v01, const Scalar &v02, const Scalar &v10, const Scalar &v11, const Scalar &v12, const Scalar &v20, const Scalar &v21, const Scalar &v22) | |
| Rotation Construct a Rotation matrix by elements. | |
| Rotation (const Vector &rotation, const String &rotationSequence) | |
| Contruct a Rotation matrix. | |
| Rotation (const utils::SpatialTransform &st) | |
| Contruct Rototrans. | |
| Vector3d | axe (size_t idx) const |
| Get a particular axis of the Rotation matrix. | |
| Public Member Functions inherited from BIORBD_NAMESPACE::utils::Matrix3d | |
| Matrix3d () | |
| Construct matrix. | |
| Matrix3d (const Matrix3d &other) | |
| Construct a new Matrix3d from other. | |
| Matrix3d (const Scalar &v00, const Scalar &v01, const Scalar &v02, const Scalar &v10, const Scalar &v11, const Scalar &v12, const Scalar &v20, const Scalar &v21, const Scalar &v22) | |
| Rotation Construct a generic 3d matrix by elements. | |
| utils::Scalar | normOne () const |
| Return the 1-norm of the matrix. | |
| utils::Scalar | normInf () const |
| Return the inf-norm of the matrix. | |
| utils::Matrix3d | orthoNormalize () const |
| Produce an orthonormal matrix from the current matrix. | |
Static Public Member Functions | |
| static Rotation | fromSpatialTransform (const utils::SpatialTransform &st) |
| set the Rotation from a spatial transform | |
| static Rotation | fromEulerAngles (const Vector &rot, const String &seq) |
| Create a Rotation from Euler angles. | |
| static Rotation | fromMarkersNonNormalized (const std::pair< rigidbody::NodeSegment, rigidbody::NodeSegment > &axis1markers, const std::pair< rigidbody::NodeSegment, rigidbody::NodeSegment > &axis2markers, const std::pair< String, String > &axesNames, const String &axisToRecalculate) |
| fromMarkers Creates a system of axes from two axes defined by markers | |
| static Rotation | fromMarkers (const std::pair< rigidbody::NodeSegment, rigidbody::NodeSegment > &axis1markers, const std::pair< rigidbody::NodeSegment, rigidbody::NodeSegment > &axis2markers, const std::pair< String, String > &axesNames, const String &axisToRecalculate) |
| fromMarkers Creates a system of axes from two axes defined by markers | |
| static Vector | toEulerAngles (const Rotation &r, const String &seq) |
| Return extracted angles from the rotation matrix into Euler angles using the provided sequence. | |
| static utils::Rotation | mean (const std::vector< utils::Rotation > &mToMean) |
| Get the mean of the Rotation matrices. | |
| Static Public Member Functions inherited from BIORBD_NAMESPACE::utils::Matrix3d | |
| static utils::Matrix3d | fromEulerSequence (const utils::String &seq) |
| Creates a base 3d matrix from a euler sequence of exactly 3 elements. | |
Protected Member Functions | |
| void | checkUnitary () |
| Check if the Rotation is a unitary matrix of rotation. | |
Rotation matrix.
Definition at line 28 of file Rotation.h.
| utils::Rotation::Rotation | ( | const Matrix3d & | matrix = Matrix3d::Identity() | ) |
Construct Rotation matrix.
| matrix | 3D identity matrix |
Definition at line 13 of file Rotation.cpp.
| utils::Rotation::Rotation | ( | const Scalar & | v00, |
| const Scalar & | v01, | ||
| const Scalar & | v02, | ||
| const Scalar & | v10, | ||
| const Scalar & | v11, | ||
| const Scalar & | v12, | ||
| const Scalar & | v20, | ||
| const Scalar & | v21, | ||
| const Scalar & | v22 ) |
Rotation Construct a Rotation matrix by elements.
| v00 | Row 0, Col 0 |
| v01 | Row 0, Col 1 |
| v02 | Row 0, Col 2 |
| v10 | Row 1, Col 0 |
| v11 | Row 1, Col 1 |
| v12 | Row 1, Col 2 |
| v20 | Row 2, Col 0 |
| v21 | Row 2, Col 1 |
| v22 | Row 2, Col 2 |
Definition at line 27 of file Rotation.cpp.
Contruct a Rotation matrix.
| rotation | The Euler angles vector |
| rotationSequence | The rotation sequence |
The number of rotation must match the number of axes in the rotation sequence
Definition at line 39 of file Rotation.cpp.
| utils::Rotation::Rotation | ( | const utils::SpatialTransform & | st | ) |
Contruct Rototrans.
| st | Spatial Transform vector |
Definition at line 44 of file Rotation.cpp.
| utils::Vector3d utils::Rotation::axe | ( | size_t | idx | ) | const |
Get a particular axis of the Rotation matrix.
| idx | The index of axis (x = 0, y = 1 and z = 2) |
Definition at line 47 of file Rotation.cpp.
|
protected |
Check if the Rotation is a unitary matrix of rotation.
That function throws a runtime_error if the check fails
Definition at line 297 of file Rotation.cpp.
|
static |
Create a Rotation from Euler angles.
| rot | The Euler angles vector |
| seq | The rotation sequence |
The number of rotation must match the number of axes in the rotation sequence
Definition at line 57 of file Rotation.cpp.
|
static |
fromMarkers Creates a system of axes from two axes defined by markers
| axis1markers | The beginning and ending of the vector of the first axis |
| axis2markers | The beginning and ending of the vector of the second axis |
| axesNames | The names ("x", "y" or "z") of the axes |
| axisToRecalculate | The axis to recalculate to ensure orthonormal system of axes |
Definition at line 168 of file Rotation.cpp.
|
static |
fromMarkers Creates a system of axes from two axes defined by markers
| axis1markers | The beginning and ending of the vector of the first axis |
| axis2markers | The beginning and ending of the vector of the second axis |
| axesNames | The names ("x", "y" or "z") of the axes |
| axisToRecalculate | The axis to recalculate to ensure orthonormal system of axes |
Definition at line 89 of file Rotation.cpp.
|
static |
set the Rotation from a spatial transform
| st | The spatial transform |
Definition at line 52 of file Rotation.cpp.
|
static |
Get the mean of the Rotation matrices.
| mToMean | The Rotation matrices to mean |
Definition at line 275 of file Rotation.cpp.
|
static |
Return extracted angles from the rotation matrix into Euler angles using the provided sequence.
| r | The Rotation matrix to extract angles from |
| seq | The angle sequence |
The rotation sequence can be any combination of x, y and z
Definition at line 187 of file Rotation.cpp.