Public Member Functions | Static Public Member Functions | Private Attributes
rtabmap::Transform Class Reference

#include <Transform.h>

List of all members.

Public Member Functions

Transform clone () const
const float * data () const
float * data ()
const cv::Mat & dataMatrix () const
float getAngle (float x=1.0f, float y=0.0f, float z=0.0f) const
float getDistance (const Transform &t) const
float getDistanceSquared (const Transform &t) const
void getEulerAngles (float &roll, float &pitch, float &yaw) const
float getNorm () const
float getNormSquared () const
Eigen::Quaterniond getQuaterniond () const
Eigen::Quaternionf getQuaternionf () const
void getTranslation (float &x, float &y, float &z) const
void getTranslationAndEulerAngles (float &x, float &y, float &z, float &roll, float &pitch, float &yaw) const
Transform interpolate (float t, const Transform &other) const
Transform inverse () const
bool isIdentity () const
bool isNull () const
void normalizeRotation ()
float o14 () const
float o24 () const
float o34 () const
bool operator!= (const Transform &t) const
float & operator() (int row, int col)
const float & operator() (int row, int col) const
Transform operator* (const Transform &t) const
Transformoperator*= (const Transform &t)
bool operator== (const Transform &t) const
float & operator[] (int index)
const float & operator[] (int index) const
std::string prettyPrint () const
float r11 () const
float r12 () const
float r13 () const
float r21 () const
float r22 () const
float r23 () const
float r31 () const
float r32 () const
float r33 () const
Transform rotation () const
cv::Mat rotationMatrix () const
void setIdentity ()
void setNull ()
int size () const
float theta () const
Transform to3DoF () const
Eigen::Affine3d toEigen3d () const
Eigen::Affine3f toEigen3f () const
Eigen::Matrix4d toEigen4d () const
Eigen::Matrix4f toEigen4f () const
 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)
 Transform (const cv::Mat &transformationMatrix)
 Transform (float x, float y, float z, float roll, float pitch, float yaw)
 Transform (float x, float y, float z, float qx, float qy, float qz, float qw)
 Transform (float x, float y, float theta)
Transform translation () const
cv::Mat translationMatrix () const
float & x ()
const float & x () const
float & y ()
const float & y () const
float & z ()
const float & z () const

Static Public Member Functions

static bool canParseString (const std::string &string)
static Transform fromEigen3d (const Eigen::Affine3d &matrix)
static Transform fromEigen3d (const Eigen::Isometry3d &matrix)
static Transform fromEigen3f (const Eigen::Affine3f &matrix)
static Transform fromEigen3f (const Eigen::Isometry3f &matrix)
static Transform fromEigen4d (const Eigen::Matrix4d &matrix)
static Transform fromEigen4f (const Eigen::Matrix4f &matrix)
static Transform fromString (const std::string &string)
static Transform getIdentity ()

Private Attributes

cv::Mat data_

Detailed Description

Definition at line 40 of file Transform.h.


Constructor & Destructor Documentation

Definition at line 41 of file Transform.cpp.

rtabmap::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 
)

Definition at line 46 of file Transform.cpp.

rtabmap::Transform::Transform ( const cv::Mat &  transformationMatrix)

Definition at line 57 of file Transform.cpp.

rtabmap::Transform::Transform ( float  x,
float  y,
float  z,
float  roll,
float  pitch,
float  yaw 
)

Definition at line 72 of file Transform.cpp.

rtabmap::Transform::Transform ( float  x,
float  y,
float  z,
float  qx,
float  qy,
float  qz,
float  qw 
)

Definition at line 78 of file Transform.cpp.

rtabmap::Transform::Transform ( float  x,
float  y,
float  theta 
)

Definition at line 96 of file Transform.cpp.


Member Function Documentation

bool rtabmap::Transform::canParseString ( const std::string &  string) [static]

