Open Fancy-a-good-name opened 1 year ago
/**
@param pose geometry_msgs::Pose object */ PoseSE2(const Pose& pose) { _position.coeffRef(0) = pose.position.x; _position.coeffRef(1) = pose.position.y; Eigen::Quaterniond q{pose.orientation.w,pose.orientation.x,pose.orientation.y,pose.orientation.z}; Eigen::Vector3d eulerAngle = q.matrix().eulerAngles(2,1,0); _theta = eulerAngle[0];
}
/**
好的,我去试一试,另外还有一个问题,我在进行cmake编译的过程中,能够正常编译,但是链接的过程中出现undefined reference的错误,您之前遇到过吗?
所有的环境配置都是在修改或者添加程序所需要的头文件和库文件。这个问题明显就是库文件没有找到
ok,我试试,另外有没有可能是g2o和eigen的版本不兼容的问题呢
eigen3.3.4的话需要包含#include <Eigen/Dense>
您好,在复现您的代码的时候,运行时会报teb/include/pose_se2.h:71:14: error: ‘Quaterniond’ is not a member of ‘Eigen’; did you mean ‘Quaternion’?这个错误,想请教一下您的看法