AUTh-ARL Core Stack  0.7
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
arl::math::Pose Class Reference

Represents a pose in 3D space, i.e. a point of the SE(3) space. More...

#include <pose.h>

Collaboration diagram for arl::math::Pose:

Public Member Functions

 Pose ()
 
 Pose (const arma::mat &mat)
 
 ~Pose ()
 
arma::mat homogeneous ()
 Returns the homogeneous transformation of the pose which is a 4x4 matrix defined in (2.14) p. 45 Robotics, Doulgeri. More...
 
arma::vec quaternion ()
 Returns the orientation as quaternion w, x, y, z. More...
 

Public Attributes

arma::vec position
 A 3x1 vector for the position of the pose. More...
 
arma::mat rotation
 A 3x3 matrix for the orientation of the pose in the form of a rotation matrix. More...
 
std::string frame_a
 The frame a (the base frame) More...
 
std::string frame_b
 The frame b. The pose is actually the pose of the frame b with respect the frame a. More...
 

Detailed Description

Represents a pose in 3D space, i.e. a point of the SE(3) space.

TODO: add overloading of multiplication operator for transformations

Constructor & Destructor Documentation

arl::math::Pose::Pose ( )

Here is the call graph for this function:

arl::math::Pose::Pose ( const arma::mat &  mat)
explicit

Here is the call graph for this function:

arl::math::Pose::~Pose ( )

Member Function Documentation

mat arl::math::Pose::homogeneous ( )

Returns the homogeneous transformation of the pose which is a 4x4 matrix defined in (2.14) p. 45 Robotics, Doulgeri.

Returns
The homogeneous 4x4 matrix
vec arl::math::Pose::quaternion ( )

Returns the orientation as quaternion w, x, y, z.

Returns
The quaternion in w, x, y, z

Here is the call graph for this function:

Member Data Documentation

std::string arl::math::Pose::frame_a

The frame a (the base frame)

std::string arl::math::Pose::frame_b

The frame b. The pose is actually the pose of the frame b with respect the frame a.

arma::vec arl::math::Pose::position

A 3x1 vector for the position of the pose.

arma::mat arl::math::Pose::rotation

A 3x3 matrix for the orientation of the pose in the form of a rotation matrix.