diff --git a/sim/src/components/Sensor_OSI/src/sensorGeometric2D.cpp b/sim/src/components/Sensor_OSI/src/sensorGeometric2D.cpp index 2aa2dbcdca58d49ad7ccfc4116943da01baafcc2..b4f61dd0e68599b8ccd9739a8451694b304952c2 100644 --- a/sim/src/components/Sensor_OSI/src/sensorGeometric2D.cpp +++ b/sim/src/components/Sensor_OSI/src/sensorGeometric2D.cpp @@ -401,7 +401,7 @@ std::pair<std::vector<T>, std::vector<T>> SensorGeometric2D::CalcVisualObstructi { visibleObjects.emplace_back(*object); } - if (visiblePercent >= requiredPercentageOfVisibleArea) + if (visiblePercent + CommonHelper::EPSILON >= requiredPercentageOfVisibleArea) { detectedObjects.emplace_back(*object); }