Skip to content

Commit

Permalink
cloud_camera: fix issue atenpas#6
Browse files Browse the repository at this point in the history
Added parameters to specify the number of dimensions to consider for
each point, When invoking pcl::PointCloud< PointT >::getMatrixXfMap()

Signed-off-by: Sharron LIU <[email protected]>
  • Loading branch information
Sharron LIU committed Jan 10, 2019
1 parent b4f1fee commit 9f3394c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpg/cloud_camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ void CloudCamera::calculateNormalsOrganized()
ne.setNormalEstimationMethod(ne.COVARIANCE_MATRIX);
ne.setNormalSmoothingSize(20.0f);
ne.compute(*cloud_normals);
normals_ = cloud_normals->getMatrixXfMap().cast<double>();
normals_ = cloud_normals->getMatrixXfMap(3, 4, 0).cast<double>();
}


Expand Down

0 comments on commit 9f3394c

Please sign in to comment.