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

TF_DENORMALIZED_QUATERNION

asked 2019-07-26 10:53:33 -0600

nana gravatar image

I am using package of aruco from this link aruco ros when I change the matrix "rotate_to_ros" in "aruco_ros_utils.cpp" to be [1 0 0;0 0 1;0 1 0] I have the following error:

Error:   TF_DENORMALIZED_QUATERNION: Ignoring transform for child_frame_id "marker_frame" from authority "unknown_publisher" because of an invalid quaternion in the transform (-0.029012 -0.264665 -0.742686 0.526990)
     at line 257 in /tmp/binarydeb/ros-kinetic-tf2-0.5.20/src/buffer_core.cpp

could any one help, please?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-01-08 23:27:50 -0600

Rufus gravatar image

updated 2020-01-08 23:48:40 -0600

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.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2019-07-26 10:53:33 -0600

Seen: 2,227 times

Last updated: Jan 08 '20