Skip to content

Commit

Permalink
removed deprecated warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Janosch Machowinski committed Jul 15, 2016
1 parent 5573d71 commit 161a48d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/MultilevelLaserScan.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ struct MultilevelLaserScan

inline bool isRangeValid(boost::uint32_t range) const
{
if(!boost::math::isnan(range) && !boost::math::isinf(range) && range >= min_range && range <= max_range)
if(!std::isnan(range) && !std::isinf(range) && range >= min_range && range <= max_range)
return true;
return false;
}
Expand Down
4 changes: 3 additions & 1 deletion src/pointcloudConvertHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,13 @@ void ConvertHelper::horizontalBinning(const MultilevelLaserScan &laser_scan, Mul

unsigned bin_value_count = 0;
unsigned values_handled = 0;


std::vector<MultilevelLaserScan::VerticalMultilevelScan>::const_iterator v_scan = laser_scan.horizontal_scans.begin();
while(v_scan < laser_scan.horizontal_scans.end() || bin_value_count > 0)
{
if(v_scan < laser_scan.horizontal_scans.end() && !(v_scan->horizontal_angle == bin_end_angle) && v_scan->horizontal_angle.isInRange(bin_end_angle, bin_start_angle))
base::AngleSegment horAngleSeg(bin_start_angle, bin_end_angle.getRad() - bin_start_angle.getRad());
if(v_scan < laser_scan.horizontal_scans.end() && !(v_scan->horizontal_angle == bin_end_angle) && horAngleSeg.isInside(v_scan->horizontal_angle))
{
// add values to bin
bin_value_count += 1;
Expand Down

0 comments on commit 161a48d

Please sign in to comment.