Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions registration/include/pcl/registration/ia_ransac.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ namespace pcl
using Registration<PointSource, PointTarget>::max_iterations_;
using Registration<PointSource, PointTarget>::tree_;
using Registration<PointSource, PointTarget>::transformation_estimation_;
using Registration<PointSource, PointTarget>::converged_;
using Registration<PointSource, PointTarget>::getClassName;

typedef typename Registration<PointSource, PointTarget>::PointCloudSource PointCloudSource;
Expand Down
2 changes: 2 additions & 0 deletions registration/include/pcl/registration/impl/ia_ransac.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ pcl::SampleConsensusInitialAlignment<PointSource, PointTarget, FeatureT>::comput

final_transformation_ = guess;
int i_iter = 0;
converged_ = false;
if (!guess.isApprox (Eigen::Matrix4f::Identity (), 0.01f))
{
// If guess is not the Identity matrix we check it.
Expand Down Expand Up @@ -243,6 +244,7 @@ pcl::SampleConsensusInitialAlignment<PointSource, PointTarget, FeatureT>::comput
{
lowest_error = error;
final_transformation_ = transformation_;
converged_=true;
}
}

Expand Down