Open FabioBergonti opened 3 years ago
Given the homogenous matrix:
H = 1.0000 0 0 0 0 -0.7071 -0.7071 0 0 0.7071 -0.7071 0 0 0 0 1.0000
The quaternion computed using the function fromTransfMatrixToPosQuat is wrong, i.e. the norm is different from 1
fromTransfMatrixToPosQuat
fromTransfMatrixToPosQuat(R) = 0 0 0 0 0.9239 0 0
The output produced by the matlab function rotm2quat is:
rotm2quat
rotm2quat(H(1:3,1:3)) 0.3827 0.9239 0 0
hello @FabioBergonti, is this bug still there or we can close the issue?
It's still there
Given the homogenous matrix:
The quaternion computed using the function
fromTransfMatrixToPosQuat
is wrong, i.e. the norm is different from 1The output produced by the matlab function
rotm2quat
is: