1. Problem
HDL locationing Error:
Error: TF_DENORMALIZED_QUATERNION: Ignoring transform for
child_frame_id “odom” from authority “unknown_publisher” because of an
invalid quaternion in the transform (0.0 0.0 0.983641 0.122190)
2. Solution
From the error report can be seen, the tip is a quadratic number of problems, the key is to say that there is no normalization, the release of TF has strict requirements, the quadratic number must be normalized, that is, xyzw squared and equal to 1, if not equal to the error reported above, a simple calculation, the above error tip quadratic number is: (0.0 0.0 0.983641 0.122190), that is, 0.98364 1 2 + 0.12219 0 2 = 0.982480012981 0.983641^2 + 0.122190 ^2 = 0.9824800129810.983641^2 + 0.122190^2 = 0.982480012981, obviously not equal to 1, so there will be the above problem, the solution is also simple, before the output Do a normalization process can be.
Eigen::Quaterniond quatern = {0.0 0.0 0.983641 0.122190}; // w x y z
quatern.normalize();
odom_trans.transform.rotation.x = quatern.x();
odom_trans.transform.rotation.y = quatern.y();
odom_trans.transform.rotation.z = quatern.z();
odom_trans.transform.rotation.w = quatern.w();
odom_trans.header.stamp = stamp;
odom_trans.header.frame_id = "map";
odom_trans.child_frame_id = odom_child_frame_id;
tf_broadcaster.sendTransform(odom_trans);
Read More:
- TensorFlow tf.keras.losses .MeanSquaredError
- [Solved] No tf data. Actual error: Fixed Frame [world] does not exist
- Tensorflow C++:You must define TF_LIB_GTL_ALIGNED_CHAR_ARRAY for your compiler
- [Solved] Tensorflow-gpu Error: self._traceback = tf_stack.extract_stack()
- [Solved] TF2.4 Error: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize
- tf.nn.dilation2d Call Error: TypeError: dilation2d_v1() got an unexpected keyword argument ‘data_format’
- [Solved] Tensorflow error or keras error and tf.keras error: oom video memory is insufficient
- ValueError: Floating point image RGB values must be in the 0..1 range.
- [Solved] error: #error “Please include Eigen/Geometry instead of including headers inside the src directory d
- ROS2 Navigation Run TurtleBot Simulator Error [Solved]
- [Solved] fatal error: Eigen/Geometry: No such file or directory
- How to Solve Excel Error Log 1: Data format error
- Kettle Error Caused by: java.lang.ArrayIndexOutOfBoundsException
- Start failure: spawn CMD enoent error (How to Fix)
- [Solved] Unity Import Xcode Project Error: iOS framework addition failed due to a CocoaPods installation failure.
- [Solved] C++ reason ncnn model error: Segmentation fault (core dumped)
- C++ Primer Program in VsCode error: no match for call to ‘(std::__cxx11::string…)
- [Solved] mmdetection yolox Error: find_unused_parameters
- [Solved] ValueError: the indices for endog and exog are not aligned
- [Solved] Arcgis Error: The number of points is less than required for feature