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

Solved a bug with negative x.

parent 7c357b59
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ void ObstacleDetectionNormalsAlgorithm::cloud_all(const pcl::PointCloud<pcl::Poi
{
for (size_t colIndex=0; colIndex<cloud_out->width; ++colIndex, ++pointIndex)
{
if (cloud_out->points[pointIndex].x > this->config_.filter_min_dist)
if (fabs(cloud_out->points[pointIndex].x) > this->config_.filter_min_dist)
{
if (fabs(cloud_out->points[pointIndex].normal_z) > cos(this->config_.max_inc))
{
......
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