NodeAnimation.hh
Go to the documentation of this file.
void SetName(const std::string &_name)
Changes the name of the animation.
void AddKeyFrame(const double _time, const math::Pose3d &_pose)
Adds a key frame at a specific time.
void AddKeyFrame(const double _time, const math::Matrix4d &_trans)
Adds a key frame at a specific time.
std::pair< double, math::Matrix4d > KeyFrame(const unsigned int _i) const
Returns a key frame using the index. Note the index of a key frame can change as frames are added.
void KeyFrame(const unsigned int _i, double &_time, math::Matrix4d &_trans) const
Finds a key frame using the index. Note the index of a key frame can change as frames are added.
double TimeAtX(const double _x) const
Returns the time where a transformation's translational value along the X axis is equal to _x....
void Scale(const double _scale)
Scales each transformation in the key frames. This only affects the translational values.
unsigned int FrameCount() const
Returns the number of key frames.
ignition::math::Matrix4d FrameAt(const double _time, const bool _loop=true) const
Returns a frame transformation at a specific time if a node does not exist at that time (with toleran...
Forward declarations for the common classes.