Skip to content

Commit

Permalink
Solve gcc compilation errors not notified by Visual c++
Browse files Browse the repository at this point in the history
  • Loading branch information
aliosciapetrelli committed Jun 3, 2016
1 parent 1d7fcb4 commit f40fc50
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions registration/include/pcl/registration/impl/ia_ReLOC.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,12 @@ pcl::registration::ReLOCInitialAlignment <PointSource, PointTarget, NormalT, Sca
if(flare_x_support_sampling_perc_ != 1.0)
{
//create and set sampled point cloud for computation of X axis
pcl::PointCloud<PointT>::Ptr sampled_cloud;
search::KdTree<PointT>::Ptr sampled_tree;
typedef typename pcl::PointCloud<PointT>::Ptr PointCloudPtr;
PointCloudPtr sampled_cloud;
typedef typename search::KdTree<PointT>::Ptr KdTreePtr;
KdTreePtr sampled_tree;
sampled_cloud.reset( new pcl::PointCloud<PointT>() );
vector<int> indices_sampled;
std::vector<int> indices_sampled;
for(float sa = 0.0f; sa < (float)cloud->points.size (); sa += samplingIncr)
indices_sampled.push_back(static_cast<int> (sa) );
copyPointCloud(*cloud, indices_sampled, *sampled_cloud);
Expand Down Expand Up @@ -444,7 +446,7 @@ pcl::registration::ReLOCInitialAlignment <PointSource, PointTarget, NormalT, Sca
pcl::CorrespondencesPtr &hough_correspondences)
{

PointCloudConstPtr &source_ = input_;
PointCloudSourceConstPtr &source_ = input_;


if(source_cloud_updated_)
Expand Down Expand Up @@ -569,7 +571,7 @@ pcl::registration::ReLOCInitialAlignment <PointSource, PointTarget, NormalT, Sca

final_transformation_ = guess;

PointCloudConstPtr &source_ = input_;
PointCloudSourceConstPtr &source_ = input_;

//Detection
if(target_cloud_updated_)
Expand Down

0 comments on commit f40fc50

Please sign in to comment.