39 #ifndef PCL_WARP_POINT_RIGID_3D_H_
40 #define PCL_WARP_POINT_RIGID_3D_H_
43 #include <Eigen/Geometry>
47 template <
class Po
intSourceT,
class Po
intTargetT>
54 virtual void setParam (
const Eigen::VectorXf & p)
57 Eigen::Matrix4f &trans = this->transform_matrix_;
59 trans = Eigen::Matrix4f::Zero ();
64 trans.block <4, 1> (0, 3) = Eigen::Vector4f (p[0], p[1], 0, 1.0);
67 Eigen::Rotation2D<float> r (p[2]);
68 trans.topLeftCorner<2, 2> () = r.toRotationMatrix ();