42#include <pcl/registration/icp.h>
52template <
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>>;
95 previous_transformation_;
99 transformation_epsilon_;
104 min_number_correspondences_;
107 euclidean_fitness_epsilon_;
110 transformation_estimation_;
112 correspondence_estimation_;
114 correspondence_rejectors_;
117 use_reciprocal_correspondence_;
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>
typename Registration< PointSource, PointTarget, Scalar >::Matrix4 Matrix4
pcl::registration::DefaultConvergenceCriteria< float >::Ptr convergence_criteria_
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)
std::vector< PointCloudTargetConstPtr > targets_
typename IterativeClosestPoint< PointSource, PointTarget, Scalar >::Matrix4 Matrix4
typename PointCloudSource::Ptr PointCloudSourcePtr
void clearCorrespondenceEstimations()
Reset my list of correspondence estimation methods.
typename IterativeClosestPoint< PointSource, PointTarget, Scalar >::PointCloudSource PointCloudSource
pcl::search::KdTree< PointSource > KdTreeReciprocal
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 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 IterativeClosestPoint< PointSource, PointTarget, Scalar >::PointCloudTarget PointCloudTarget
typename PointCloudTarget::Ptr PointCloudTargetPtr
std::vector< PointCloudSourceConstPtr > sources_
pcl::registration::CorrespondenceEstimationBase< PointSource, PointTarget, Scalar > CorrespondenceEstimation
typename CorrespondenceEstimation::Ptr CorrespondenceEstimationPtr
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.
shared_ptr< JointIterativeClosestPoint< PointSource, PointTarget, Scalar > > Ptr
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
pcl::search::KdTree< PointTarget > KdTree
typename KdTree::Ptr KdTreePtr
std::vector< CorrespondenceEstimationPtr > correspondence_estimations_
typename PointCloudSource::ConstPtr PointCloudSourceConstPtr
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.
PointCloudConstPtr input_
Matrix4 final_transformation_
std::function< UpdateVisualizerCallbackSignature > update_visualizer_
double corr_dist_threshold_
CorrespondencesPtr correspondences_
PointCloudTargetConstPtr target_
const std::string & getClassName() const
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< PointTarget, pcl::KdTreeFLANN< PointTarget > > > Ptr
shared_ptr< ::pcl::PointIndices > Ptr
shared_ptr< const ::pcl::PointIndices > ConstPtr