A pose animation.
More...
#include <Animation.hh>
|
| PoseAnimation (const std::string &_name, double _length, bool _loop) |
| Constructor.
|
|
virtual | ~PoseAnimation () |
| Destructor.
|
|
PoseKeyFrame * | CreateKeyFrame (double _time) |
| Create a pose keyframe at the given time.
|
|
void | GetInterpolatedKeyFrame (PoseKeyFrame &_kf) const |
| Get a keyframe using the animation's current time.
|
|
| Animation (const std::string &_name, double _length, bool _loop) |
| Constructor.
|
|
virtual | ~Animation () |
| Destructor.
|
|
void | AddTime (double _time) |
| Add time to the animation.
|
|
KeyFrame * | GetKeyFrame (unsigned int _index) const |
| Get a key frame using an index value.
|
|
unsigned int | GetKeyFrameCount () const |
| Return the number of key frames in the animation.
|
|
double | GetLength () const |
| Return the duration of the animation.
|
|
double | GetTime () const |
| Return the current time position.
|
|
void | SetLength (double _len) |
| Set the duration of the animation.
|
|
void | SetTime (double _time) |
| Set the current time position of the animation.
|
|
|
typedef std::vector< KeyFrame * > | KeyFrame_V |
| array of keyframe type alias
|
|
bool | build |
| determines if the interpolation splines need building
|
|
KeyFrame_V | keyFrames |
| array of key frames
|
|
double | length |
| animation duration
|
|
bool | loop |
| true if animation repeats
|
|
std::string | name |
| animation name
|
|
double | timePos |
| current time position
|
|
gazebo::common::PoseAnimation::PoseAnimation |
( |
const std::string & |
_name, |
|
|
double |
_length, |
|
|
bool |
_loop |
|
) |
| |
Constructor.
- Parameters
-
[in] | _name | String name of the animation. This should be unique. |
[in] | _length | Length of the animation in seconds |
[in] | _loop | True == loop the animation |
virtual gazebo::common::PoseAnimation::~PoseAnimation |
( |
| ) |
|
|
virtual |
void gazebo::common::PoseAnimation::BuildInterpolationSplines |
( |
| ) |
const |
|
protected |
PoseKeyFrame* gazebo::common::PoseAnimation::CreateKeyFrame |
( |
double |
_time | ) |
|
Create a pose keyframe at the given time.
- Parameters
-
[in] | _time | Time at which to create the keyframe |
- Returns
- Pointer to the new keyframe
void gazebo::common::PoseAnimation::GetInterpolatedKeyFrame |
( |
PoseKeyFrame & |
_kf | ) |
const |
Get a keyframe using the animation's current time.
- Parameters
-
[out] | _kf | PoseKeyFrame reference to hold the interpolated result |
void gazebo::common::PoseAnimation::GetInterpolatedKeyFrame |
( |
double |
_time, |
|
|
PoseKeyFrame & |
_kf |
|
) |
| const |
|
protected |
Get a keyframe using a passed in time.
- Parameters
-
[in] | _time | Time in seconds |
[out] | _kf | PoseKeyFrame reference to hold the interpolated result |
The documentation for this class was generated from the following file: