17 #ifndef _ANIMATION_HH_
18 #define _ANIMATION_HH_
53 public:
Animation(
const std::string &_name,
double _length,
bool _loop);
60 public:
double GetLength()
const;
64 public:
void SetLength(
double _len);
68 public:
void SetTime(
double _time);
72 public:
void AddTime(
double _time);
76 public:
double GetTime()
const;
80 public:
unsigned int GetKeyFrameCount()
const;
85 public:
KeyFrame* GetKeyFrame(
unsigned int _index)
const;
93 protected:
double GetKeyFramesAtTime(
double _time,
KeyFrame **_kf1,
95 unsigned int &_firstKeyIndex)
const;
99 protected: std::string
name;
132 double _length,
bool _loop);
144 public:
void GetInterpolatedKeyFrame(
PoseKeyFrame &_kf)
const;
149 protected:
void GetInterpolatedKeyFrame(
double _time,
153 protected:
void BuildInterpolationSplines()
const;
174 double _length,
bool _loop);
double length
animation duration
Definition: Animation.hh:102
A numeric animation.
Definition: Animation.hh:167
bool loop
true if animation repeats
Definition: Animation.hh:111
A keyframe for a NumericAnimation.
Definition: KeyFrame.hh:84
std::string name
animation name
Definition: Animation.hh:99
double timePos
current time position
Definition: Animation.hh:105
Manages an animation, which is a collection of keyframes and the ability to interpolate between the k...
Definition: Animation.hh:47
Splines.
Definition: Spline.hh:37
std::vector< KeyFrame * > KeyFrame_V
array of keyframe type alias
Definition: Animation.hh:114
A keyframe for a PoseAnimation.
Definition: KeyFrame.hh:51
Spline for rotations.
Definition: RotationSpline.hh:33
A key frame in an animation.
Definition: KeyFrame.hh:33
A pose animation.
Definition: Animation.hh:125
bool build
determines if the interpolation splines need building
Definition: Animation.hh:108
KeyFrame_V keyFrames
array of key frames
Definition: Animation.hh:117
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48