Format (3 values): x y z Format (6 values): x y z roll pitch yaw Format (7 values): x y z qx qy qz qw Format (9 values, 3x3 rotation): r11 r12 r13 r21 r22 r23 r31 r32 r33 Format (12 values, 3x4 transform): r11 r12 r13 tx r21 r22 r23 ty r31 r32 r33 tz

Definition at line 464 of file Transform.cpp.

Definition at line 102 of file Transform.cpp.

const float* rtabmap::Transform::data ( ) const [inline]

Definition at line 87 of file Transform.h.

float* rtabmap::Transform::data ( ) [inline]

Definition at line 88 of file Transform.h.

const cv::Mat& rtabmap::Transform::dataMatrix ( ) const [inline]

Definition at line 86 of file Transform.h.

Transform rtabmap::Transform::fromEigen3d ( const Eigen::Affine3d &  matrix) [static]

Definition at line 388 of file Transform.cpp.

Transform rtabmap::Transform::fromEigen3d ( const Eigen::Isometry3d &  matrix) [static]

Definition at line 401 of file Transform.cpp.

Transform rtabmap::Transform::fromEigen3f ( const Eigen::Affine3f &  matrix) [static]

Definition at line 382 of file Transform.cpp.

Transform rtabmap::Transform::fromEigen3f ( const Eigen::Isometry3f &  matrix) [static]

Definition at line 395 of file Transform.cpp.

Transform rtabmap::Transform::fromEigen4d ( const Eigen::Matrix4d &  matrix) [static]

Definition at line 375 of file Transform.cpp.

Transform rtabmap::Transform::fromEigen4f ( const Eigen::Matrix4f &  matrix) [static]

Definition at line 369 of file Transform.cpp.

Transform rtabmap::Transform::fromString ( const std::string &  string) [static]

Format (3 values): x y z Format (6 values): x y z roll pitch yaw Format (7 values): x y z qx qy qz qw Format (9 values, 3x3 rotation): r11 r12 r13 r21 r22 r23 r31 r32 r33 Format (12 values, 3x4 transform): r11 r12 r13 tx r21 r22 r23 ty r31 r32 r33 tz

Definition at line 415 of file Transform.cpp.

float rtabmap::Transform::getAngle ( float  x = 1.0f,
float  y = 0.0f,
float  z = 0.0f 
) const

Definition at line 224 of file Transform.cpp.

float rtabmap::Transform::getDistance ( const Transform t) const

Definition at line 241 of file Transform.cpp.

Definition at line 246 of file Transform.cpp.

void rtabmap::Transform::getEulerAngles ( float &  roll,
float &  pitch,
float &  yaw 
) const

Definition at line 211 of file Transform.cpp.

Definition at line 364 of file Transform.cpp.

float rtabmap::Transform::getNorm ( ) const

Definition at line 231 of file Transform.cpp.

Definition at line 236 of file Transform.cpp.

Eigen::Quaterniond rtabmap::Transform::getQuaterniond ( ) const

Definition at line 359 of file Transform.cpp.

Eigen::Quaternionf rtabmap::Transform::getQuaternionf ( ) const

Definition at line 354 of file Transform.cpp.

void rtabmap::Transform::getTranslation ( float &  x,
float &  y,
float &  z 
) const

Definition at line 217 of file Transform.cpp.

void rtabmap::Transform::getTranslationAndEulerAngles ( float &  x,
float &  y,
float &  z,
float &  roll,
float &  pitch,
float &  yaw 
) const

Definition at line 206 of file Transform.cpp.

Transform rtabmap::Transform::interpolate ( float  t,
const Transform other 
) const

Definition at line 251 of file Transform.cpp.

Definition at line 169 of file Transform.cpp.

Definition at line 136 of file Transform.cpp.

Definition at line 107 of file Transform.cpp.

Definition at line 264 of file Transform.cpp.

float rtabmap::Transform::o14 ( ) const [inline]

Definition at line 71 of file Transform.h.

float rtabmap::Transform::o24 ( ) const [inline]

Definition at line 72 of file Transform.h.

