A keyframe for a PoseAnimation. More...
#include <KeyFrame.hh>
Public Member Functions | |
PoseKeyFrame (double _time) | |
Constructor. More... | |
virtual | ~PoseKeyFrame () |
Destructor. More... | |
const math::Quaternion & | GetRotation () const |
Get the rotation of the keyframe. More... | |
const math::Vector3 & | GetTranslation () const |
Get the translation of the keyframe. More... | |
void | SetRotation (const math::Quaternion &_rot) |
Set the rotation for the keyframe. More... | |
void | SetTranslation (const math::Vector3 &_trans) |
Set the translation for the keyframe. More... | |
Public Member Functions inherited from gazebo::common::KeyFrame | |
KeyFrame (double _time) | |
Constructor. More... | |
virtual | ~KeyFrame () |
Destructor. More... | |
double | GetTime () const |
Get the time of the keyframe. More... | |
Protected Attributes | |
math::Quaternion | rotate |
the rotation quaternion More... | |
math::Vector3 | translate |
the translation vector More... | |
Protected Attributes inherited from gazebo::common::KeyFrame | |
double | time |
time of key frame More... | |
A keyframe for a PoseAnimation.
gazebo::common::PoseKeyFrame::PoseKeyFrame | ( | double | _time | ) |
Constructor.
[in] | _time | of the keyframe |
|
virtual |
Destructor.
const math::Quaternion& gazebo::common::PoseKeyFrame::GetRotation | ( | ) | const |
Get the rotation of the keyframe.
const math::Vector3& gazebo::common::PoseKeyFrame::GetTranslation | ( | ) | const |
Get the translation of the keyframe.
void gazebo::common::PoseKeyFrame::SetRotation | ( | const math::Quaternion & | _rot | ) |
Set the rotation for the keyframe.
[in] | _rot | Rotation amount |
void gazebo::common::PoseKeyFrame::SetTranslation | ( | const math::Vector3 & | _trans | ) |
Set the translation for the keyframe.
[in] | _trans | Translation amount |
|
protected |
the rotation quaternion
|
protected |
the translation vector