From c7d0ed4515e4b48a52ab3b6c1954559c94a964c1 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Tue, 29 Nov 2016 22:20:16 +0100 Subject: [PATCH] Replace boost::math::isnan by pcl_isnan boost::math wasn't included anyhow, resulting in build errors. --- io/src/hdl_grabber.cpp | 2 +- io/src/vlp_grabber.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/io/src/hdl_grabber.cpp b/io/src/hdl_grabber.cpp index a7967006a8a..bc57f16531c 100644 --- a/io/src/hdl_grabber.cpp +++ b/io/src/hdl_grabber.cpp @@ -374,7 +374,7 @@ pcl::HDLGrabber::toPointClouds (HDLDataPacket *dataPacket) xyz.z = xyzrgb.z = xyzi.z; xyzrgb.rgba = laser_rgb_mapping_[j + offset].rgba; - if ( (boost::math::isnan) (xyz.x) || (boost::math::isnan) (xyz.y) || (boost::math::isnan) (xyz.z)) + if (pcl_isnan (xyz.x) || pcl_isnan (xyz.y) || pcl_isnan (xyz.z)) { continue; } diff --git a/io/src/vlp_grabber.cpp b/io/src/vlp_grabber.cpp index 589667aa133..ec0b64bff19 100644 --- a/io/src/vlp_grabber.cpp +++ b/io/src/vlp_grabber.cpp @@ -174,7 +174,7 @@ pcl::VLPGrabber::toPointClouds (HDLDataPacket *dataPacket) } - if (! (boost::math::isnan (xyz.x) || boost::math::isnan (xyz.y) || boost::math::isnan (xyz.z))) + if (! (pcl_isnan (xyz.x) || pcl_isnan (xyz.y) || pcl_isnan (xyz.z))) { current_sweep_xyz_->push_back (xyz); current_sweep_xyzi_->push_back (xyzi); @@ -184,7 +184,7 @@ pcl::VLPGrabber::toPointClouds (HDLDataPacket *dataPacket) if (dataPacket->mode == VLP_DUAL_MODE) { if ( (dual_xyz.x != xyz.x || dual_xyz.y != xyz.y || dual_xyz.z != xyz.z) - && ! (boost::math::isnan (dual_xyz.x) || boost::math::isnan (dual_xyz.y) || boost::math::isnan (dual_xyz.z))) + && ! (pcl_isnan (dual_xyz.x) || pcl_isnan (dual_xyz.y) || pcl_isnan (dual_xyz.z))) { current_sweep_xyz_->push_back (dual_xyz); current_sweep_xyzi_->push_back (dual_xyzi);