42 #include <pcl/registration/icp.h>
52 template <
typename Po
intSource,
typename Po
intTarget,
typename Scalar =
float>
77 using Ptr = shared_ptr<JointIterativeClosestPoint<PointSource, PointTarget, Scalar>>;
79 shared_ptr<const JointIterativeClosestPoint<PointSource, PointTarget, Scalar>>;
132 reg_name_ =
"JointIterativeClosestPoint";
144 PCL_WARN(
"[pcl::%s::setInputSource] Warning; JointIterativeClosestPoint expects "
145 "multiple clouds. Please use addInputSource.\n",
170 PCL_WARN(
"[pcl::%s::setInputTarget] Warning; JointIterativeClosestPoint expects "
171 "multiple clouds. Please use addInputTarget.\n",
248 #include <pcl/registration/impl/joint_icp.hpp>
IterativeClosestPoint provides a base implementation of the Iterative Closest Point algorithm.
typename Registration< PointSource, PointTarget, Scalar >::Matrix4 Matrix4
bool use_reciprocal_correspondence_
The correspondence type used for correspondence estimation.
void setInputTarget(const PointCloudTargetConstPtr &cloud) override
Provide a pointer to the input target (e.g., the point cloud that we want to align the input source t...
void setInputSource(const PointCloudSourceConstPtr &cloud) override
Provide a pointer to the input source (e.g., the point cloud that we want to align to the target)
JointIterativeClosestPoint extends ICP to multiple frames which share the same transform.
std::vector< PointCloudTargetConstPtr > targets_
typename PointCloudSource::Ptr PointCloudSourcePtr
void clearCorrespondenceEstimations()
Reset my list of correspondence estimation methods.
shared_ptr< const JointIterativeClosestPoint< PointSource, PointTarget, Scalar > > ConstPtr
void addInputSource(const PointCloudSourceConstPtr &cloud)
Add a source cloud to the joint solver.
void determineRequiredBlobData() override
Looks at the Estimators and Rejectors and determines whether their blob-setter methods need to be cal...
typename IterativeClosestPoint< PointSource, PointTarget, Scalar >::PointCloudTarget PointCloudTarget
typename KdTree::Ptr KdTreeReciprocalPtr
~JointIterativeClosestPoint() override=default
Empty destructor.
void computeTransformation(PointCloudSource &output, const Matrix4 &guess) override
Rigid transformation computation method with initial guess.
typename PointCloudTarget::ConstPtr PointCloudTargetConstPtr
PointIndices::Ptr PointIndicesPtr
void clearInputSources()
Reset my list of input sources.
typename PointCloudTarget::Ptr PointCloudTargetPtr
std::vector< PointCloudSourceConstPtr > sources_
typename CorrespondenceEstimation::Ptr CorrespondenceEstimationPtr
typename IterativeClosestPoint< PointSource, PointTarget, Scalar >::PointCloudSource PointCloudSource
void addCorrespondenceEstimation(CorrespondenceEstimationPtr ce)
Add a manual correspondence estimator If you choose to do this, you must add one for each input sourc...
PointIndices::ConstPtr PointIndicesConstPtr
JointIterativeClosestPoint()
Empty constructor.
void setInputTarget(const PointCloudTargetConstPtr &) override
Provide a pointer to the input target (e.g., the point cloud that we want to align to the target)
typename CorrespondenceEstimation::ConstPtr CorrespondenceEstimationConstPtr
shared_ptr< JointIterativeClosestPoint< PointSource, PointTarget, Scalar > > Ptr
typename KdTree::Ptr KdTreePtr
std::vector< CorrespondenceEstimationPtr > correspondence_estimations_
typename PointCloudSource::ConstPtr PointCloudSourceConstPtr
typename IterativeClosestPoint< PointSource, PointTarget, Scalar >::Matrix4 Matrix4
void clearInputTargets()
Reset my list of input targets.
void setInputSource(const PointCloudSourceConstPtr &) override
Provide a pointer to the input source (e.g., the point cloud that we want to align to the target)
void addInputTarget(const PointCloudTargetConstPtr &cloud)
Add a target cloud to the joint solver.
std::string reg_name_
The registration method name.
const std::string & getClassName() const
Abstract class get name method.
CorrespondenceEstimationPtr correspondence_estimation_
A CorrespondenceEstimation object, used to estimate correspondences between the source and the target...
Matrix4 previous_transformation_
The previous transformation matrix estimated by the registration method (used internally).
TransformationEstimationPtr transformation_estimation_
A TransformationEstimation object, used to calculate the 4x4 rigid transformation.
unsigned int min_number_correspondences_
The minimum number of correspondences that the algorithm needs before attempting to estimate the tran...
double euclidean_fitness_epsilon_
The maximum allowed Euclidean error between two consecutive steps in the ICP loop,...
double transformation_epsilon_
The maximum difference between two consecutive transformations in order to consider convergence (user...
std::vector< CorrespondenceRejectorPtr > correspondence_rejectors_
The list of correspondence rejectors to use.
Abstract CorrespondenceEstimationBase class.
shared_ptr< const CorrespondenceEstimationBase< PointSource, PointTarget, Scalar > > ConstPtr
shared_ptr< CorrespondenceEstimationBase< PointSource, PointTarget, Scalar > > Ptr
search::KdTree is a wrapper class which inherits the pcl::KdTree class for performing search function...
shared_ptr< KdTree< PointT, Tree > > Ptr
shared_ptr< ::pcl::PointIndices > Ptr
shared_ptr< const ::pcl::PointIndices > ConstPtr