All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
gazebo::common::PoseKeyFrame Class Reference

A keyframe for a PoseAnimation. More...

#include <KeyFrame.hh>

Inheritance diagram for gazebo::common::PoseKeyFrame:
Inheritance graph
[legend]

Public Member Functions

 PoseKeyFrame (double _time)
 Constructor.
 
virtual ~PoseKeyFrame ()
 Destructor.
 
const math::QuaternionGetRotation () const
 Get the rotation of the keyframe.
 
const math::Vector3GetTranslation () const
 Get the translation of the keyframe.
 
void SetRotation (const math::Quaternion &_rot)
 Set the rotation for the keyframe.
 
void SetTranslation (const math::Vector3 &_trans)
 Set the translation for the keyframe.
 
- Public Member Functions inherited from gazebo::common::KeyFrame
 KeyFrame (double _time)
 Constructor.
 
virtual ~KeyFrame ()
 Destructor.
 
double GetTime () const
 Get the time of the keyframe.
 

Protected Attributes

math::Quaternion rotate
 the rotation quaternion
 
math::Vector3 translate
 the translation vector
 
- Protected Attributes inherited from gazebo::common::KeyFrame
double time
 time of key frame
 

Detailed Description

A keyframe for a PoseAnimation.

Constructor & Destructor Documentation

gazebo::common::PoseKeyFrame::PoseKeyFrame ( double  _time)

Constructor.

Parameters
[in]_timeof the keyframe
virtual gazebo::common::PoseKeyFrame::~PoseKeyFrame ( )
virtual

Destructor.

Member Function Documentation

const math::Quaternion& gazebo::common::PoseKeyFrame::GetRotation ( ) const

Get the rotation of the keyframe.

Returns
The rotation amount
const math::Vector3& gazebo::common::PoseKeyFrame::GetTranslation ( ) const

Get the translation of the keyframe.

Returns
The translation amount
void gazebo::common::PoseKeyFrame::SetRotation ( const math::Quaternion _rot)

Set the rotation for the keyframe.

Parameters
[in]_rotRotation amount
void gazebo::common::PoseKeyFrame::SetTranslation ( const math::Vector3 _trans)

Set the translation for the keyframe.

Parameters
[in]_transTranslation amount

Member Data Documentation

math::Quaternion gazebo::common::PoseKeyFrame::rotate
protected

the rotation quaternion

math::Vector3 gazebo::common::PoseKeyFrame::translate
protected

the translation vector


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