矩阵方式:
下面是代码:
#include <Eigen/Dense>
static void transLocalToWorldCloudWith2dPose(const PointCloud &pc_tar, const QPose3f &pose, PointCloud &pc_org) {
if (pc_tar.empty())
return;
PointCloud tmp_pc;
Eigen::Rotation2Dd R(-pose.yaw); // 创建旋转矩阵
Eigen::Vector2d d(pose