3 #include <RobotAPI/interface/units/LaserScannerUnit.h>
16 scan.push_back(scanStep);
25 scan.push_back(scanStep);
29 std::vector<LaserScan>
32 const auto isInvalid = [&](
const LaserScanStep& step) ->
bool
35 std::vector<LaserScan> clusters;
36 for (
const auto& laserScanStep : scan)
39 if (isInvalid(laserScanStep) or (not
add(laserScanStep)))
76 const float distanceDiff = std::fabs(scanStep.distance - scan.back().distance);
79 const float angleDiff = std::fabs(scanStep.angle - scan.back().angle);
82 return (isWithinDistanceRange and isWithinAngleRange);