float rtabmap::Transform::o34 ( ) const [inline]

Definition at line 73 of file Transform.h.

bool rtabmap::Transform::operator!= ( const Transform t) const

Definition at line 307 of file Transform.cpp.

float& rtabmap::Transform::operator() ( int  row,
int  col 
) [inline]

Definition at line 77 of file Transform.h.

const float& rtabmap::Transform::operator() ( int  row,
int  col 
) const [inline]

Definition at line 78 of file Transform.h.

Transform rtabmap::Transform::operator* ( const Transform t) const

Definition at line 288 of file Transform.cpp.

Transform & rtabmap::Transform::operator*= ( const Transform t)

Definition at line 296 of file Transform.cpp.

bool rtabmap::Transform::operator== ( const Transform t) const

Definition at line 302 of file Transform.cpp.

float& rtabmap::Transform::operator[] ( int  index) [inline]

Definition at line 75 of file Transform.h.

const float& rtabmap::Transform::operator[] ( int  index) const [inline]

Definition at line 76 of file Transform.h.

std::string rtabmap::Transform::prettyPrint ( ) const

Definition at line 274 of file Transform.cpp.

float rtabmap::Transform::r11 ( ) const [inline]

Definition at line 61 of file Transform.h.

float rtabmap::Transform::r12 ( ) const [inline]

Definition at line 62 of file Transform.h.

float rtabmap::Transform::r13 ( ) const [inline]

Definition at line 63 of file Transform.h.

float rtabmap::Transform::r21 ( ) const [inline]

Definition at line 64 of file Transform.h.

float rtabmap::Transform::r22 ( ) const [inline]

Definition at line 65 of file Transform.h.

float rtabmap::Transform::r23 ( ) const [inline]

Definition at line 66 of file Transform.h.

float rtabmap::Transform::r31 ( ) const [inline]

Definition at line 67 of file Transform.h.

float rtabmap::Transform::r32 ( ) const [inline]

Definition at line 68 of file Transform.h.

float rtabmap::Transform::r33 ( ) const [inline]

Definition at line 69 of file Transform.h.

Definition at line 174 of file Transform.cpp.

Definition at line 196 of file Transform.cpp.

Definition at line 157 of file Transform.cpp.

Definition at line 152 of file Transform.cpp.

int rtabmap::Transform::size ( ) const [inline]

Definition at line 89 of file Transform.h.

float rtabmap::Transform::theta ( ) const

Definition at line 162 of file Transform.cpp.

Definition at line 189 of file Transform.cpp.

Eigen::Affine3d rtabmap::Transform::toEigen3d ( ) const

Definition at line 349 of file Transform.cpp.

Eigen::Affine3f rtabmap::Transform::toEigen3f ( ) const

Definition at line 344 of file Transform.cpp.

Eigen::Matrix4d rtabmap::Transform::toEigen4d ( ) const

Definition at line 334 of file Transform.cpp.

Eigen::Matrix4f rtabmap::Transform::toEigen4f ( ) const

Definition at line 325 of file Transform.cpp.

Definition at line 182 of file Transform.cpp.

Definition at line 201 of file Transform.cpp.

float& rtabmap::Transform::x ( ) [inline]

Definition at line 91 of file Transform.h.

const float& rtabmap::Transform::x ( ) const [inline]

Definition at line 94 of file Transform.h.

float& rtabmap::Transform::y ( ) [inline]

Definition at line 92 of file Transform.h.

const float& rtabmap::Transform::y ( ) const [inline]

Definition at line 95 of file Transform.h.

float& rtabmap::Transform::z ( ) [inline]

Definition at line 93 of file Transform.h.

const float& rtabmap::Transform::z ( ) const [inline]

Definition at line 96 of file Transform.h.


Member Data Documentation

cv::Mat rtabmap::Transform::data_ [private]

Definition at line 153 of file Transform.h.


The documentation for this class was generated from the following files:


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jun 6 2019 21:59:42