Public Member Functions | Static Public Member Functions | Public Attributes
AISNavigation::Transformation2< T > Struct Template Reference

A class to represent 2D transformations (rotation and translation) More...

#include <transformation2.hh>

List of all members.

Public Member Functions

Transformation2< T > inv () const
rotation () const
void setRotation (const T &theta)
void setTranslation (const Vector2< T > &t)
void setTranslation (const T &x, const T &y)
Pose2< T > toPoseType () const
 Transformation2 (bool initAsIdentity=true)
 Transformation2 (const T &x, const T &y, const T &theta)
 Transformation2 (const T &_theta, const Vector2< T > &trans)
 Transformation2 (const Pose2< T > &v)
Vector2< T > translation () const

Static Public Member Functions

static Transformation2< T > identity ()

Public Attributes

rotationMatrix [2][2]
 the rotation matrix
translationVector [2]
 the translation vector

Detailed Description

template<class T>
struct AISNavigation::Transformation2< T >

A class to represent 2D transformations (rotation and translation)

Definition at line 161 of file transformation2.hh.


Constructor & Destructor Documentation

template<class T>
AISNavigation::Transformation2< T >::Transformation2 ( bool  initAsIdentity = true) [inline]

Default constructor

Parameters:
initAsIdentityif true (default) the transormation is the identity, otherwise no initializtion

Definition at line 168 of file transformation2.hh.

template<class T>
AISNavigation::Transformation2< T >::Transformation2 ( const T &  x,
const T &  y,
const T &  theta 
) [inline]

Constructor that sets the translation and rotation

Definition at line 184 of file transformation2.hh.

template<class T>
AISNavigation::Transformation2< T >::Transformation2 ( const T &  _theta,
const Vector2< T > &  trans 
) [inline]

Constructor that sets the translation and rotation

Definition at line 190 of file transformation2.hh.

template<class T>
AISNavigation::Transformation2< T >::Transformation2 ( const Pose2< T > &  v) [inline]

Copy constructor

Definition at line 195 of file transformation2.hh.


Member Function Documentation

template<class T>
static Transformation2<T> AISNavigation::Transformation2< T >::identity ( ) [inline, static]
Returns:
Identity transformation

Definition at line 178 of file transformation2.hh.

template<class T>
Transformation2<T> AISNavigation::Transformation2< T >::inv ( ) const [inline]

Computes the inveres of the transformation

Definition at line 239 of file transformation2.hh.

template<class T>
T AISNavigation::Transformation2< T >::rotation ( ) const [inline]

Get the rotation

Definition at line 208 of file transformation2.hh.

template<class T>
void AISNavigation::Transformation2< T >::setRotation ( const T &  theta) [inline]

Set the rotation

Definition at line 226 of file transformation2.hh.

template<class T>
void AISNavigation::Transformation2< T >::setTranslation ( const Vector2< T > &  t) [inline]

Set the translation

Definition at line 221 of file transformation2.hh.

template<class T>
void AISNavigation::Transformation2< T >::setTranslation ( const T &  x,
const T &  y 
) [inline]

Set the translation

Definition at line 233 of file transformation2.hh.

template<class T>
Pose2<T> AISNavigation::Transformation2< T >::toPoseType ( ) const [inline]

Computed the Pose based on the translation and rotation

Definition at line 213 of file transformation2.hh.

template<class T>
Vector2<T> AISNavigation::Transformation2< T >::translation ( ) const [inline]

Get the translation

Definition at line 202 of file transformation2.hh.


Member Data Documentation

template<class T>
T AISNavigation::Transformation2< T >::rotationMatrix[2][2]

the rotation matrix

Definition at line 162 of file transformation2.hh.

template<class T>
T AISNavigation::Transformation2< T >::translationVector[2]

the translation vector

Definition at line 163 of file transformation2.hh.


The documentation for this struct was generated from the following file:


rtabmap
Author(s): Mathieu Labbe
autogenerated on Fri Aug 28 2015 12:51:43