OpenWalker Project
Documentation of the ROS Packages
Public Types | Public Member Functions | Protected Attributes | List of all members
ow_core::AngularPosition< _Scalar > Class Template Reference

The AngularPosition class. More...

#include <angular_position.h>

Inheritance diagram for ow_core::AngularPosition< _Scalar >:
ow_core::AngularPositionRef< Eigen::Matrix< _Scalar, 4, 1 > > ow_core::QuaternionRef< Eigen::Matrix< _Scalar, 4, 1 > > Eigen::QuaternionRef< Eigen::Matrix< _Scalar, 4, 1 > >

Public Types

typedef _Scalar Scalar
 
typedef Eigen::Matrix< Scalar, 4, 1 > Derived
 
typedef AngularPositionRef< Derived > Base
 
- Public Types inherited from ow_core::AngularPositionRef< Eigen::Matrix< _Scalar, 4, 1 > >
typedef Eigen::Matrix< _Scalar, 4, 1 > Derived
 
typedef QuaternionRef< Derived > Base
 
- Public Types inherited from ow_core::QuaternionRef< Eigen::Matrix< _Scalar, 4, 1 > >
typedef Eigen::Matrix< _Scalar, 4, 1 > Derived
 
typedef Eigen::QuaternionRef< Derived > Base
 
- Public Types inherited from Eigen::QuaternionRef< Eigen::Matrix< _Scalar, 4, 1 > >
typedef Eigen::Matrix< _Scalar, 4, 1 > Derived
 
typedef Eigen::QuaternionBase< QuaternionRef< Eigen::Matrix< _Scalar, 4, 1 > > > Base
 
typedef Eigen::internal::traits< QuaternionRef >::Coefficients Coefficients
 

Public Member Functions

 AngularPosition ()
 Default Constructor.
 
 AngularPosition (const Scalar &w, const Scalar &x, const Scalar &y, const Scalar &z)
 Assignment from Scalar values. More...
 
template<typename OtherDerived >
 AngularPosition (const Eigen::EigenBase< OtherDerived > &other)
 Copy constructor from EigenBase.
 
template<typename OtherDerived >
 AngularPosition (const Eigen::QuaternionBase< OtherDerived > &other)
 Copy constructor from QuaternionBase.
 
- Public Member Functions inherited from ow_core::AngularPositionRef< Eigen::Matrix< _Scalar, 4, 1 > >
 AngularPositionRef (Derived &ref, int startRow=0, int startCol=0)
 Default Constructor. More...
 
void operator= (const tf::Quaternion &q)
 Assignment of tf::Quaternion. More...
 
void operator= (const geometry_msgs::Quaternion &q)
 Assignment of geometry_msgs::Quaternion. More...
 
void operator= (const tf::Matrix3x3 &other)
 Assignment of tf::Matrix3x3.
 
 operator tf::Quaternion () const
 Conversion to tf::Quaternion.
 
 operator geometry_msgs::Quaternion () const
 Conversion to geometry_msgs::Quaternion.
 
 operator tf::Matrix3x3 () const
 Conversion to tf::Matrix3x3.
 
tf::Quaternion toQuaternionTF ()
 Conversion to tf::Quaternion.
 
geometry_msgs::Quaternion toQuaternionMsg ()
 Conversion to geometry_msgs::Quaternion.
 
tf::Matrix3x3 toMatrixTF ()
 Conversion to tf::Matrix3x3.
 
- Public Member Functions inherited from ow_core::QuaternionRef< Eigen::Matrix< _Scalar, 4, 1 > >
 QuaternionRef (Derived &ref, int startRow=0, int startCol=0)
 Default Constructor. More...
 
- Public Member Functions inherited from Eigen::QuaternionRef< Eigen::Matrix< _Scalar, 4, 1 > >
 QuaternionRef (Derived &ref, int startRow=0, int startCol=0)
 Default Constructor. More...
 
Coefficients & coeffs ()
 Get quaternion coefficients. More...
 
const Coefficients & coeffs () const
 Get quaternion coefficients. More...
 
std::string toString () const
 Conversion to std::string.
 

Protected Attributes

Derived data_
 
- Protected Attributes inherited from Eigen::QuaternionRef< Eigen::Matrix< _Scalar, 4, 1 > >
Coefficients coeffs_
 The quaternion coefficients in a Eigen::Block.
 

Detailed Description

template<typename _Scalar>
class ow_core::AngularPosition< _Scalar >

The AngularPosition class.

The AngularPosition is of type Eigen::Quaternion and is represented by the math symbol $\mathbf{Q}$.

Constructor & Destructor Documentation

template<typename _Scalar>
ow_core::AngularPosition< _Scalar >::AngularPosition ( const Scalar &  w,
const Scalar &  x,
const Scalar &  y,
const Scalar &  z 
)
inline

Assignment from Scalar values.

Internally the coefficients are stored in the following order: [x, y, z, w]


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