|
|
| Transform () |
| | Default constructor. Initializes to a null (all zeros) transform.
|
| |
| | Transform (float r11, float r12, float r13, float o14, float r21, float r22, float r23, float o24, float r31, float r32, float r33, float o34) |
| | Constructor from rotation matrix elements and translation components.
|
| |
| | Transform (const cv::Mat &transformationMatrix) |
| | Constructs a Transform from a 3x4 OpenCV matrix.
|
| |
| | Transform (float x, float y, float z, float roll, float pitch, float yaw) |
| | Constructs a Transform from position and Euler angles (in radians).
|
| |
| | Transform (float x, float y, float z, float qx, float qy, float qz, float qw) |
| | Constructs a Transform from position and quaternion.
|
| |
|
| Transform (float x, float y, float theta) |
| | Constructs a 2D Transform (x, y, theta).
|
| |
|
Transform | clone () const |
| | Returns a deep copy of the transform.
|
| |
| float | r11 () const |
| | Rotation matrix element at row 1, col 1.
|
| |
| float | r12 () const |
| |
| float | r13 () const |
| |
| float | r21 () const |
| |
| float | r22 () const |
| |
| float | r23 () const |
| |
| float | r31 () const |
| |
| float | r32 () const |
| |
| float | r33 () const |
| |
| float | o14 () const |
| | Translation x.
|
| |
| float | o24 () const |
| | Translation y.
|
| |
| float | o34 () const |
| | Translation z.
|
| |
| float & | operator[] (int index) |
| |
| const float & | operator[] (int index) const |
| |
| float & | operator() (int row, int col) |
| |
| const float & | operator() (int row, int col) const |
| |
|
bool | isNull () const |
| | Checks whether the transform is null (all zeros).
|
| |
|
bool | isIdentity () const |
| | Checks whether the transform is identity.
|
| |
|
void | setNull () |
| | Sets the transform to null (zero matrix).
|
| |
|
void | setIdentity () |
| | Sets the transform to the identity transform.
|
| |
| const cv::Mat & | dataMatrix () const |
| | Returns the internal OpenCV matrix (3x4).
|
| |
| const float * | data () const |
| | Returns a pointer to the raw data (12 floats).
|
| |
| float * | data () |
| |
| int | size () const |
| | Returns the number of float elements (always 12).
|
| |
| float & | x () |
| | Translation getters/setters.
|
| |
| float & | y () |
| | Translation y.
|
| |
| float & | z () |
| | Translation z.
|
| |
| const float & | x () const |
| |
| const float & | y () const |
| |
| const float & | z () const |
| |
|
float | theta () const |
| | Returns 2D orientation (theta) in radians.
|
| |
|
bool | isInvertible () const |
| | Returns whether the transform is invertible.
|
| |
|
Transform | inverse () const |
| | Returns the inverse of the transform.
|
| |
|
Transform | rotation () const |
| | Returns only the rotation component.
|
| |
|
Transform | translation () const |
| | Returns only the translation component.
|
| |
|
Transform | to3DoF () const |
| | Converts to 3 DoF (x, y, theta).
|
| |
|
Transform | to4DoF () const |
| | Converts to 4 DoF (x, y, z, yaw).
|
| |
|
bool | is3DoF () const |
| | Checks if the transform is 3 DoF (no pitch/roll).
|
| |
|
bool | is4DoF () const |
| | Checks if the transform is 4 DoF (no pitch).
|
| |
|
cv::Mat | rotationMatrix () const |
| | Returns the 3x3 rotation matrix (cv::Mat).
|
| |
|
cv::Mat | translationMatrix () const |
| | Returns the 3x1 translation matrix (cv::Mat).
|
| |
|
void | getTranslationAndEulerAngles (float &x, float &y, float &z, float &roll, float &pitch, float &yaw) const |
| | Extracts translation and Euler angles (radians).
|
| |
|
void | getEulerAngles (float &roll, float &pitch, float &yaw) const |
| | Extracts Euler angles (roll, pitch, yaw).
|
| |
|
void | getTranslation (float &x, float &y, float &z) const |
| | Extracts translation only.
|
| |
|
float | getAngle (const Transform &t) const |
| | Returns angular difference (in radians) with another transform.
|
| |
|
float | getNorm () const |
| | Returns the Euclidean norm of the translation vector.
|
| |
|
float | getNormSquared () const |
| | Returns the squared norm of the translation vector.
|
| |
|
float | getDistance (const Transform &t) const |
| | Returns the Euclidean distance to another transform.
|
| |
|
float | getDistanceSquared (const Transform &t) const |
| | Returns the squared distance to another transform.
|
| |
| Transform | interpolate (float t, const Transform &other) const |
| | Interpolates between this and another transform.
|
| |
|
void | normalizeRotation () |
| | Normalizes the rotation matrix.
|
| |
|
std::string | prettyPrint () const |
| | Returns a string representation of the transform.
|
| |
|
Transform | operator* (const Transform &t) const |
| | Operator overloads.
|
| |
|
Transform & | operator*= (const Transform &t) |
| |
|
bool | operator== (const Transform &t) const |
| |
|
bool | operator!= (const Transform &t) const |
| |
|
Eigen::Matrix4f | toEigen4f () const |
| |
|
Eigen::Matrix4d | toEigen4d () const |
| |
|
Eigen::Affine3f | toEigen3f () const |
| |
|
Eigen::Affine3d | toEigen3d () const |
| |
|
Eigen::Quaternionf | getQuaternionf () const |
| |
|
Eigen::Quaterniond | getQuaterniond () const |
| |
|
|
static Transform | getIdentity () |
| | Returns identity transform.
|
| |
|
static Transform | fromEigen4f (const Eigen::Matrix4f &matrix) |
| | Converts from Eigen representations.
|
| |
|
static Transform | fromEigen4d (const Eigen::Matrix4d &matrix) |
| |
|
static Transform | fromEigen3f (const Eigen::Affine3f &matrix) |
| |
|
static Transform | fromEigen3d (const Eigen::Affine3d &matrix) |
| |
|
static Transform | fromEigen3f (const Eigen::Isometry3f &matrix) |
| |
|
static Transform | fromEigen3d (const Eigen::Isometry3d &matrix) |
| |
|
static Transform | fromEigen3f (const Eigen::Matrix< float, 3, 4 > &matrix) |
| |
|
static Transform | fromEigen3d (const Eigen::Matrix< double, 3, 4 > &matrix) |
| |
| static Transform | opengl_T_rtabmap () |
| | Returns the transform from RTAB-Map to OpenGL coordinate system.
|
| |
| static Transform | rtabmap_T_opengl () |
| | Returns the transform from OpenGL to RTAB-Map coordinate system.
|
| |
| static Transform | fromString (const std::string &string) |
| | Parses a transform from a string representation. Supported formats:
|
| |
|
static bool | canParseString (const std::string &string) |
| | Checks if a string can be parsed into a transform.
|
| |
| static Transform | getTransform (const std::map< double, Transform > &tfBuffer, const double &stamp) |
| | Retrieves the transform to a given timestamp.
|
| |
| static RTABMAP_DEPRECATED Transform | getClosestTransform (const std::map< double, Transform > &tfBuffer, const double &stamp, double *stampDiff) |
| |
Represents a 3D rigid body transformation (rotation + translation).
This class provides an abstraction over 3D transformations using a 3x4 matrix representation, with utilities for conversion to/from Eigen and OpenCV formats, interpolation, inversion, DoF reduction, and distance calculations. It is fundamental to pose estimation and motion handling within the RTAB-Map framework.
The underlying data is stored in a cv::Mat (3x4, CV_32FC1), representing a rotation matrix and translation vector.
Definition at line 52 of file Transform.h.