Eigen: matrix to quaternion and back have different result
问题 I use Eigen library to covert matrix to quaternion, but when I turn one of the matrix to quaternion and burn it back, it turn out to be another matrix which is identity matrix. The rotation matrix I use was decomposed from a transform matrix. Eigen::Matrix3f R3d = R.topLeftCorner<3,3>(); *Rquat = R3d; R3d = (*Rquat).normalized().toRotationMatrix(); What may cause this problem? This is the matrix before change to quaternion and This is the matrix when I turn it back form the quaternion 回答1: