Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
reinzor committed Jun 21, 2021
1 parent 2da50ce commit 2ec5b49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/speckle_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ bool LaserScanSpeckleFilter::update(const sensor_msgs::LaserScan& input_scan, se
std::vector<bool> valid_ranges(output_scan.ranges.size(), false);

/*Check if range size is big enough to use the filter window */
if(output_scan.ranges.size() <= config_.filter_window +1)
if (output_scan.ranges.size() <= config_.filter_window + 1)
{
ROS_ERROR("Scanner range size is too small: size = %i", output_scan.ranges.size());
return false;
ROS_ERROR("Scan ranges size is too small: size = %i", output_scan.ranges.size());
return false;
}

for (size_t idx = 0; idx < output_scan.ranges.size() - config_.filter_window + 1; ++idx)
Expand Down

0 comments on commit 2ec5b49

Please sign in to comment.