Skip to content
Snippets Groups Projects
Commit 15e40fde authored by Naida Goro's avatar Naida Goro Committed by Reinhard Biegel
Browse files

fix(Sensor_OSI): Avoid rounding error in comparison for required percentage of visible area

parent e28f96a6
No related branches found
No related tags found
3 merge requests!133Merge v0.11,!105#181 - PCM calculation box center & position based not correct,!100Resolve "World_OSI issues"
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment