Gazebo Common

API Reference

3.17.0
NodeTransform Class Reference

A transformation node. More...

#include <ignition/common/NodeTransform.hh>

Public Member Functions

 NodeTransform (const math::Matrix4d &_mat, const std::string &_sid="_default_", const NodeTransformType _type=MATRIX)
 Constructor. More...
 
 NodeTransform (const NodeTransform &_other)
 Copy constructor. More...
 
 NodeTransform (const NodeTransformType _type=MATRIX)
 Constructor. More...
 
 ~NodeTransform ()
 Destructor. More...
 
math::Matrix4d Get () const
 Returns the transformation matrix. More...
 
math::Matrix4d operator() () const
 Matrix cast operator. More...
 
math::Matrix4d operator* (const math::Matrix4d &_m) const
 Matrix multiplication operator. More...
 
math::Matrix4d operator* (const NodeTransform &_t) const
 Node transform multiplication operator. More...
 
NodeTransformoperator= (const NodeTransform &_other)
 Copy assignment. More...
 
void PrintSource () const
 Prints the transform matrix to standard out. More...
 
void RecalculateMatrix ()
 Sets the transform matrix from the source according to the type. More...
 
void Set (const math::Matrix4d &_mat)
 Assign a transformation. More...
 
void SetComponent (const unsigned int _idx, const double _value)
 Set a transformation matrix component value. More...
 
void SetSID (const std::string &_sid)
 Set the SID. More...
 
void SetSourceValues (const math::Matrix4d &_mat)
 Set source data values. More...
 
void SetSourceValues (const math::Vector3d &_axis, const double _angle)
 Sets source matrix values from roation. More...
 
void SetSourceValues (const math::Vector3d &_vec)
 Set source data values. More...
 
void SetType (const NodeTransformType _type)
 Set transform type. More...
 
std::string SID () const
 Returns the SID. More...
 
NodeTransformType Type () const
 Returns the transformation type. More...
 

Detailed Description

A transformation node.

Constructor & Destructor Documentation

◆ NodeTransform() [1/3]

NodeTransform ( const NodeTransformType  _type = MATRIX)
explicit

Constructor.

Parameters
[in]_typethe type of transform

◆ NodeTransform() [2/3]

NodeTransform ( const NodeTransform _other)

Copy constructor.

Parameters
[in]_otherNodeTransform to copy

◆ NodeTransform() [3/3]

NodeTransform ( const math::Matrix4d _mat,
const std::string _sid = "_default_",
const NodeTransformType  _type = MATRIX 
)

Constructor.

Parameters
[in]_matthe matrix
[in]_sididentifier
[in]_typethe type of transform

◆ ~NodeTransform()

Destructor.

Member Function Documentation

◆ Get()

math::Matrix4d Get ( ) const

Returns the transformation matrix.

Returns
the matrix

◆ operator()()

math::Matrix4d operator() ( ) const

Matrix cast operator.

Returns
the transform

◆ operator*() [1/2]

math::Matrix4d operator* ( const math::Matrix4d _m) const

Matrix multiplication operator.

Parameters
[in]_ma matrix
Returns
transform matrix multiplied by _m

◆ operator*() [2/2]

math::Matrix4d operator* ( const NodeTransform _t) const

Node transform multiplication operator.

Parameters
[in]_ta transform
Returns
transform matrix multiplied by _t's transform

◆ operator=()

NodeTransform& operator= ( const NodeTransform _other)

Copy assignment.

Parameters
[in]_therNodeTransform to copy

◆ PrintSource()

void PrintSource ( ) const

Prints the transform matrix to standard out.

◆ RecalculateMatrix()

void RecalculateMatrix ( )

Sets the transform matrix from the source according to the type.

◆ Set()

void Set ( const math::Matrix4d _mat)

Assign a transformation.

Parameters
[in]_matthe transform

◆ SetComponent()

void SetComponent ( const unsigned int  _idx,
const double  _value 
)

Set a transformation matrix component value.

Parameters
[in]_idxthe component index
[in]_valuethe value

◆ SetSID()

void SetSID ( const std::string _sid)

Set the SID.

Parameters
[in]_sidthe sid

◆ SetSourceValues() [1/3]

void SetSourceValues ( const math::Matrix4d _mat)

Set source data values.

Parameters
[in]_matthe values

◆ SetSourceValues() [2/3]

void SetSourceValues ( const math::Vector3d _axis,
const double  _angle 
)

Sets source matrix values from roation.

Parameters
[in]_axisof rotation
[in]_angleof rotation

◆ SetSourceValues() [3/3]

void SetSourceValues ( const math::Vector3d _vec)

Set source data values.

Parameters
[in]_vecthe values

◆ SetType()

void SetType ( const NodeTransformType  _type)

Set transform type.

Parameters
[in]_typethe type

◆ SID()

std::string SID ( ) const

Returns the SID.

Returns
the SID

◆ Type()

NodeTransformType Type ( ) const

Returns the transformation type.

Returns
the type

The documentation for this class was generated from the following file: