Skip to content

Commit

Permalink
Transform point cloud in GICP align function
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorLamoine committed Sep 5, 2014
1 parent 923ecdd commit 8554190
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion registration/include/pcl/registration/gicp.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ namespace pcl
{
/** \brief GeneralizedIterativeClosestPoint is an ICP variant that implements the
* generalized iterative closest point algorithm as described by Alex Segal et al. in
* http://www.stanford.edu/~avsegal/resources/papers/Generalized_ICP.pdf
* http://www.robots.ox.ac.uk/~avsegal/resources/papers/Generalized_ICP.pdf
* The approach is based on using anistropic cost functions to optimize the alignment
* after closest point assignments have been made.
* The original code uses GSL and ANN while in ours we use an eigen mapped BFGS and
Expand Down
3 changes: 3 additions & 0 deletions registration/include/pcl/registration/impl/gicp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,9 @@ pcl::GeneralizedIterativeClosestPoint<PointSource, PointTarget>::computeTransfor
final_transformation_(0,3) = previous_transformation_(0,3) + guess(0,3);
final_transformation_(1,3) = previous_transformation_(1,3) + guess(1,3);
final_transformation_(2,3) = previous_transformation_(2,3) + guess(2,3);

// Transform the point cloud
pcl::transformPointCloud (*input_, output, final_transformation_);
}

template <typename PointSource, typename PointTarget> void
Expand Down

0 comments on commit 8554190

Please sign in to comment.