MRPT logo

mrpt::math::TPose3D Struct Reference

Lightweight 3D pose (three spatial coordinates, plus three angular coordinates). More...

#include <mrpt/math/lightweight_geom_data.h>

List of all members.

Public Member Functions

 TPose3D (const TPoint2D &p)
 Implicit constructor from TPoint2D.
 TPose3D (const TPose2D &p)
 Implicit constructor from TPose2D.
 TPose3D (const TPoint3D &p)
 Implicit constructor from TPoint3D.
 TPose3D (const mrpt::poses::CPose3D &p)
 Implicit constructor from heavyweight type.
 TPose3D (double _x, double _y, double _z, double _yaw, double _pitch, double _roll)
 Constructor from coordinates.
 TPose3D ()
 Default fast constructor.
double & operator[] (size_t i)
 Unsafe coordinate access using operator[].
const double & operator[] (size_t i) const
 Unsafe coordinate access using operator[].
double norm () const
 Pose's spatial coordinates norm.
void getAsVector (vector_double &v) const
 Gets the pose as a vector of doubles.

Public Attributes

double x
 X coordinate.
double y
 Y coordinate.
double z
 Z coordinate.
double yaw
 Yaw coordinate (rotation angle over Z axis).
double pitch
 Pitch coordinate (rotation angle over Y axis).
double roll
 Roll coordinate (rotation angle over X coordinate).


Detailed Description

Lightweight 3D pose (three spatial coordinates, plus three angular coordinates).

Allows coordinate access using [] operator.

See also:
mrpt::poses::CPose3D

Definition at line 321 of file lightweight_geom_data.h.


Constructor & Destructor Documentation

mrpt::math::TPose3D::TPose3D ( const TPoint2D p  ) 

Implicit constructor from TPoint2D.

Zeroes all the unprovided information.

See also:
TPoint2D

mrpt::math::TPose3D::TPose3D ( const TPose2D p  ) 

Implicit constructor from TPose2D.

Gets the yaw from the 2D pose's phi, zeroing all the unprovided information.

See also:
TPose2D

mrpt::math::TPose3D::TPose3D ( const TPoint3D p  ) 

Implicit constructor from TPoint3D.

Zeroes angular information.

See also:
TPoint3D

mrpt::math::TPose3D::TPose3D ( const mrpt::poses::CPose3D p  ) 

Implicit constructor from heavyweight type.

See also:
mrpt::poses::CPose3D

mrpt::math::TPose3D::TPose3D ( double  _x,
double  _y,
double  _z,
double  _yaw,
double  _pitch,
double  _roll 
) [inline]

Constructor from coordinates.

Definition at line 369 of file lightweight_geom_data.h.

mrpt::math::TPose3D::TPose3D (  )  [inline]

Default fast constructor.

Initializes to garbage.

Definition at line 373 of file lightweight_geom_data.h.


Member Function Documentation

void mrpt::math::TPose3D::getAsVector ( vector_double v  )  const [inline]

Gets the pose as a vector of doubles.

Definition at line 395 of file lightweight_geom_data.h.

double mrpt::math::TPose3D::norm (  )  const [inline]

Pose's spatial coordinates norm.

Definition at line 389 of file lightweight_geom_data.h.

References mrpt::utils::square().

const double& mrpt::math::TPose3D::operator[] ( size_t  i  )  const [inline]

Unsafe coordinate access using operator[].

Intended for loops.

Definition at line 383 of file lightweight_geom_data.h.

double& mrpt::math::TPose3D::operator[] ( size_t  i  )  [inline]

Unsafe coordinate access using operator[].

Intended for loops.

Definition at line 377 of file lightweight_geom_data.h.


Member Data Documentation

Pitch coordinate (rotation angle over Y axis).

Definition at line 341 of file lightweight_geom_data.h.

Referenced by mrpt::math::operator!=(), and mrpt::math::operator==().

Roll coordinate (rotation angle over X coordinate).

Definition at line 345 of file lightweight_geom_data.h.

Referenced by mrpt::math::operator!=(), and mrpt::math::operator==().

X coordinate.

Definition at line 325 of file lightweight_geom_data.h.

Referenced by mrpt::math::operator!=(), and mrpt::math::operator==().

Y coordinate.

Definition at line 329 of file lightweight_geom_data.h.

Referenced by mrpt::math::operator!=(), and mrpt::math::operator==().

Yaw coordinate (rotation angle over Z axis).

Definition at line 337 of file lightweight_geom_data.h.

Referenced by mrpt::math::operator!=(), and mrpt::math::operator==().

Z coordinate.

Definition at line 333 of file lightweight_geom_data.h.

Referenced by mrpt::math::operator!=(), and mrpt::math::operator==().




Page generated by Doxygen 1.5.9 for MRPT 0.7.1 SVN: at Mon Aug 17 22:21:34 EDT 2009