【发布时间】:2014-12-16 15:38:02
【问题描述】:
我需要从旋转矩阵中提取滚动俯仰偏航角,并且我想确保我所做的事情是正确的。
Eigen::Matrix< simFloat, 3, 1> rpy = orientation.toRotationMatrix().eulerAngles(0,1,2);
const double r = ((double)rpy(0));
const double p = ((double)rpy(1));
const double y = ((double)rpy(2));
正确吗?因为我在这里读到: http://eigen.tuxfamily.org/dox/group__Geometry__Module.html#gad118fececd448d7485ffea4858775e5a
当它在描述的末尾说定义角度时,我有点困惑。
【问题讨论】:
标签: c++ matrix eigen rotational-matrices euler-angles