Gazebo Common

API Reference

6.0.1
PoseKeyFrame Class Reference

A keyframe for a PoseAnimation. More...

#include <KeyFrame.hh>

Public Member Functions

 PoseKeyFrame (const double _time)
 Constructor.
 
virtual ~PoseKeyFrame ()
 Destructor.
 
const math::QuaterniondRotation () const
 Get the rotation of the keyframe.
 
void Rotation (const math::Quaterniond &_rot)
 Set the rotation for the keyframe.
 
const math::Vector3dTranslation () const
 Get the translation of the keyframe.
 
void Translation (const math::Vector3d &_trans)
 Set the translation for the keyframe.
 
- Public Member Functions inherited from KeyFrame
 KeyFrame (const double _time)
 Constructor.
 
virtual ~KeyFrame ()
 Destructor.
 
double Time () const
 Get the time of the keyframe.
 

Detailed Description

A keyframe for a PoseAnimation.

Constructor & Destructor Documentation

◆ PoseKeyFrame()

PoseKeyFrame ( const double  _time)
explicit

Constructor.

Parameters
[in]_timeof the keyframe

◆ ~PoseKeyFrame()

virtual ~PoseKeyFrame ( )
virtual

Destructor.

Member Function Documentation

◆ Rotation() [1/2]

const math::Quaterniond & Rotation ( ) const

Get the rotation of the keyframe.

Returns
The rotation amount

◆ Rotation() [2/2]

void Rotation ( const math::Quaterniond _rot)

Set the rotation for the keyframe.

Parameters
[in]_rotRotation amount

◆ Translation() [1/2]

const math::Vector3d & Translation ( ) const

Get the translation of the keyframe.

Returns
The translation amount

◆ Translation() [2/2]

void Translation ( const math::Vector3d _trans)

Set the translation for the keyframe.

Parameters
[in]_transTranslation amount

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