point_cloud_xyz: fixed bug where normals are computed by setting noise_filter_radius parameter

This commit is contained in:
matlabbe
2017-11-09 15:18:29 -05:00
parent 1058cafcd7
commit 0ac240b99c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -310,7 +310,7 @@ private:
}
sensor_msgs::PointCloud2 rosCloud;
if(pclCloud->size() && (normalK_ > 0 || noiseFilterRadius_ > 0.0f))
if(pclCloud->size() && (normalK_ > 0 || normalRadius_ > 0.0f))
{
//compute normals
pcl::PointCloud<pcl::Normal>::Ptr normals = rtabmap::util3d::computeNormals(pclCloud, normalK_, normalRadius_);
+1 -1
View File
@@ -461,7 +461,7 @@ private:
}
sensor_msgs::PointCloud2 rosCloud;
if(pclCloud->size() && (normalK_ > 0 || noiseFilterRadius_ > 0.0f))
if(pclCloud->size() && (normalK_ > 0 || normalRadius_ > 0.0f))
{
//compute normals
pcl::PointCloud<pcl::Normal>::Ptr normals = rtabmap::util3d::computeNormals(pclCloud, normalK_, normalRadius_);