ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The tf.TransformerROS class has a fromTranslationRotation method that will turn a translation and quaternion into a 4x4 matrix representation. If you set the translation to zero then it will give you just the rotation in the matrix.

The tf.TransformerROS class has a fromTranslationRotation method that will turn a translation and quaternion into a 4x4 matrix representation. If you set the translation to zero then it will give you just the rotation in the matrix.matrix. The asMatrix method is also relevant if you have just the target frame, because it will also do the lookup for you.