A keyframe for a PoseAnimation. More...
#include <KeyFrame.hh>
Public Member Functions | |
PoseKeyFrame (double _time) | |
Constructor. | |
virtual | ~PoseKeyFrame () |
Destructor. | |
const math::Quaternion & | GetRotation () const |
Get the rotation of the keyframe. | |
const math::Vector3 & | GetTranslation () 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 | |
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