GCOP  1.0
Public Member Functions | Public Attributes
gcop_urdf::Rotation Class Reference

#include <pose.h>

List of all members.

Public Member Functions

 Rotation (double _x, double _y, double _z, double _w)
 Rotation ()
void getQuaternion (double &quat_x, double &quat_y, double &quat_z, double &quat_w) const
void getRPY (double &roll, double &pitch, double &yaw) const
void setFromQuaternion (double quat_x, double quat_y, double quat_z, double quat_w)
void setFromRPY (double roll, double pitch, double yaw)
bool init (const std::string &rotation_str)
void clear ()
void normalize ()
Rotation operator* (const Rotation &qt) const
Vector3 operator* (Vector3 vec) const
 Rotate a vector using the quaternion.
Rotation GetInverse () const

Public Attributes

double x
double y
double z
double w

Constructor & Destructor Documentation

gcop_urdf::Rotation::Rotation ( double  _x,
double  _y,
double  _z,
double  _w 
) [inline]

References w, x, y, and z.

References clear().


Member Function Documentation

void gcop_urdf::Rotation::clear ( ) [inline]

References w, x, y, and z.

Referenced by gcop_urdf::Pose::clear(), init(), gcop_urdf::Pose::initXml(), and Rotation().

References w, x, y, and z.

Referenced by gcop_urdf::Pose::GetInverse(), and operator*().

void gcop_urdf::Rotation::getQuaternion ( double &  quat_x,
double &  quat_y,
double &  quat_z,
double &  quat_w 
) const [inline]

References w, x, y, and z.

void gcop_urdf::Rotation::getRPY ( double &  roll,
double &  pitch,
double &  yaw 
) const [inline]

References w, x, y, and z.

bool gcop_urdf::Rotation::init ( const std::string &  rotation_str) [inline]
void gcop_urdf::Rotation::normalize ( ) [inline]

References w, x, y, and z.

Referenced by setFromQuaternion(), and setFromRPY().

Rotation gcop_urdf::Rotation::operator* ( const Rotation qt) const [inline]

References w, x, y, and z.

Vector3 gcop_urdf::Rotation::operator* ( Vector3  vec) const [inline]

Rotate a vector using the quaternion.

References GetInverse(), w, gcop_urdf::Vector3::x, x, gcop_urdf::Vector3::y, y, gcop_urdf::Vector3::z, and z.

void gcop_urdf::Rotation::setFromQuaternion ( double  quat_x,
double  quat_y,
double  quat_z,
double  quat_w 
) [inline]

References normalize(), w, x, y, and z.

void gcop_urdf::Rotation::setFromRPY ( double  roll,
double  pitch,
double  yaw 
) [inline]

References normalize(), w, x, y, and z.

Referenced by init().


Member Data Documentation


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