37 #include <pcl/common/eigen.h>
44 roll_max_(roll_max), pitch_max_(pitch_max)
51 const Eigen::Affine3f diff = to->getPose() * from->getPose().inverse();
52 float roll, pitch, yaw;
53 pcl::getEulerAngles(diff, roll, pitch, yaw);
66 roll_max_(roll_max), pitch_max_(pitch_max), yaw_max_(yaw_max)
74 const Eigen::Affine3f diff = to->getPose() * from->getPose().inverse();
75 const Eigen::Vector3f diff_pos(diff.translation());
76 if (std::abs(diff_pos[0]) <
x_max_ &&
77 std::abs(diff_pos[1]) <
y_max_ &&
78 std::abs(diff_pos[2]) <
z_max_) {
79 float roll, pitch, yaw;
80 pcl::getEulerAngles(diff, roll, pitch, yaw);