Merge pull request #8 from efernandez/check_nan

checks for not finite range (+Inf, -Inf, NaN)
This commit is contained in:
Vincent Rabaud 2014-06-04 05:16:07 +02:00
commit d25f2e7f8c

View File

@ -412,9 +412,6 @@ const boost::numeric::ublas::matrix<double>& LaserProjection::getUnitVectors_(do
cloud_out.data.resize (cloud_out.row_step * cloud_out.height);
cloud_out.is_dense = false;
//TODO: Find out why this was needed
//float bad_point = std::numeric_limits<float>::quiet_NaN ();
if (range_cutoff < 0)
range_cutoff = scan_in.range_max;
else