相关疑难解决方法(0)

使用特征库从旋转矩阵滚动俯仰和偏航

我需要从旋转矩阵中提取滚动俯仰偏航角度,我想确保我所做的是正确的.

    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));
Run Code Online (Sandbox Code Playgroud)

那是对的吗?因为我在这里阅读:http: //eigen.tuxfamily.org/dox/group__Geometry__Module.html#gad118fececd448d7485ffea4858775e5a

当我在描述的最后说明在哪个区间定义角度时,我有点困惑.

c++ matrix euler-angles eigen rotational-matrices

8
推荐指数
2
解决办法
2万
查看次数

标签 统计

c++ ×1

eigen ×1

euler-angles ×1

matrix ×1

rotational-matrices ×1