mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-11 12:09:51 +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;
|
sensor_msgs::PointCloud2 rosCloud;
|
||||||
if(pclCloud->size() && (normalK_ > 0 || noiseFilterRadius_ > 0.0f))
|
if(pclCloud->size() && (normalK_ > 0 || normalRadius_ > 0.0f))
|
||||||
{
|
{
|
||||||
//compute normals
|
//compute normals
|
||||||
pcl::PointCloud<pcl::Normal>::Ptr normals = rtabmap::util3d::computeNormals(pclCloud, normalK_, normalRadius_);
|
pcl::PointCloud<pcl::Normal>::Ptr normals = rtabmap::util3d::computeNormals(pclCloud, normalK_, normalRadius_);
|
||||||
|
|||||||
@@ -461,7 +461,7 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
sensor_msgs::PointCloud2 rosCloud;
|
sensor_msgs::PointCloud2 rosCloud;
|
||||||
if(pclCloud->size() && (normalK_ > 0 || noiseFilterRadius_ > 0.0f))
|
if(pclCloud->size() && (normalK_ > 0 || normalRadius_ > 0.0f))
|
||||||
{
|
{
|
||||||
//compute normals
|
//compute normals
|
||||||
pcl::PointCloud<pcl::Normal>::Ptr normals = rtabmap::util3d::computeNormals(pclCloud, normalK_, normalRadius_);
|
pcl::PointCloud<pcl::Normal>::Ptr normals = rtabmap::util3d::computeNormals(pclCloud, normalK_, normalRadius_);
|
||||||
|
|||||||
Reference in New Issue
Block a user