NodeTransform Skeleton.hh common/common.hh More...
#include <Skeleton.hh>
Public Types | |
enum | TransformType { TRANSLATE, ROTATE, SCALE, MATRIX } |
Enumeration of the transform types. More... | |
Public Member Functions | |
NodeTransform (TransformType _type=MATRIX) | |
Constructor. More... | |
NodeTransform (math::Matrix4 _mat, std::string _sid="_default_", TransformType _type=MATRIX) | |
Constructor. More... | |
~NodeTransform () | |
Destructor. It does nothing. More... | |
math::Matrix4 | Get () |
Returns the transformation matrix. More... | |
std::string | GetSID () |
Returns thr SID. More... | |
TransformType | GetType () |
Returns the transformation type. More... | |
math::Matrix4 | operator() () |
Matrix cast operator. More... | |
math::Matrix4 | operator* (NodeTransform _t) |
Node transform multiplication operator. More... | |
math::Matrix4 | operator* (math::Matrix4 _m) |
Matrix multiplication operator. More... | |
void | PrintSource () |
Prints the transform matrix to std::err stream. More... | |
void | RecalculateMatrix () |
Sets the transform matrix from the source according to the type. More... | |
void | Set (math::Matrix4 _mat) |
Assign a transformation. More... | |
void | SetComponent (unsigned int _idx, double _value) |
Set a transformation matrix component value. More... | |
void | SetSID (std::string _sid) |
Set the SID. More... | |
void | SetSourceValues (math::Matrix4 _mat) |
Set source data values _ param[in] _mat the values. More... | |
void | SetSourceValues (math::Vector3 _vec) |
Set source data values. More... | |
void | SetSourceValues (math::Vector3 _axis, double _angle) |
Sets source matrix values from roation. More... | |
void | SetType (TransformType _type) |
Set transform type. More... | |
Protected Attributes | |
std::string | sid |
the sid More... | |
std::vector< double > | source |
source data values (can be a matrix, a position or rotation) More... | |
math::Matrix4 | transform |
transform More... | |
TransformType | type |
transform type More... | |
NodeTransform Skeleton.hh common/common.hh
A transformation node
gazebo::common::NodeTransform::NodeTransform | ( | TransformType | _type = MATRIX ) |
Constructor.
[in] | _type | the type of transform |
gazebo::common::NodeTransform::NodeTransform | ( | math::Matrix4 | _mat, |
std::string | _sid = "_default_" , |
||
TransformType | _type = MATRIX |
||
) |
Constructor.
[in] | _mat | the matrix |
[in] | _sid | identifier |
[in] | _type | the type of transform |
gazebo::common::NodeTransform::~NodeTransform | ( | ) |
Destructor. It does nothing.
math::Matrix4 gazebo::common::NodeTransform::Get | ( | ) |
Returns the transformation matrix.
std::string gazebo::common::NodeTransform::GetSID | ( | ) |
Returns thr SID.
TransformType gazebo::common::NodeTransform::GetType | ( | ) |
Returns the transformation type.
math::Matrix4 gazebo::common::NodeTransform::operator() | ( | ) |
Matrix cast operator.
math::Matrix4 gazebo::common::NodeTransform::operator* | ( | NodeTransform | _t) |
Node transform multiplication operator.
[in] | _t | a transform |
math::Matrix4 gazebo::common::NodeTransform::operator* | ( | math::Matrix4 | _m) |
Matrix multiplication operator.
[in] | _m | a matrix |
void gazebo::common::NodeTransform::PrintSource | ( | ) |
Prints the transform matrix to std::err stream.
void gazebo::common::NodeTransform::RecalculateMatrix | ( | ) |
Sets the transform matrix from the source according to the type.
void gazebo::common::NodeTransform::Set | ( | math::Matrix4 | _mat) |
Assign a transformation.
[in] | _mat | the transform |
void gazebo::common::NodeTransform::SetComponent | ( | unsigned int | _idx, |
double | _value | ||
) |
Set a transformation matrix component value.
[in] | _idx | the component index |
[in] | _value | the value |
void gazebo::common::NodeTransform::SetSID | ( | std::string | _sid) |
Set the SID.
[in] | _sid | the sid |
void gazebo::common::NodeTransform::SetSourceValues | ( | math::Matrix4 | _mat) |
Set source data values _ param[in] _mat the values.
void gazebo::common::NodeTransform::SetSourceValues | ( | math::Vector3 | _vec) |
Set source data values.
void gazebo::common::NodeTransform::SetSourceValues | ( | math::Vector3 | _axis, |
double | _angle | ||
) |
Sets source matrix values from roation.
[in] | _axis | of rotation |
[in] | _angle | of rotation |
void gazebo::common::NodeTransform::SetType | ( | TransformType | _type) |
Set transform type.
[in] | _type | the type |
|
protected |
the sid
|
protected |
source data values (can be a matrix, a position or rotation)
|
protected |
transform
|
protected |
transform type