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

Use the following line to re-normalize the quaternion of a transform, usually required after multiplying multiple transforms

my_tf.setRotation(my_tf.getRotation().normalize());

Use the following line to re-normalize the quaternion of a transform, usually required after multiplying multiple transforms

my_tf.setRotation(my_tf.getRotation().normalize());

However, a more likely case is that you are trying to work with an uninitialized transform.