Skip to content
Snippets Groups Projects
Commit e28f96a6 authored by Noah Schick's avatar Noah Schick Committed by Reinhard Biegel
Browse files

fix(Common): Enable Boost Geometry robustness

Debugging Sensor_OSI tests showed that some Boost Geometry points were
duplicated and offset by an iota by calling boost::geometry::difference,
indicating a rounding error. Turns out boost::geometry is not robust by
default, but offers an option that uses scaling to ensure robustness by
defining the compiler flag BOOST_GEOMETRY_USE_RESCALING. This flag
however is deprecated and will be removed in version 1.82. Instead, the
flag BOOST_GEOMETRY_ROBUSTNESS_ALTERNATIVE can be used.

Tested with Boost 1.79
parent fc82d29f
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"
/********************************************************************************
* Copyright (c) 2017-2019 in-tech GmbH
* 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
......@@ -9,6 +10,8 @@
********************************************************************************/
#pragma once
#define BOOST_GEOMETRY_ROBUSTNESS_ALTERNATIVE
#include <boost/geometry.hpp>
#include <boost/geometry/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
......
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