Skip to content

Commit

Permalink
Merge pull request #1731 from carlosmccosta/fix_ndt2d_initialization
Browse files Browse the repository at this point in the history
Fixed missing reset of number of iterations in ndt2d.
  • Loading branch information
jspricke committed May 30, 2017
2 parents 79823c9 + a49e838 commit 2c1572c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions registration/include/pcl/registration/impl/ndt_2d.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,9 @@ pcl::NormalDistributionsTransform2D<PointSource, PointTarget>::computeTransforma
{
PointCloudSource intm_cloud = output;

nr_iterations_ = 0;
converged_ = false;

if (guess != Eigen::Matrix4f::Identity ())
{
transformation_ = guess;
Expand Down

0 comments on commit 2c1572c

Please sign in to comment.