mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 08:47:45 +08:00
point_cloud_xyz: fixed bug where normals are computed by setting noise_filter_radius parameter
This commit is contained in:
@@ -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_);
|
||||
|
||||
@@ -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_);
|
||||
|
||||
Reference in New Issue
Block a user