Skip to content
Snippets Groups Projects
Commit 6861c236 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Ignored the Z information to generate the obstacle pointcloud.

parent 6dc4dbb0
No related branches found
No related tags found
1 merge request!2Ignored the Z information to generate the obstacle pointcloud.
......@@ -42,9 +42,11 @@ void PointCloudHoleDetectionAlgorithm::cloud_all(pcl::PointCloud<pcl::PointXYZRG
{
for(size_t colIndex=0;colIndex<cloud_in.width;++colIndex,++pointIndex)
{
if(this->config_.box_z_ini<cloud_in.points[pointIndex].z &&
cloud_in.points[pointIndex].z<this->config_.box_z_end &&
this->config_.box_x_ini<cloud_in.points[pointIndex].x &&
// if(this->config_.box_z_ini<cloud_in.points[pointIndex].z &&
// cloud_in.points[pointIndex].z<this->config_.box_z_end &&
// this->config_.box_x_ini<cloud_in.points[pointIndex].x &&
// cloud_in.points[pointIndex].x<this->config_.box_x_end)
if(this->config_.box_x_ini<cloud_in.points[pointIndex].x &&
cloud_in.points[pointIndex].x<this->config_.box_x_end)
{
for(int cell=0;cell<this->config_.num_cells;++cell)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment