我需要从旋转矩阵中提取滚转、俯仰和偏航角,并且我想确保我的操作是正确的。
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
当描述结束时,我有点困惑,它说角度所定义的间隔是什么。
m.eulerAngles(2,1,0)
。 - zhoudingjiang