Skip to content

Commit

Permalink
Merge pull request #1766 from jspricke/pcl_isnan
Browse files Browse the repository at this point in the history
Replace boost::math::isnan by pcl_isnan
  • Loading branch information
taketwo authored Nov 30, 2016
2 parents e66d90e + c7d0ed4 commit 9db46e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion io/src/hdl_grabber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions io/src/vlp_grabber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 9db46e1

Please sign in to comment.