Eigen - Re-orthogonalization of Rotation Matrix

前端 未结 5 1177
醉梦人生
醉梦人生 2021-01-04 09:19

After multiplying a lot of rotation matrices, the end result might not be a valid rotation matrix any more, due to rounding issues (de-orthogonalized)

One way to re-

5条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-04 09:30

    An alternative is to use Eigen::Quaternion to represent your rotation. This is much easier to normalize, and rotation*rotation products are generally faster. If you have a lot of rotation*vector products (with the same matrix), you should locally convert the quaternion to a 3x3 matrix.

提交回复
热议问题