17 #ifndef _SKELETONANIMATION_HH_
18 #define _SKELETONANIMATION_HH_
48 public:
void SetName(
const std::string& _name);
52 public: std::string GetName()
const;
57 public:
void AddKeyFrame(
const double _time,
const math::Matrix4 &_trans);
62 public:
void AddKeyFrame(
const double _time,
const math::Pose &_pose);
66 public:
unsigned int GetFrameCount()
const;
74 public:
void GetKeyFrame(
const unsigned int _i,
double& _time,
82 public: std::pair<double, math::Matrix4> GetKeyFrame(
83 const unsigned int _i)
const;
87 public:
double GetLength()
const;
95 public:
math::Matrix4 GetFrameAt(
double _time,
bool _loop =
true)
const;
100 public:
void Scale(
const double _scale);
108 public:
double GetTimeAtX(
const double _x)
const;
133 public:
void SetName(
const std::string& _name);
137 public: std::string GetName()
const;
141 public:
unsigned int GetNodeCount()
const;
146 public:
bool HasNode(
const std::string& _node)
const;
152 public:
void AddKeyFrame(
const std::string& _node,
const double _time,
159 public:
void AddKeyFrame(
const std::string& _node,
const double _time,
171 public:
math::Matrix4 GetNodePoseAt(
const std::string& _node,
172 const double _time,
const bool _loop =
true);
182 public: std::map<std::string, math::Matrix4> GetPoseAt(
const double _time,
183 const bool _loop =
true)
const;
193 public: std::map<std::string, math::Matrix4> GetPoseAtX(
const double _x,
194 const std::string& _node,
const bool _loop =
true)
const;
198 public:
void Scale(
const double _scale);
202 public:
double GetLength()
const;
Encapsulates a position and rotation in three space.
Definition: Pose.hh:40
Skeleton animation.
Definition: SkeletonAnimation.hh:121
double length
the duration of the animations (time of last key frame)
Definition: SkeletonAnimation.hh:117
A 3x3 matrix class.
Definition: Matrix4.hh:39
std::map< std::string, NodeAnimation * > animations
a dictionary of node animations
Definition: SkeletonAnimation.hh:211
std::string name
the name of the animation
Definition: SkeletonAnimation.hh:111
std::map< double, math::Matrix4 > keyFrames
the dictionary of key frames, indexed by time
Definition: SkeletonAnimation.hh:114
std::string name
the node name
Definition: SkeletonAnimation.hh:205
Node animation.
Definition: SkeletonAnimation.hh:37
double length
the duration of the longest animation
Definition: SkeletonAnimation.hh:208
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48