3 #include <lanelet2_core/geometry/Point.h> 10 RegisterMapValidator<PointsTooCloseChecker> reg;
17 if (nearest.size() == 2) {
18 auto&
next = nearest[0] ==
p ? nearest[1] : nearest[0];
19 if (geometry::distance(
p,
next) < 0.05) {
22 "Point is very close to point " + std::to_string(
next.id()) +
". This can lead to defects in the map");
Optional< ConstLaneletOrArea > next
std::vector< Issue > Issues
Issues operator()(const LaneletMap &map) override
ConstPrimitiveVec nearest(const BasicPoint2d &point, unsigned n) const