Lightweight 3D pose (three spatial coordinates, plus a quaternion ).
Allows coordinate access using [] operator.
Definition at line 536 of file lightweight_geom_data.h.
#include <mrpt/math/lightweight_geom_data.h>
Public Member Functions | |
TPose3DQuat (double _x, double _y, double _z, double _qr, double _qx, double _qy, double _qz) | |
Constructor from coordinates. More... | |
TPose3DQuat () | |
Default fast constructor. More... | |
TPose3DQuat (const mrpt::poses::CPose3DQuat &p) | |
Constructor from a CPose3DQuat. More... | |
double & | operator[] (size_t i) |
Unsafe coordinate access using operator[]. More... | |
const double & | operator[] (size_t i) const |
Unsafe coordinate access using operator[]. More... | |
double | norm () const |
Pose's spatial coordinates norm. More... | |
void | getAsVector (vector_double &v) const |
Gets the pose as a vector of doubles. More... | |
void | asString (std::string &s) const |
Returns a human-readable textual representation of the object as "[x y z qr qx qy qz]". More... | |
std::string | asString () const |
void | fromString (const std::string &s) |
Set the current object value from a string generated by 'asString' (eg: "[0.02 1.04 -0.8 1.0 0.0 0.0 0.0]" ) More... | |
Static Public Member Functions | |
static size_t | size () |
Public Attributes | |
double | x |
Translation in x. More... | |
double | y |
Translation in y. More... | |
double | z |
Translation in z. More... | |
double | qr |
Quaternion part, r. More... | |
double | qx |
Quaternion part, x. More... | |
double | qy |
Quaternion part, y. More... | |
double | qz |
Quaternion part, z. More... | |
|
inline |
Constructor from coordinates.
Definition at line 546 of file lightweight_geom_data.h.
|
inline |
Default fast constructor.
Initializes to garbage.
Definition at line 548 of file lightweight_geom_data.h.
mrpt::math::TPose3DQuat::TPose3DQuat | ( | const mrpt::poses::CPose3DQuat & | p | ) |
Constructor from a CPose3DQuat.
|
inline |
Returns a human-readable textual representation of the object as "[x y z qr qx qy qz]".
Definition at line 572 of file lightweight_geom_data.h.
References mrpt::mrpt::format().
|
inline |
Definition at line 573 of file lightweight_geom_data.h.
References asString().
Referenced by asString().
void mrpt::math::TPose3DQuat::fromString | ( | const std::string & | s | ) |
Set the current object value from a string generated by 'asString' (eg: "[0.02 1.04 -0.8 1.0 0.0 0.0 0.0]" )
std::exception | On invalid format |
|
inline |
Gets the pose as a vector of doubles.
Definition at line 565 of file lightweight_geom_data.h.
References mrpt::dynamicsize_vector< T >::resize().
|
inline |
Pose's spatial coordinates norm.
Definition at line 561 of file lightweight_geom_data.h.
References mrpt::utils::square().
|
inline |
Unsafe coordinate access using operator[].
Intended for loops.
Definition at line 553 of file lightweight_geom_data.h.
|
inline |
Unsafe coordinate access using operator[].
Intended for loops.
Definition at line 557 of file lightweight_geom_data.h.
|
inlinestatic |
Definition at line 580 of file lightweight_geom_data.h.
double mrpt::math::TPose3DQuat::qr |
Quaternion part, r.
Definition at line 540 of file lightweight_geom_data.h.
double mrpt::math::TPose3DQuat::qx |
Quaternion part, x.
Definition at line 541 of file lightweight_geom_data.h.
double mrpt::math::TPose3DQuat::qy |
Quaternion part, y.
Definition at line 542 of file lightweight_geom_data.h.
double mrpt::math::TPose3DQuat::qz |
Quaternion part, z.
Definition at line 543 of file lightweight_geom_data.h.
double mrpt::math::TPose3DQuat::x |
Translation in x.
Definition at line 537 of file lightweight_geom_data.h.
Referenced by mrpt::poses::CPose3DQuat::CPose3DQuat().
double mrpt::math::TPose3DQuat::y |
Translation in y.
Definition at line 538 of file lightweight_geom_data.h.
Referenced by mrpt::poses::CPose3DQuat::CPose3DQuat().
double mrpt::math::TPose3DQuat::z |
Translation in z.
Definition at line 539 of file lightweight_geom_data.h.
Referenced by mrpt::poses::CPose3DQuat::CPose3DQuat().
Page generated by Doxygen 1.8.14 for MRPT 1.0.2 SVN: at lun oct 28 00:52:41 CET 2019 | Hosted on: |