From 095484eef2e7b314521912caea506caf98c33137 Mon Sep 17 00:00:00 2001 From: yuzhangbit Date: Sun, 13 Jan 2019 23:27:34 +0800 Subject: [PATCH 01/20] delete meta-package and add puginxml cmake module --- cmake/FindPugiXML.cmake | 11 + lanelet2/CMakeLists.txt | 4 - lanelet2/clang-tidy-fixes.yaml | 808 --------------------------------- lanelet2/codeclimate.json | 354 --------------- lanelet2/package.xml | 23 - 5 files changed, 11 insertions(+), 1189 deletions(-) create mode 100644 cmake/FindPugiXML.cmake delete mode 100644 lanelet2/CMakeLists.txt delete mode 100644 lanelet2/clang-tidy-fixes.yaml delete mode 100644 lanelet2/codeclimate.json delete mode 100644 lanelet2/package.xml diff --git a/cmake/FindPugiXML.cmake b/cmake/FindPugiXML.cmake new file mode 100644 index 00000000..70b0da4b --- /dev/null +++ b/cmake/FindPugiXML.cmake @@ -0,0 +1,11 @@ +find_library(PugiXML_LIBRARIES + NAMES pugixml) +find_path(PugiXML_INCLUDE_DIRS + NAMES pugixml.hpp + PATH_SUFFIXES pugixml) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(pugixml DEFAULT_MSG + PugiXML_LIBRARIES + PugiXML_INCLUDE_DIRS) +message(STATUS "PugiXML include DIRS: " ${PugiXML_INCLUDE_DIRS} ", PugiXML library: " ${PugiXML_LIBRARIES}) diff --git a/lanelet2/CMakeLists.txt b/lanelet2/CMakeLists.txt deleted file mode 100644 index a3b262a1..00000000 --- a/lanelet2/CMakeLists.txt +++ /dev/null @@ -1,4 +0,0 @@ -cmake_minimum_required(VERSION 2.8.3) -project(lanelet2) -find_package(catkin REQUIRED) -catkin_metapackage() diff --git a/lanelet2/clang-tidy-fixes.yaml b/lanelet2/clang-tidy-fixes.yaml deleted file mode 100644 index 4be8fab3..00000000 --- a/lanelet2/clang-tidy-fixes.yaml +++ /dev/null @@ -1,808 +0,0 @@ ---- -MainSourceFile: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/test/test_regulatory_element.cpp -Diagnostics: - - DiagnosticName: clang-diagnostic-error - Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' - FileOffset: 0 - FilePath: '' - Replacements: - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''areaData_''' - FileOffset: 11081 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Area.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Area.h - Offset: 10712 - Length: 9 - ReplacementText: areaData - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Area.h - Offset: 11081 - Length: 9 - ReplacementText: areaData - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''laneletData_''' - FileOffset: 11790 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h - Offset: 11352 - Length: 12 - ReplacementText: laneletData - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h - Offset: 11790 - Length: 12 - ReplacementText: laneletData - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''inverted_''' - FileOffset: 11811 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h - Offset: 11384 - Length: 9 - ReplacementText: inverted - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h - Offset: 11811 - Length: 9 - ReplacementText: inverted - - DiagnosticName: mrt-eigen-alignment - Message: 'Missing aligned allocator for this container value type (aka ''section >, 2>'').' - FileOffset: 0 - FilePath: '' - Replacements: - - DiagnosticName: clang-diagnostic-error - Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' - FileOffset: 0 - FilePath: '' - Replacements: - - DiagnosticName: clang-diagnostic-error - Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' - FileOffset: 0 - FilePath: '' - Replacements: - - DiagnosticName: clang-diagnostic-error - Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' - FileOffset: 0 - FilePath: '' - Replacements: - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''areaData_''' - FileOffset: 11081 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Area.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Area.h - Offset: 10712 - Length: 9 - ReplacementText: areaData - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Area.h - Offset: 11081 - Length: 9 - ReplacementText: areaData - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''laneletData_''' - FileOffset: 11790 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h - Offset: 11352 - Length: 12 - ReplacementText: laneletData - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h - Offset: 11790 - Length: 12 - ReplacementText: laneletData - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''inverted_''' - FileOffset: 11811 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h - Offset: 11384 - Length: 9 - ReplacementText: inverted - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h - Offset: 11811 - Length: 9 - ReplacementText: inverted - - DiagnosticName: clang-diagnostic-error - Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' - FileOffset: 0 - FilePath: '' - Replacements: - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''laneletData_''' - FileOffset: 11790 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h - Offset: 11352 - Length: 12 - ReplacementText: laneletData - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h - Offset: 11790 - Length: 12 - ReplacementText: laneletData - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''inverted_''' - FileOffset: 11811 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h - Offset: 11384 - Length: 9 - ReplacementText: inverted - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h - Offset: 11811 - Length: 9 - ReplacementText: inverted - - DiagnosticName: clang-diagnostic-error - Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' - FileOffset: 0 - FilePath: '' - Replacements: - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''areaData_''' - FileOffset: 11081 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Area.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Area.h - Offset: 10712 - Length: 9 - ReplacementText: areaData - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Area.h - Offset: 11081 - Length: 9 - ReplacementText: areaData - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''distanceToBorder3d'' declaration' - FileOffset: 9857 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Offset: 9830 - Length: 142 - ReplacementText: '' - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''laneletData_''' - FileOffset: 11790 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11352 - Length: 12 - ReplacementText: laneletData - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11790 - Length: 12 - ReplacementText: laneletData - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''inverted_''' - FileOffset: 11811 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11384 - Length: 9 - ReplacementText: inverted - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11811 - Length: 9 - ReplacementText: inverted - - DiagnosticName: clang-diagnostic-error - Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' - FileOffset: 0 - FilePath: '' - Replacements: - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''elements_''' - FileOffset: 9094 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h - Offset: 9094 - Length: 9 - ReplacementText: elements - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/src/LaneletMap.cpp - Offset: 10669 - Length: 9 - ReplacementText: elements - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/src/LaneletMap.cpp - Offset: 10915 - Length: 9 - ReplacementText: elements - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/src/LaneletMap.cpp - Offset: 11158 - Length: 9 - ReplacementText: elements - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''tree_''' - FileOffset: 9185 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h - Offset: 9185 - Length: 5 - ReplacementText: tree - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/src/LaneletMap.cpp - Offset: 10692 - Length: 5 - ReplacementText: tree - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/src/LaneletMap.cpp - Offset: 10938 - Length: 5 - ReplacementText: tree - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/src/LaneletMap.cpp - Offset: 11181 - Length: 5 - ReplacementText: tree - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''distanceToBorder3d'' declaration' - FileOffset: 7722 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''projectedBorderPoint3d'' declaration' - FileOffset: 9731 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''distanceToBorder3d'' declaration' - FileOffset: 9857 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Offset: 9830 - Length: 142 - ReplacementText: '' - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''touches2d'' declaration' - FileOffset: 10026 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''overlaps2d'' declaration' - FileOffset: 10140 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''overlaps3d'' declaration' - FileOffset: 10295 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''areaData_''' - FileOffset: 11081 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Offset: 10712 - Length: 9 - ReplacementText: areaData - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Offset: 11081 - Length: 9 - ReplacementText: areaData - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''laneletData_''' - FileOffset: 11790 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11352 - Length: 12 - ReplacementText: laneletData - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11790 - Length: 12 - ReplacementText: laneletData - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''inverted_''' - FileOffset: 11811 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11384 - Length: 9 - ReplacementText: inverted - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11811 - Length: 9 - ReplacementText: inverted - - DiagnosticName: clang-analyzer-core.NonNullParamChecker - Message: Forming reference to null pointer - FileOffset: 5981 - FilePath: /usr/include/boost/geometry/index/detail/rtree/node/variant_dynamic.hpp - Replacements: - - DiagnosticName: clang-diagnostic-error - Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' - FileOffset: 0 - FilePath: '' - Replacements: - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''distanceToBorder3d'' declaration' - FileOffset: 9857 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Offset: 9830 - Length: 142 - ReplacementText: '' - - DiagnosticName: clang-diagnostic-error - Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' - FileOffset: 0 - FilePath: '' - Replacements: - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''areaData_''' - FileOffset: 11081 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Offset: 10712 - Length: 9 - ReplacementText: areaData - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Offset: 11081 - Length: 9 - ReplacementText: areaData - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''laneletData_''' - FileOffset: 11790 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11352 - Length: 12 - ReplacementText: laneletData - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11790 - Length: 12 - ReplacementText: laneletData - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''inverted_''' - FileOffset: 11811 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11384 - Length: 9 - ReplacementText: inverted - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11811 - Length: 9 - ReplacementText: inverted - - DiagnosticName: clang-diagnostic-error - Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' - FileOffset: 0 - FilePath: '' - Replacements: - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''distanceToBorder3d'' declaration' - FileOffset: 7722 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''projectedBorderPoint3d'' declaration' - FileOffset: 9731 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''distanceToBorder3d'' declaration' - FileOffset: 9857 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Offset: 9830 - Length: 142 - ReplacementText: '' - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''touches2d'' declaration' - FileOffset: 10026 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''overlaps2d'' declaration' - FileOffset: 10140 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''overlaps3d'' declaration' - FileOffset: 10295 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''areaData_''' - FileOffset: 11081 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Offset: 10712 - Length: 9 - ReplacementText: areaData - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Offset: 11081 - Length: 9 - ReplacementText: areaData - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''laneletData_''' - FileOffset: 11790 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11352 - Length: 12 - ReplacementText: laneletData - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11790 - Length: 12 - ReplacementText: laneletData - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''inverted_''' - FileOffset: 11811 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11384 - Length: 9 - ReplacementText: inverted - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11811 - Length: 9 - ReplacementText: inverted - - DiagnosticName: clang-diagnostic-error - Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' - FileOffset: 0 - FilePath: '' - Replacements: - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''distanceToBorder3d'' declaration' - FileOffset: 7722 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''projectedBorderPoint3d'' declaration' - FileOffset: 9731 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''distanceToBorder3d'' declaration' - FileOffset: 9857 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Offset: 9830 - Length: 142 - ReplacementText: '' - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''touches2d'' declaration' - FileOffset: 10026 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''overlaps2d'' declaration' - FileOffset: 10140 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''overlaps3d'' declaration' - FileOffset: 10295 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''areaData_''' - FileOffset: 11081 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Offset: 10712 - Length: 9 - ReplacementText: areaData - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Offset: 11081 - Length: 9 - ReplacementText: areaData - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''laneletData_''' - FileOffset: 11790 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11352 - Length: 12 - ReplacementText: laneletData - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11790 - Length: 12 - ReplacementText: laneletData - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''inverted_''' - FileOffset: 11811 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11384 - Length: 9 - ReplacementText: inverted - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11811 - Length: 9 - ReplacementText: inverted - - DiagnosticName: clang-diagnostic-error - Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' - FileOffset: 0 - FilePath: '' - Replacements: - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''elements_''' - FileOffset: 9094 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h - Offset: 9094 - Length: 9 - ReplacementText: elements - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''tree_''' - FileOffset: 9185 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h - Offset: 9185 - Length: 5 - ReplacementText: tree - - DiagnosticName: misc-macro-parentheses - Message: macro argument should be enclosed in parentheses - FileOffset: 18120 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h - Offset: 18120 - Length: 0 - ReplacementText: '(' - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h - Offset: 18124 - Length: 0 - ReplacementText: ')' - - DiagnosticName: misc-macro-parentheses - Message: macro argument should be enclosed in parentheses - FileOffset: 18375 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h - Offset: 18375 - Length: 0 - ReplacementText: '(' - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h - Offset: 18379 - Length: 0 - ReplacementText: ')' - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''areaData_''' - FileOffset: 11081 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Offset: 10712 - Length: 9 - ReplacementText: areaData - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Offset: 11081 - Length: 9 - ReplacementText: areaData - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''laneletData_''' - FileOffset: 11790 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11352 - Length: 12 - ReplacementText: laneletData - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11790 - Length: 12 - ReplacementText: laneletData - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''inverted_''' - FileOffset: 11811 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11384 - Length: 9 - ReplacementText: inverted - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11811 - Length: 9 - ReplacementText: inverted - - DiagnosticName: clang-diagnostic-error - Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' - FileOffset: 0 - FilePath: '' - Replacements: - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''distanceToBorder3d'' declaration' - FileOffset: 7722 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''projectedBorderPoint3d'' declaration' - FileOffset: 9731 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''distanceToBorder3d'' declaration' - FileOffset: 9857 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Offset: 9830 - Length: 142 - ReplacementText: '' - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''touches2d'' declaration' - FileOffset: 10026 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''overlaps2d'' declaration' - FileOffset: 10140 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''overlaps3d'' declaration' - FileOffset: 10295 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''areaData_''' - FileOffset: 11081 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Offset: 10712 - Length: 9 - ReplacementText: areaData - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Offset: 11081 - Length: 9 - ReplacementText: areaData - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''laneletData_''' - FileOffset: 11790 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11352 - Length: 12 - ReplacementText: laneletData - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11790 - Length: 12 - ReplacementText: laneletData - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''inverted_''' - FileOffset: 11811 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11384 - Length: 9 - ReplacementText: inverted - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11811 - Length: 9 - ReplacementText: inverted - - DiagnosticName: clang-diagnostic-error - Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' - FileOffset: 0 - FilePath: '' - Replacements: - - DiagnosticName: clang-diagnostic-error - Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' - FileOffset: 0 - FilePath: '' - Replacements: - - DiagnosticName: readability-redundant-declaration - Message: 'redundant ''distanceToBorder3d'' declaration' - FileOffset: 9857 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h - Offset: 9830 - Length: 142 - ReplacementText: '' - - DiagnosticName: clang-diagnostic-error - Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' - FileOffset: 0 - FilePath: '' - Replacements: - - DiagnosticName: clang-diagnostic-error - Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' - FileOffset: 0 - FilePath: '' - Replacements: - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''areaData_''' - FileOffset: 11081 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Offset: 10712 - Length: 9 - ReplacementText: areaData - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Offset: 11081 - Length: 9 - ReplacementText: areaData - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''laneletData_''' - FileOffset: 11790 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11352 - Length: 12 - ReplacementText: laneletData - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11790 - Length: 12 - ReplacementText: laneletData - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''inverted_''' - FileOffset: 11811 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11384 - Length: 9 - ReplacementText: inverted - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11811 - Length: 9 - ReplacementText: inverted - - DiagnosticName: clang-diagnostic-error - Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' - FileOffset: 0 - FilePath: '' - Replacements: - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''areaData_''' - FileOffset: 11081 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Offset: 10712 - Length: 9 - ReplacementText: areaData - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h - Offset: 11081 - Length: 9 - ReplacementText: areaData - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''laneletData_''' - FileOffset: 11790 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11352 - Length: 12 - ReplacementText: laneletData - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11790 - Length: 12 - ReplacementText: laneletData - - DiagnosticName: readability-identifier-naming - Message: 'invalid case style for protected member ''inverted_''' - FileOffset: 11811 - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Replacements: - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11384 - Length: 9 - ReplacementText: inverted - - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h - Offset: 11811 - Length: 9 - ReplacementText: inverted -... diff --git a/lanelet2/codeclimate.json b/lanelet2/codeclimate.json deleted file mode 100644 index 5ea91997..00000000 --- a/lanelet2/codeclimate.json +++ /dev/null @@ -1,354 +0,0 @@ -[ - { - "description": "object destroyed immediately after creation; did you mean to name the object?", - "check_name": "misc-unused-raii", - "location": { - "path": "python_api/projection.cpp", - "lines": { - "begin": 10, - "end": 10 - } - }, - "fingerprint": "a3ca5c285124ed783173b1f44bab0076", - "type": "issue", - "categories": [ - "Style" - ] - }, - { - "description": "object destroyed immediately after creation; did you mean to name the object?", - "check_name": "misc-unused-raii", - "location": { - "path": "python_api/routing.cpp", - "lines": { - "begin": 54, - "end": 54 - } - }, - "fingerprint": "d7de0ccce2a157bd78fb0b71032309a3", - "type": "issue", - "categories": [ - "Style" - ] - }, - { - "description": "object destroyed immediately after creation; did you mean to name the object?", - "check_name": "misc-unused-raii", - "location": { - "path": "python_api/routing.cpp", - "lines": { - "begin": 58, - "end": 58 - } - }, - "fingerprint": "9ab7b6a0ea215db9f91dedb1fa096901", - "type": "issue", - "categories": [ - "Style" - ] - }, - { - "description": "object destroyed immediately after creation; did you mean to name the object?", - "check_name": "misc-unused-raii", - "location": { - "path": "python_api/routing.cpp", - "lines": { - "begin": 64, - "end": 64 - } - }, - "fingerprint": "883cbbb11148baef96640bb86d760ca2", - "type": "issue", - "categories": [ - "Style" - ] - }, - { - "description": "object destroyed immediately after creation; did you mean to name the object?", - "check_name": "misc-unused-raii", - "location": { - "path": "python_api/projection.cpp", - "lines": { - "begin": 10, - "end": 10 - } - }, - "fingerprint": "a3ca5c285124ed783173b1f44bab0076", - "type": "issue", - "categories": [ - "Style" - ] - }, - { - "description": "object destroyed immediately after creation; did you mean to name the object?", - "check_name": "misc-unused-raii", - "location": { - "path": "python_api/routing.cpp", - "lines": { - "begin": 54, - "end": 54 - } - }, - "fingerprint": "d7de0ccce2a157bd78fb0b71032309a3", - "type": "issue", - "categories": [ - "Style" - ] - }, - { - "description": "object destroyed immediately after creation; did you mean to name the object?", - "check_name": "misc-unused-raii", - "location": { - "path": "python_api/routing.cpp", - "lines": { - "begin": 58, - "end": 58 - } - }, - "fingerprint": "9ab7b6a0ea215db9f91dedb1fa096901", - "type": "issue", - "categories": [ - "Style" - ] - }, - { - "description": "object destroyed immediately after creation; did you mean to name the object?", - "check_name": "misc-unused-raii", - "location": { - "path": "python_api/routing.cpp", - "lines": { - "begin": 64, - "end": 64 - } - }, - "fingerprint": "883cbbb11148baef96640bb86d760ca2", - "type": "issue", - "categories": [ - "Style" - ] - }, - { - "description": "invalid case style for protected member 'areaData_'", - "check_name": "readability-identifier-naming", - "location": { - "path": "include/lanelet2_core/primitives/Area.h", - "lines": { - "begin": 326, - "end": 326 - } - }, - "fingerprint": "59b85773b3ef82e452c98e3d803472cf", - "type": "issue", - "categories": [ - "Style" - ] - }, - { - "description": "invalid case style for protected member 'laneletData_'", - "check_name": "readability-identifier-naming", - "location": { - "path": "include/lanelet2_core/primitives/Lanelet.h", - "lines": { - "begin": 329, - "end": 329 - } - }, - "fingerprint": "3c10549031d30b98307c338fce8db471", - "type": "issue", - "categories": [ - "Style" - ] - }, - { - "description": "invalid case style for protected member 'inverted_'", - "check_name": "readability-identifier-naming", - "location": { - "path": "include/lanelet2_core/primitives/Lanelet.h", - "lines": { - "begin": 330, - "end": 330 - } - }, - "fingerprint": "364db3255451f53c87df3d8b623be161", - "type": "issue", - "categories": [ - "Style" - ] - }, - { - "description": "redundant 'distanceToBorder3d' declaration", - "check_name": "readability-redundant-declaration", - "location": { - "path": "include/lanelet2_core/geometry/Polygon.h", - "lines": { - "begin": 314, - "end": 314 - } - }, - "fingerprint": "f95628db2716bd179d891c360b496cbe", - "type": "issue", - "categories": [ - "Style" - ] - }, - { - "description": "invalid case style for protected member 'elements_'", - "check_name": "readability-identifier-naming", - "location": { - "path": "include/lanelet2_core/LaneletMap.h", - "lines": { - "begin": 259, - "end": 259 - } - }, - "fingerprint": "36d99b506714b83d29cb738084dc13a8", - "type": "issue", - "categories": [ - "Style" - ] - }, - { - "description": "invalid case style for protected member 'tree_'", - "check_name": "readability-identifier-naming", - "location": { - "path": "include/lanelet2_core/LaneletMap.h", - "lines": { - "begin": 261, - "end": 261 - } - }, - "fingerprint": "cb84886f3f5a74798da9e3c78c232103", - "type": "issue", - "categories": [ - "Style" - ] - }, - { - "description": "redundant 'distanceToBorder3d' declaration", - "check_name": "readability-redundant-declaration", - "location": { - "path": "include/lanelet2_core/geometry/Polygon.h", - "lines": { - "begin": 253, - "end": 253 - } - }, - "fingerprint": "98cdc6d92d5902824a1f32161e1e59f5", - "type": "issue", - "categories": [ - "Style" - ] - }, - { - "description": "redundant 'projectedBorderPoint3d' declaration", - "check_name": "readability-redundant-declaration", - "location": { - "path": "include/lanelet2_core/geometry/Polygon.h", - "lines": { - "begin": 312, - "end": 312 - } - }, - "fingerprint": "65be55174d6519502a0faab318088f63", - "type": "issue", - "categories": [ - "Style" - ] - }, - { - "description": "redundant 'touches2d' declaration", - "check_name": "readability-redundant-declaration", - "location": { - "path": "include/lanelet2_core/geometry/Polygon.h", - "lines": { - "begin": 318, - "end": 318 - } - }, - "fingerprint": "2fc119c2244885c5da19bb4824512463", - "type": "issue", - "categories": [ - "Style" - ] - }, - { - "description": "redundant 'overlaps2d' declaration", - "check_name": "readability-redundant-declaration", - "location": { - "path": "include/lanelet2_core/geometry/Polygon.h", - "lines": { - "begin": 321, - "end": 321 - } - }, - "fingerprint": "7f27a2d822f4dcf5832400e3124c16fe", - "type": "issue", - "categories": [ - "Style" - ] - }, - { - "description": "redundant 'overlaps3d' declaration", - "check_name": "readability-redundant-declaration", - "location": { - "path": "include/lanelet2_core/geometry/Polygon.h", - "lines": { - "begin": 325, - "end": 325 - } - }, - "fingerprint": "ec520eb6b63767294020e0cb7a8a781d", - "type": "issue", - "categories": [ - "Style" - ] - }, - { - "description": "Forming reference to null pointer", - "check_name": "clang-analyzer-core.NonNullParamChecker", - "location": { - "path": "../../../../../../../usr/include/boost/geometry/index/detail/rtree/node/variant_dynamic.hpp", - "lines": { - "begin": 186, - "end": 186 - } - }, - "fingerprint": "821a43b1e8e5517c5ab4f75e0c086dd4", - "type": "issue", - "categories": [ - "Style" - ] - }, - { - "description": "macro argument should be enclosed in parentheses", - "check_name": "misc-macro-parentheses", - "location": { - "path": "include/lanelet2_core/LaneletMap.h", - "lines": { - "begin": 488, - "end": 488 - } - }, - "fingerprint": "af0a06b5683612bfba962fda54789374", - "type": "issue", - "categories": [ - "Style" - ] - }, - { - "description": "macro argument should be enclosed in parentheses", - "check_name": "misc-macro-parentheses", - "location": { - "path": "include/lanelet2_core/LaneletMap.h", - "lines": { - "begin": 492, - "end": 492 - } - }, - "fingerprint": "3b78e479dfc89bf24da0f85c7d3e83af", - "type": "issue", - "categories": [ - "Style" - ] - } -] \ No newline at end of file diff --git a/lanelet2/package.xml b/lanelet2/package.xml deleted file mode 100644 index 96e5b8c6..00000000 --- a/lanelet2/package.xml +++ /dev/null @@ -1,23 +0,0 @@ - - lanelet2 - 0.8.0 - Meta-package for lanelet2 - - BSD - Fabian Poggenhans - Fabian Poggenhans - https://github.com/fzi-forschungszentrum-informatik/lanelet2.git - catkin - lanelet2_core - lanelet2_io - lanelet2_traffic_rules - lanelet2_routing - lanelet2_python - lanelet2_maps - lanelet2_projection - lanelet2_validation - lanelet2_examples - - - - From 8cc40da52821a565f156cb955f64928687e2c227 Mon Sep 17 00:00:00 2001 From: yuzhangbit Date: Sun, 13 Jan 2019 23:36:22 +0800 Subject: [PATCH 02/20] add python package files --- CMakeLists.txt | 69 +++ lanelet2/CMakeLists.txt | 4 + lanelet2/clang-tidy-fixes.yaml | 808 +++++++++++++++++++++++++++++++++ lanelet2/codeclimate.json | 354 +++++++++++++++ lanelet2/package.xml | 23 + pylanelet2/__init__.py | 0 pylanelet2/core.py | 1 + pylanelet2/geometry.py | 1 + pylanelet2/io.py | 1 + pylanelet2/projection.py | 1 + pylanelet2/routing.py | 1 + pylanelet2/traffic_rules.py | 1 + 12 files changed, 1264 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 lanelet2/CMakeLists.txt create mode 100644 lanelet2/clang-tidy-fixes.yaml create mode 100644 lanelet2/codeclimate.json create mode 100644 lanelet2/package.xml create mode 100755 pylanelet2/__init__.py create mode 100755 pylanelet2/core.py create mode 100755 pylanelet2/geometry.py create mode 100755 pylanelet2/io.py create mode 100755 pylanelet2/projection.py create mode 100755 pylanelet2/routing.py create mode 100755 pylanelet2/traffic_rules.py diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 00000000..f6393bd8 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,69 @@ +cmake_minimum_required(VERSION 3.5.1) +project(lanelet2) + +set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-backtrace-limit=0") +list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") + +find_package(Boost REQUIRED COMPONENTS python-py35 serialization system filesystem) +find_package(PythonLibs 3.5 REQUIRED) # sets ${PYTHON_INCLUDE_DIRS} +find_package(Eigen3 QUIET) +if(NOT EIGEN3_FOUND) + find_package(PkgConfig REQUIRED) + pkg_check_modules(EIGEN3 REQUIRED eigen3) + set(EIGEN3_INCLUDE_DIR ${EIGEN3_INCLUDE_DIRS}) +endif() +find_package(GeographicLib REQUIRED) +find_package(PugiXML REQUIRED) + +include_directories( + lanelet2_core/include + lanelet2_io/include + lanelet2_projection/include + lanelet2_routing/include + lanelet2_traffic_rules/include + ${Boost_INCLUDE_DIRS} + ${PYTHON_INCLUDE_DIRS} + ${EIGEN3_INCLUDE_DIR} + ${GeographicLib_INCLUDE_DIRS} + ${PugiXML_INCLUDE_DIRS} +) + +set(MODUELS core io projection routing traffic_rules geometry) + +set(LINKED_LIBRARIES "") +# build the c++ libraries first +foreach(SUBMODULE ${MODUELS}) + if (NOT SUBMODULE STREQUAL "geometry") + set(LIBRARY_NAME ${PROJECT_NAME}_${SUBMODULE}) + set(SRCS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}_${SUBMODULE}/src) + file(GLOB ${SUBMODULE}_SRC ${SRCS_DIR}/*.cpp) + add_library(${LIBRARY_NAME} SHARED + ${${SUBMODULE}_SRC} + ) + target_include_directories(${LIBRARY_NAME} + PRIVATE + $) + target_link_libraries(${LIBRARY_NAME} + ${Boost_LIBRARIES} + ${PYTHON_LIBRARY} + ${GeographicLib_LIBRARIES} + ${PugiXML_LIBRARIES} + ) + list(APPEND LINKED_LIBRARIES ${LIBRARY_NAME}) + endif() +endforeach() + +# build each python api binding submodule +foreach(SUBMODULE ${MODUELS}) + set(API_LIBRARY_NAME "${PROJECT_NAME}_${SUBMODULE}_pyapi") + add_library(${API_LIBRARY_NAME} SHARED + lanelet2_python/python_api/${SUBMODULE}.cpp # binding codes + ) + target_compile_definitions(${API_LIBRARY_NAME} PRIVATE -DPYTHON_API_MODULE_NAME=lib${API_LIBRARY_NAME}) + target_link_libraries(${API_LIBRARY_NAME} + ${Boost_LIBRARIES} + ${PYTHON_LIBRARY} + ${LINKED_LIBRARIES} + ) +endforeach() diff --git a/lanelet2/CMakeLists.txt b/lanelet2/CMakeLists.txt new file mode 100644 index 00000000..a3b262a1 --- /dev/null +++ b/lanelet2/CMakeLists.txt @@ -0,0 +1,4 @@ +cmake_minimum_required(VERSION 2.8.3) +project(lanelet2) +find_package(catkin REQUIRED) +catkin_metapackage() diff --git a/lanelet2/clang-tidy-fixes.yaml b/lanelet2/clang-tidy-fixes.yaml new file mode 100644 index 00000000..4be8fab3 --- /dev/null +++ b/lanelet2/clang-tidy-fixes.yaml @@ -0,0 +1,808 @@ +--- +MainSourceFile: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/test/test_regulatory_element.cpp +Diagnostics: + - DiagnosticName: clang-diagnostic-error + Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' + FileOffset: 0 + FilePath: '' + Replacements: + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''areaData_''' + FileOffset: 11081 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Area.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Area.h + Offset: 10712 + Length: 9 + ReplacementText: areaData + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Area.h + Offset: 11081 + Length: 9 + ReplacementText: areaData + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''laneletData_''' + FileOffset: 11790 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h + Offset: 11352 + Length: 12 + ReplacementText: laneletData + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h + Offset: 11790 + Length: 12 + ReplacementText: laneletData + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''inverted_''' + FileOffset: 11811 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h + Offset: 11384 + Length: 9 + ReplacementText: inverted + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h + Offset: 11811 + Length: 9 + ReplacementText: inverted + - DiagnosticName: mrt-eigen-alignment + Message: 'Missing aligned allocator for this container value type (aka ''section >, 2>'').' + FileOffset: 0 + FilePath: '' + Replacements: + - DiagnosticName: clang-diagnostic-error + Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' + FileOffset: 0 + FilePath: '' + Replacements: + - DiagnosticName: clang-diagnostic-error + Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' + FileOffset: 0 + FilePath: '' + Replacements: + - DiagnosticName: clang-diagnostic-error + Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' + FileOffset: 0 + FilePath: '' + Replacements: + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''areaData_''' + FileOffset: 11081 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Area.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Area.h + Offset: 10712 + Length: 9 + ReplacementText: areaData + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Area.h + Offset: 11081 + Length: 9 + ReplacementText: areaData + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''laneletData_''' + FileOffset: 11790 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h + Offset: 11352 + Length: 12 + ReplacementText: laneletData + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h + Offset: 11790 + Length: 12 + ReplacementText: laneletData + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''inverted_''' + FileOffset: 11811 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h + Offset: 11384 + Length: 9 + ReplacementText: inverted + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h + Offset: 11811 + Length: 9 + ReplacementText: inverted + - DiagnosticName: clang-diagnostic-error + Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' + FileOffset: 0 + FilePath: '' + Replacements: + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''laneletData_''' + FileOffset: 11790 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h + Offset: 11352 + Length: 12 + ReplacementText: laneletData + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h + Offset: 11790 + Length: 12 + ReplacementText: laneletData + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''inverted_''' + FileOffset: 11811 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h + Offset: 11384 + Length: 9 + ReplacementText: inverted + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Lanelet.h + Offset: 11811 + Length: 9 + ReplacementText: inverted + - DiagnosticName: clang-diagnostic-error + Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' + FileOffset: 0 + FilePath: '' + Replacements: + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''areaData_''' + FileOffset: 11081 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Area.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Area.h + Offset: 10712 + Length: 9 + ReplacementText: areaData + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/../primitives/Area.h + Offset: 11081 + Length: 9 + ReplacementText: areaData + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''distanceToBorder3d'' declaration' + FileOffset: 9857 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Offset: 9830 + Length: 142 + ReplacementText: '' + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''laneletData_''' + FileOffset: 11790 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11352 + Length: 12 + ReplacementText: laneletData + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11790 + Length: 12 + ReplacementText: laneletData + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''inverted_''' + FileOffset: 11811 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11384 + Length: 9 + ReplacementText: inverted + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11811 + Length: 9 + ReplacementText: inverted + - DiagnosticName: clang-diagnostic-error + Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' + FileOffset: 0 + FilePath: '' + Replacements: + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''elements_''' + FileOffset: 9094 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h + Offset: 9094 + Length: 9 + ReplacementText: elements + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/src/LaneletMap.cpp + Offset: 10669 + Length: 9 + ReplacementText: elements + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/src/LaneletMap.cpp + Offset: 10915 + Length: 9 + ReplacementText: elements + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/src/LaneletMap.cpp + Offset: 11158 + Length: 9 + ReplacementText: elements + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''tree_''' + FileOffset: 9185 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h + Offset: 9185 + Length: 5 + ReplacementText: tree + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/src/LaneletMap.cpp + Offset: 10692 + Length: 5 + ReplacementText: tree + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/src/LaneletMap.cpp + Offset: 10938 + Length: 5 + ReplacementText: tree + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/src/LaneletMap.cpp + Offset: 11181 + Length: 5 + ReplacementText: tree + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''distanceToBorder3d'' declaration' + FileOffset: 7722 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''projectedBorderPoint3d'' declaration' + FileOffset: 9731 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''distanceToBorder3d'' declaration' + FileOffset: 9857 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Offset: 9830 + Length: 142 + ReplacementText: '' + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''touches2d'' declaration' + FileOffset: 10026 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''overlaps2d'' declaration' + FileOffset: 10140 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''overlaps3d'' declaration' + FileOffset: 10295 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''areaData_''' + FileOffset: 11081 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Offset: 10712 + Length: 9 + ReplacementText: areaData + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Offset: 11081 + Length: 9 + ReplacementText: areaData + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''laneletData_''' + FileOffset: 11790 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11352 + Length: 12 + ReplacementText: laneletData + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11790 + Length: 12 + ReplacementText: laneletData + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''inverted_''' + FileOffset: 11811 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11384 + Length: 9 + ReplacementText: inverted + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11811 + Length: 9 + ReplacementText: inverted + - DiagnosticName: clang-analyzer-core.NonNullParamChecker + Message: Forming reference to null pointer + FileOffset: 5981 + FilePath: /usr/include/boost/geometry/index/detail/rtree/node/variant_dynamic.hpp + Replacements: + - DiagnosticName: clang-diagnostic-error + Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' + FileOffset: 0 + FilePath: '' + Replacements: + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''distanceToBorder3d'' declaration' + FileOffset: 9857 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Offset: 9830 + Length: 142 + ReplacementText: '' + - DiagnosticName: clang-diagnostic-error + Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' + FileOffset: 0 + FilePath: '' + Replacements: + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''areaData_''' + FileOffset: 11081 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Offset: 10712 + Length: 9 + ReplacementText: areaData + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Offset: 11081 + Length: 9 + ReplacementText: areaData + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''laneletData_''' + FileOffset: 11790 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11352 + Length: 12 + ReplacementText: laneletData + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11790 + Length: 12 + ReplacementText: laneletData + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''inverted_''' + FileOffset: 11811 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11384 + Length: 9 + ReplacementText: inverted + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11811 + Length: 9 + ReplacementText: inverted + - DiagnosticName: clang-diagnostic-error + Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' + FileOffset: 0 + FilePath: '' + Replacements: + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''distanceToBorder3d'' declaration' + FileOffset: 7722 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''projectedBorderPoint3d'' declaration' + FileOffset: 9731 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''distanceToBorder3d'' declaration' + FileOffset: 9857 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Offset: 9830 + Length: 142 + ReplacementText: '' + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''touches2d'' declaration' + FileOffset: 10026 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''overlaps2d'' declaration' + FileOffset: 10140 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''overlaps3d'' declaration' + FileOffset: 10295 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''areaData_''' + FileOffset: 11081 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Offset: 10712 + Length: 9 + ReplacementText: areaData + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Offset: 11081 + Length: 9 + ReplacementText: areaData + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''laneletData_''' + FileOffset: 11790 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11352 + Length: 12 + ReplacementText: laneletData + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11790 + Length: 12 + ReplacementText: laneletData + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''inverted_''' + FileOffset: 11811 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11384 + Length: 9 + ReplacementText: inverted + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11811 + Length: 9 + ReplacementText: inverted + - DiagnosticName: clang-diagnostic-error + Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' + FileOffset: 0 + FilePath: '' + Replacements: + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''distanceToBorder3d'' declaration' + FileOffset: 7722 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''projectedBorderPoint3d'' declaration' + FileOffset: 9731 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''distanceToBorder3d'' declaration' + FileOffset: 9857 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Offset: 9830 + Length: 142 + ReplacementText: '' + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''touches2d'' declaration' + FileOffset: 10026 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''overlaps2d'' declaration' + FileOffset: 10140 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''overlaps3d'' declaration' + FileOffset: 10295 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''areaData_''' + FileOffset: 11081 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Offset: 10712 + Length: 9 + ReplacementText: areaData + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Offset: 11081 + Length: 9 + ReplacementText: areaData + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''laneletData_''' + FileOffset: 11790 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11352 + Length: 12 + ReplacementText: laneletData + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11790 + Length: 12 + ReplacementText: laneletData + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''inverted_''' + FileOffset: 11811 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11384 + Length: 9 + ReplacementText: inverted + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11811 + Length: 9 + ReplacementText: inverted + - DiagnosticName: clang-diagnostic-error + Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' + FileOffset: 0 + FilePath: '' + Replacements: + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''elements_''' + FileOffset: 9094 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h + Offset: 9094 + Length: 9 + ReplacementText: elements + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''tree_''' + FileOffset: 9185 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h + Offset: 9185 + Length: 5 + ReplacementText: tree + - DiagnosticName: misc-macro-parentheses + Message: macro argument should be enclosed in parentheses + FileOffset: 18120 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h + Offset: 18120 + Length: 0 + ReplacementText: '(' + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h + Offset: 18124 + Length: 0 + ReplacementText: ')' + - DiagnosticName: misc-macro-parentheses + Message: macro argument should be enclosed in parentheses + FileOffset: 18375 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h + Offset: 18375 + Length: 0 + ReplacementText: '(' + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/LaneletMap.h + Offset: 18379 + Length: 0 + ReplacementText: ')' + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''areaData_''' + FileOffset: 11081 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Offset: 10712 + Length: 9 + ReplacementText: areaData + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Offset: 11081 + Length: 9 + ReplacementText: areaData + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''laneletData_''' + FileOffset: 11790 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11352 + Length: 12 + ReplacementText: laneletData + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11790 + Length: 12 + ReplacementText: laneletData + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''inverted_''' + FileOffset: 11811 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11384 + Length: 9 + ReplacementText: inverted + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11811 + Length: 9 + ReplacementText: inverted + - DiagnosticName: clang-diagnostic-error + Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' + FileOffset: 0 + FilePath: '' + Replacements: + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''distanceToBorder3d'' declaration' + FileOffset: 7722 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''projectedBorderPoint3d'' declaration' + FileOffset: 9731 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''distanceToBorder3d'' declaration' + FileOffset: 9857 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Offset: 9830 + Length: 142 + ReplacementText: '' + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''touches2d'' declaration' + FileOffset: 10026 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''overlaps2d'' declaration' + FileOffset: 10140 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''overlaps3d'' declaration' + FileOffset: 10295 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''areaData_''' + FileOffset: 11081 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Offset: 10712 + Length: 9 + ReplacementText: areaData + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Offset: 11081 + Length: 9 + ReplacementText: areaData + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''laneletData_''' + FileOffset: 11790 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11352 + Length: 12 + ReplacementText: laneletData + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11790 + Length: 12 + ReplacementText: laneletData + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''inverted_''' + FileOffset: 11811 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11384 + Length: 9 + ReplacementText: inverted + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11811 + Length: 9 + ReplacementText: inverted + - DiagnosticName: clang-diagnostic-error + Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' + FileOffset: 0 + FilePath: '' + Replacements: + - DiagnosticName: clang-diagnostic-error + Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' + FileOffset: 0 + FilePath: '' + Replacements: + - DiagnosticName: readability-redundant-declaration + Message: 'redundant ''distanceToBorder3d'' declaration' + FileOffset: 9857 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/Polygon.h + Offset: 9830 + Length: 142 + ReplacementText: '' + - DiagnosticName: clang-diagnostic-error + Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' + FileOffset: 0 + FilePath: '' + Replacements: + - DiagnosticName: clang-diagnostic-error + Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' + FileOffset: 0 + FilePath: '' + Replacements: + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''areaData_''' + FileOffset: 11081 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Offset: 10712 + Length: 9 + ReplacementText: areaData + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Offset: 11081 + Length: 9 + ReplacementText: areaData + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''laneletData_''' + FileOffset: 11790 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11352 + Length: 12 + ReplacementText: laneletData + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11790 + Length: 12 + ReplacementText: laneletData + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''inverted_''' + FileOffset: 11811 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11384 + Length: 9 + ReplacementText: inverted + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11811 + Length: 9 + ReplacementText: inverted + - DiagnosticName: clang-diagnostic-error + Message: 'unsupported argument ''bounds-strict'' to option ''fsanitize=''' + FileOffset: 0 + FilePath: '' + Replacements: + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''areaData_''' + FileOffset: 11081 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Offset: 10712 + Length: 9 + ReplacementText: areaData + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Area.h + Offset: 11081 + Length: 9 + ReplacementText: areaData + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''laneletData_''' + FileOffset: 11790 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11352 + Length: 12 + ReplacementText: laneletData + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11790 + Length: 12 + ReplacementText: laneletData + - DiagnosticName: readability-identifier-naming + Message: 'invalid case style for protected member ''inverted_''' + FileOffset: 11811 + FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Replacements: + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11384 + Length: 9 + ReplacementText: inverted + - FilePath: /home/poggenhans/workspace/lanelet2/src/lanelet2/lanelet2_core/include/lanelet2_core/geometry/impl/../../primitives/Lanelet.h + Offset: 11811 + Length: 9 + ReplacementText: inverted +... diff --git a/lanelet2/codeclimate.json b/lanelet2/codeclimate.json new file mode 100644 index 00000000..5ea91997 --- /dev/null +++ b/lanelet2/codeclimate.json @@ -0,0 +1,354 @@ +[ + { + "description": "object destroyed immediately after creation; did you mean to name the object?", + "check_name": "misc-unused-raii", + "location": { + "path": "python_api/projection.cpp", + "lines": { + "begin": 10, + "end": 10 + } + }, + "fingerprint": "a3ca5c285124ed783173b1f44bab0076", + "type": "issue", + "categories": [ + "Style" + ] + }, + { + "description": "object destroyed immediately after creation; did you mean to name the object?", + "check_name": "misc-unused-raii", + "location": { + "path": "python_api/routing.cpp", + "lines": { + "begin": 54, + "end": 54 + } + }, + "fingerprint": "d7de0ccce2a157bd78fb0b71032309a3", + "type": "issue", + "categories": [ + "Style" + ] + }, + { + "description": "object destroyed immediately after creation; did you mean to name the object?", + "check_name": "misc-unused-raii", + "location": { + "path": "python_api/routing.cpp", + "lines": { + "begin": 58, + "end": 58 + } + }, + "fingerprint": "9ab7b6a0ea215db9f91dedb1fa096901", + "type": "issue", + "categories": [ + "Style" + ] + }, + { + "description": "object destroyed immediately after creation; did you mean to name the object?", + "check_name": "misc-unused-raii", + "location": { + "path": "python_api/routing.cpp", + "lines": { + "begin": 64, + "end": 64 + } + }, + "fingerprint": "883cbbb11148baef96640bb86d760ca2", + "type": "issue", + "categories": [ + "Style" + ] + }, + { + "description": "object destroyed immediately after creation; did you mean to name the object?", + "check_name": "misc-unused-raii", + "location": { + "path": "python_api/projection.cpp", + "lines": { + "begin": 10, + "end": 10 + } + }, + "fingerprint": "a3ca5c285124ed783173b1f44bab0076", + "type": "issue", + "categories": [ + "Style" + ] + }, + { + "description": "object destroyed immediately after creation; did you mean to name the object?", + "check_name": "misc-unused-raii", + "location": { + "path": "python_api/routing.cpp", + "lines": { + "begin": 54, + "end": 54 + } + }, + "fingerprint": "d7de0ccce2a157bd78fb0b71032309a3", + "type": "issue", + "categories": [ + "Style" + ] + }, + { + "description": "object destroyed immediately after creation; did you mean to name the object?", + "check_name": "misc-unused-raii", + "location": { + "path": "python_api/routing.cpp", + "lines": { + "begin": 58, + "end": 58 + } + }, + "fingerprint": "9ab7b6a0ea215db9f91dedb1fa096901", + "type": "issue", + "categories": [ + "Style" + ] + }, + { + "description": "object destroyed immediately after creation; did you mean to name the object?", + "check_name": "misc-unused-raii", + "location": { + "path": "python_api/routing.cpp", + "lines": { + "begin": 64, + "end": 64 + } + }, + "fingerprint": "883cbbb11148baef96640bb86d760ca2", + "type": "issue", + "categories": [ + "Style" + ] + }, + { + "description": "invalid case style for protected member 'areaData_'", + "check_name": "readability-identifier-naming", + "location": { + "path": "include/lanelet2_core/primitives/Area.h", + "lines": { + "begin": 326, + "end": 326 + } + }, + "fingerprint": "59b85773b3ef82e452c98e3d803472cf", + "type": "issue", + "categories": [ + "Style" + ] + }, + { + "description": "invalid case style for protected member 'laneletData_'", + "check_name": "readability-identifier-naming", + "location": { + "path": "include/lanelet2_core/primitives/Lanelet.h", + "lines": { + "begin": 329, + "end": 329 + } + }, + "fingerprint": "3c10549031d30b98307c338fce8db471", + "type": "issue", + "categories": [ + "Style" + ] + }, + { + "description": "invalid case style for protected member 'inverted_'", + "check_name": "readability-identifier-naming", + "location": { + "path": "include/lanelet2_core/primitives/Lanelet.h", + "lines": { + "begin": 330, + "end": 330 + } + }, + "fingerprint": "364db3255451f53c87df3d8b623be161", + "type": "issue", + "categories": [ + "Style" + ] + }, + { + "description": "redundant 'distanceToBorder3d' declaration", + "check_name": "readability-redundant-declaration", + "location": { + "path": "include/lanelet2_core/geometry/Polygon.h", + "lines": { + "begin": 314, + "end": 314 + } + }, + "fingerprint": "f95628db2716bd179d891c360b496cbe", + "type": "issue", + "categories": [ + "Style" + ] + }, + { + "description": "invalid case style for protected member 'elements_'", + "check_name": "readability-identifier-naming", + "location": { + "path": "include/lanelet2_core/LaneletMap.h", + "lines": { + "begin": 259, + "end": 259 + } + }, + "fingerprint": "36d99b506714b83d29cb738084dc13a8", + "type": "issue", + "categories": [ + "Style" + ] + }, + { + "description": "invalid case style for protected member 'tree_'", + "check_name": "readability-identifier-naming", + "location": { + "path": "include/lanelet2_core/LaneletMap.h", + "lines": { + "begin": 261, + "end": 261 + } + }, + "fingerprint": "cb84886f3f5a74798da9e3c78c232103", + "type": "issue", + "categories": [ + "Style" + ] + }, + { + "description": "redundant 'distanceToBorder3d' declaration", + "check_name": "readability-redundant-declaration", + "location": { + "path": "include/lanelet2_core/geometry/Polygon.h", + "lines": { + "begin": 253, + "end": 253 + } + }, + "fingerprint": "98cdc6d92d5902824a1f32161e1e59f5", + "type": "issue", + "categories": [ + "Style" + ] + }, + { + "description": "redundant 'projectedBorderPoint3d' declaration", + "check_name": "readability-redundant-declaration", + "location": { + "path": "include/lanelet2_core/geometry/Polygon.h", + "lines": { + "begin": 312, + "end": 312 + } + }, + "fingerprint": "65be55174d6519502a0faab318088f63", + "type": "issue", + "categories": [ + "Style" + ] + }, + { + "description": "redundant 'touches2d' declaration", + "check_name": "readability-redundant-declaration", + "location": { + "path": "include/lanelet2_core/geometry/Polygon.h", + "lines": { + "begin": 318, + "end": 318 + } + }, + "fingerprint": "2fc119c2244885c5da19bb4824512463", + "type": "issue", + "categories": [ + "Style" + ] + }, + { + "description": "redundant 'overlaps2d' declaration", + "check_name": "readability-redundant-declaration", + "location": { + "path": "include/lanelet2_core/geometry/Polygon.h", + "lines": { + "begin": 321, + "end": 321 + } + }, + "fingerprint": "7f27a2d822f4dcf5832400e3124c16fe", + "type": "issue", + "categories": [ + "Style" + ] + }, + { + "description": "redundant 'overlaps3d' declaration", + "check_name": "readability-redundant-declaration", + "location": { + "path": "include/lanelet2_core/geometry/Polygon.h", + "lines": { + "begin": 325, + "end": 325 + } + }, + "fingerprint": "ec520eb6b63767294020e0cb7a8a781d", + "type": "issue", + "categories": [ + "Style" + ] + }, + { + "description": "Forming reference to null pointer", + "check_name": "clang-analyzer-core.NonNullParamChecker", + "location": { + "path": "../../../../../../../usr/include/boost/geometry/index/detail/rtree/node/variant_dynamic.hpp", + "lines": { + "begin": 186, + "end": 186 + } + }, + "fingerprint": "821a43b1e8e5517c5ab4f75e0c086dd4", + "type": "issue", + "categories": [ + "Style" + ] + }, + { + "description": "macro argument should be enclosed in parentheses", + "check_name": "misc-macro-parentheses", + "location": { + "path": "include/lanelet2_core/LaneletMap.h", + "lines": { + "begin": 488, + "end": 488 + } + }, + "fingerprint": "af0a06b5683612bfba962fda54789374", + "type": "issue", + "categories": [ + "Style" + ] + }, + { + "description": "macro argument should be enclosed in parentheses", + "check_name": "misc-macro-parentheses", + "location": { + "path": "include/lanelet2_core/LaneletMap.h", + "lines": { + "begin": 492, + "end": 492 + } + }, + "fingerprint": "3b78e479dfc89bf24da0f85c7d3e83af", + "type": "issue", + "categories": [ + "Style" + ] + } +] \ No newline at end of file diff --git a/lanelet2/package.xml b/lanelet2/package.xml new file mode 100644 index 00000000..96e5b8c6 --- /dev/null +++ b/lanelet2/package.xml @@ -0,0 +1,23 @@ + + lanelet2 + 0.8.0 + Meta-package for lanelet2 + + BSD + Fabian Poggenhans + Fabian Poggenhans + https://github.com/fzi-forschungszentrum-informatik/lanelet2.git + catkin + lanelet2_core + lanelet2_io + lanelet2_traffic_rules + lanelet2_routing + lanelet2_python + lanelet2_maps + lanelet2_projection + lanelet2_validation + lanelet2_examples + + + + diff --git a/pylanelet2/__init__.py b/pylanelet2/__init__.py new file mode 100755 index 00000000..e69de29b diff --git a/pylanelet2/core.py b/pylanelet2/core.py new file mode 100755 index 00000000..d9431c16 --- /dev/null +++ b/pylanelet2/core.py @@ -0,0 +1 @@ +from lanelet2.liblanelet2_core_pyapi import * diff --git a/pylanelet2/geometry.py b/pylanelet2/geometry.py new file mode 100755 index 00000000..83663e5e --- /dev/null +++ b/pylanelet2/geometry.py @@ -0,0 +1 @@ +from lanelet2.liblanelet2_geometry_pyapi import * diff --git a/pylanelet2/io.py b/pylanelet2/io.py new file mode 100755 index 00000000..6e84cc16 --- /dev/null +++ b/pylanelet2/io.py @@ -0,0 +1 @@ +from lanelet2.liblanelet2_io_pyapi import * diff --git a/pylanelet2/projection.py b/pylanelet2/projection.py new file mode 100755 index 00000000..671eb0c8 --- /dev/null +++ b/pylanelet2/projection.py @@ -0,0 +1 @@ +from lanelet2.liblanelet2_projection_pyapi import * diff --git a/pylanelet2/routing.py b/pylanelet2/routing.py new file mode 100755 index 00000000..3462d944 --- /dev/null +++ b/pylanelet2/routing.py @@ -0,0 +1 @@ +from lanelet2.liblanelet2_routing_pyapi import * diff --git a/pylanelet2/traffic_rules.py b/pylanelet2/traffic_rules.py new file mode 100755 index 00000000..d186462e --- /dev/null +++ b/pylanelet2/traffic_rules.py @@ -0,0 +1 @@ +from lanelet2.liblanelet2_traffic_rules_pyapi import * From 4f0197d50ce17e5e824188983efd89d9422639ff Mon Sep 17 00:00:00 2001 From: yuzhangbit Date: Sun, 13 Jan 2019 23:40:19 +0800 Subject: [PATCH 03/20] make it work with python3 --- lanelet2_python/python_api/core.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lanelet2_python/python_api/core.cpp b/lanelet2_python/python_api/core.cpp index 002cfa8d..7a94bdeb 100644 --- a/lanelet2_python/python_api/core.cpp +++ b/lanelet2_python/python_api/core.cpp @@ -23,10 +23,10 @@ struct AttributeFromPythonStr { boost::python::converter::registry::push_back(&convertible, &construct, boost::python::type_id()); } - static void* convertible(PyObject* objPtr) { return PyString_Check(objPtr) ? objPtr : nullptr; } // NOLINT + static void* convertible(PyObject* objPtr) { return PyUnicode_Check(objPtr) ? objPtr : nullptr; } // NOLINT static void construct(PyObject* objPtr, boost::python::converter::rvalue_from_python_stage1_data* data) { - const char* value = PyString_AsString(objPtr); + const char* value = PyUnicode_AS_DATA(objPtr); if (value == nullptr) { boost::python::throw_error_already_set(); } From 13cfad7dd2c76e6374b2b6f54eaeb0efd8395ac5 Mon Sep 17 00:00:00 2001 From: yuzhangbit Date: Mon, 14 Jan 2019 09:29:15 +0800 Subject: [PATCH 04/20] get setup.py working --- pylanelet2/core.py | 1 - pylanelet2/geometry.py | 1 - pylanelet2/io.py | 1 - pylanelet2/lanelet2.egg-info/PKG-INFO | 13 +++++++++++++ pylanelet2/lanelet2.egg-info/SOURCES.txt | 7 +++++++ pylanelet2/lanelet2.egg-info/dependency_links.txt | 1 + pylanelet2/lanelet2.egg-info/not-zip-safe | 1 + pylanelet2/lanelet2.egg-info/top_level.txt | 1 + pylanelet2/{ => lanelet2}/__init__.py | 0 pylanelet2/lanelet2/core.py | 1 + pylanelet2/lanelet2/geometry.py | 1 + pylanelet2/lanelet2/io.py | 1 + pylanelet2/lanelet2/projection.py | 1 + pylanelet2/lanelet2/routing.py | 1 + pylanelet2/lanelet2/traffic_rules.py | 1 + pylanelet2/projection.py | 1 - pylanelet2/routing.py | 1 - pylanelet2/traffic_rules.py | 1 - 18 files changed, 29 insertions(+), 6 deletions(-) delete mode 100755 pylanelet2/core.py delete mode 100755 pylanelet2/geometry.py delete mode 100755 pylanelet2/io.py create mode 100644 pylanelet2/lanelet2.egg-info/PKG-INFO create mode 100644 pylanelet2/lanelet2.egg-info/SOURCES.txt create mode 100644 pylanelet2/lanelet2.egg-info/dependency_links.txt create mode 100644 pylanelet2/lanelet2.egg-info/not-zip-safe create mode 100644 pylanelet2/lanelet2.egg-info/top_level.txt rename pylanelet2/{ => lanelet2}/__init__.py (100%) create mode 100755 pylanelet2/lanelet2/core.py create mode 100755 pylanelet2/lanelet2/geometry.py create mode 100755 pylanelet2/lanelet2/io.py create mode 100755 pylanelet2/lanelet2/projection.py create mode 100755 pylanelet2/lanelet2/routing.py create mode 100755 pylanelet2/lanelet2/traffic_rules.py delete mode 100755 pylanelet2/projection.py delete mode 100755 pylanelet2/routing.py delete mode 100755 pylanelet2/traffic_rules.py diff --git a/pylanelet2/core.py b/pylanelet2/core.py deleted file mode 100755 index d9431c16..00000000 --- a/pylanelet2/core.py +++ /dev/null @@ -1 +0,0 @@ -from lanelet2.liblanelet2_core_pyapi import * diff --git a/pylanelet2/geometry.py b/pylanelet2/geometry.py deleted file mode 100755 index 83663e5e..00000000 --- a/pylanelet2/geometry.py +++ /dev/null @@ -1 +0,0 @@ -from lanelet2.liblanelet2_geometry_pyapi import * diff --git a/pylanelet2/io.py b/pylanelet2/io.py deleted file mode 100755 index 6e84cc16..00000000 --- a/pylanelet2/io.py +++ /dev/null @@ -1 +0,0 @@ -from lanelet2.liblanelet2_io_pyapi import * diff --git a/pylanelet2/lanelet2.egg-info/PKG-INFO b/pylanelet2/lanelet2.egg-info/PKG-INFO new file mode 100644 index 00000000..4247d335 --- /dev/null +++ b/pylanelet2/lanelet2.egg-info/PKG-INFO @@ -0,0 +1,13 @@ +Metadata-Version: 1.1 +Name: lanelet2 +Version: 0.0.1 +Summary: A standalone python module for the lanelet2 library. +Home-page: https://github.com/yuzhangbit/lanelet2_standalone +Author: yuzhangbit +Author-email: yu.zhang.bit@gmail.com +License: BSD +Description: UNKNOWN +Platform: UNKNOWN +Classifier: Intended Audience :: Developers +Classifier: Topic :: Software Development :: autonomous driving +Classifier: Programming Language :: Python :: 3.5 diff --git a/pylanelet2/lanelet2.egg-info/SOURCES.txt b/pylanelet2/lanelet2.egg-info/SOURCES.txt new file mode 100644 index 00000000..20ab4e82 --- /dev/null +++ b/pylanelet2/lanelet2.egg-info/SOURCES.txt @@ -0,0 +1,7 @@ +README.md +setup.py +pylanelet2/lanelet2.egg-info/PKG-INFO +pylanelet2/lanelet2.egg-info/SOURCES.txt +pylanelet2/lanelet2.egg-info/dependency_links.txt +pylanelet2/lanelet2.egg-info/not-zip-safe +pylanelet2/lanelet2.egg-info/top_level.txt \ No newline at end of file diff --git a/pylanelet2/lanelet2.egg-info/dependency_links.txt b/pylanelet2/lanelet2.egg-info/dependency_links.txt new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/pylanelet2/lanelet2.egg-info/dependency_links.txt @@ -0,0 +1 @@ + diff --git a/pylanelet2/lanelet2.egg-info/not-zip-safe b/pylanelet2/lanelet2.egg-info/not-zip-safe new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/pylanelet2/lanelet2.egg-info/not-zip-safe @@ -0,0 +1 @@ + diff --git a/pylanelet2/lanelet2.egg-info/top_level.txt b/pylanelet2/lanelet2.egg-info/top_level.txt new file mode 100644 index 00000000..bcec1b8d --- /dev/null +++ b/pylanelet2/lanelet2.egg-info/top_level.txt @@ -0,0 +1 @@ +lanelet2 diff --git a/pylanelet2/__init__.py b/pylanelet2/lanelet2/__init__.py similarity index 100% rename from pylanelet2/__init__.py rename to pylanelet2/lanelet2/__init__.py diff --git a/pylanelet2/lanelet2/core.py b/pylanelet2/lanelet2/core.py new file mode 100755 index 00000000..6ef0ff92 --- /dev/null +++ b/pylanelet2/lanelet2/core.py @@ -0,0 +1 @@ +from liblanelet2_core_pyapi import * diff --git a/pylanelet2/lanelet2/geometry.py b/pylanelet2/lanelet2/geometry.py new file mode 100755 index 00000000..1624cd5f --- /dev/null +++ b/pylanelet2/lanelet2/geometry.py @@ -0,0 +1 @@ +from liblanelet2_geometry_pyapi import * diff --git a/pylanelet2/lanelet2/io.py b/pylanelet2/lanelet2/io.py new file mode 100755 index 00000000..39508c78 --- /dev/null +++ b/pylanelet2/lanelet2/io.py @@ -0,0 +1 @@ +from liblanelet2_io_pyapi import * diff --git a/pylanelet2/lanelet2/projection.py b/pylanelet2/lanelet2/projection.py new file mode 100755 index 00000000..ae7bcc67 --- /dev/null +++ b/pylanelet2/lanelet2/projection.py @@ -0,0 +1 @@ +from liblanelet2_projection_pyapi import * diff --git a/pylanelet2/lanelet2/routing.py b/pylanelet2/lanelet2/routing.py new file mode 100755 index 00000000..f7daed57 --- /dev/null +++ b/pylanelet2/lanelet2/routing.py @@ -0,0 +1 @@ +from liblanelet2_routing_pyapi import * diff --git a/pylanelet2/lanelet2/traffic_rules.py b/pylanelet2/lanelet2/traffic_rules.py new file mode 100755 index 00000000..f54f767e --- /dev/null +++ b/pylanelet2/lanelet2/traffic_rules.py @@ -0,0 +1 @@ +from liblanelet2_traffic_rules_pyapi import * diff --git a/pylanelet2/projection.py b/pylanelet2/projection.py deleted file mode 100755 index 671eb0c8..00000000 --- a/pylanelet2/projection.py +++ /dev/null @@ -1 +0,0 @@ -from lanelet2.liblanelet2_projection_pyapi import * diff --git a/pylanelet2/routing.py b/pylanelet2/routing.py deleted file mode 100755 index 3462d944..00000000 --- a/pylanelet2/routing.py +++ /dev/null @@ -1 +0,0 @@ -from lanelet2.liblanelet2_routing_pyapi import * diff --git a/pylanelet2/traffic_rules.py b/pylanelet2/traffic_rules.py deleted file mode 100755 index d186462e..00000000 --- a/pylanelet2/traffic_rules.py +++ /dev/null @@ -1 +0,0 @@ -from lanelet2.liblanelet2_traffic_rules_pyapi import * From f15b4e8a059558b1062939359c26d0d0e9580726 Mon Sep 17 00:00:00 2001 From: yuzhangbit Date: Mon, 14 Jan 2019 09:31:28 +0800 Subject: [PATCH 05/20] clean up --- pylanelet2/lanelet2.egg-info/PKG-INFO | 13 ------------- pylanelet2/lanelet2.egg-info/SOURCES.txt | 7 ------- pylanelet2/lanelet2.egg-info/dependency_links.txt | 1 - pylanelet2/lanelet2.egg-info/not-zip-safe | 1 - pylanelet2/lanelet2.egg-info/top_level.txt | 1 - 5 files changed, 23 deletions(-) delete mode 100644 pylanelet2/lanelet2.egg-info/PKG-INFO delete mode 100644 pylanelet2/lanelet2.egg-info/SOURCES.txt delete mode 100644 pylanelet2/lanelet2.egg-info/dependency_links.txt delete mode 100644 pylanelet2/lanelet2.egg-info/not-zip-safe delete mode 100644 pylanelet2/lanelet2.egg-info/top_level.txt diff --git a/pylanelet2/lanelet2.egg-info/PKG-INFO b/pylanelet2/lanelet2.egg-info/PKG-INFO deleted file mode 100644 index 4247d335..00000000 --- a/pylanelet2/lanelet2.egg-info/PKG-INFO +++ /dev/null @@ -1,13 +0,0 @@ -Metadata-Version: 1.1 -Name: lanelet2 -Version: 0.0.1 -Summary: A standalone python module for the lanelet2 library. -Home-page: https://github.com/yuzhangbit/lanelet2_standalone -Author: yuzhangbit -Author-email: yu.zhang.bit@gmail.com -License: BSD -Description: UNKNOWN -Platform: UNKNOWN -Classifier: Intended Audience :: Developers -Classifier: Topic :: Software Development :: autonomous driving -Classifier: Programming Language :: Python :: 3.5 diff --git a/pylanelet2/lanelet2.egg-info/SOURCES.txt b/pylanelet2/lanelet2.egg-info/SOURCES.txt deleted file mode 100644 index 20ab4e82..00000000 --- a/pylanelet2/lanelet2.egg-info/SOURCES.txt +++ /dev/null @@ -1,7 +0,0 @@ -README.md -setup.py -pylanelet2/lanelet2.egg-info/PKG-INFO -pylanelet2/lanelet2.egg-info/SOURCES.txt -pylanelet2/lanelet2.egg-info/dependency_links.txt -pylanelet2/lanelet2.egg-info/not-zip-safe -pylanelet2/lanelet2.egg-info/top_level.txt \ No newline at end of file diff --git a/pylanelet2/lanelet2.egg-info/dependency_links.txt b/pylanelet2/lanelet2.egg-info/dependency_links.txt deleted file mode 100644 index 8b137891..00000000 --- a/pylanelet2/lanelet2.egg-info/dependency_links.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/pylanelet2/lanelet2.egg-info/not-zip-safe b/pylanelet2/lanelet2.egg-info/not-zip-safe deleted file mode 100644 index 8b137891..00000000 --- a/pylanelet2/lanelet2.egg-info/not-zip-safe +++ /dev/null @@ -1 +0,0 @@ - diff --git a/pylanelet2/lanelet2.egg-info/top_level.txt b/pylanelet2/lanelet2.egg-info/top_level.txt deleted file mode 100644 index bcec1b8d..00000000 --- a/pylanelet2/lanelet2.egg-info/top_level.txt +++ /dev/null @@ -1 +0,0 @@ -lanelet2 From 852f460c8493dd0651a296015a58b9a20e041504 Mon Sep 17 00:00:00 2001 From: yuzhangbit Date: Mon, 14 Jan 2019 09:57:53 +0800 Subject: [PATCH 06/20] clean up --- README.md | 93 ++++++++++--------------------------------------------- 1 file changed, 16 insertions(+), 77 deletions(-) diff --git a/README.md b/README.md index f6738509..b1edff87 100644 --- a/README.md +++ b/README.md @@ -1,96 +1,35 @@ -# Lanelet2 - -![build](https://www.mrt.kit.edu/z/gitlab/lanelet2/pipeline.svg) ![coverage](https://www.mrt.kit.edu/z/gitlab/lanelet2/coverage.svg) +# lanelet2_standalone ## Overview - -Lanelet2 is a C++ library for handling map data in the context of automated driving. It is designed to utilize high-definition map data in order to efficiently handle the challenges posed to a vehicle in complex traffic scenarios. Flexibility and extensibility are some of the core principles to handle the upcoming challenges of future maps. - -Features: -- **2D and 3D** support -- **Consistent modification**: if one point is modified, all owning objects see the change -- Supports **lane changes**, routing through areas, etc. -- **Separated routing** for pedestrians, vehicles, bikes, etc. -- Many **customization points** to add new traffic rules, routing costs, parsers, etc. -- **Simple convenience functions** for common tasks when handling maps -- **Accurate Projection** between the lat/lon geographic world and local metric coordinates -- **IO Interface** for reading and writing e.g. _osm_ data formats -- **Python2** bindings for the whole C++ interface -- **Boost Geometry** support for all thinkable kinds of geometry calculations on map primitives -- Released under the [**BSD 3-Clause license**](LICENSE) - -![](lanelet2_core/doc/images/lanelet2_example_image.png) - -Lanelet2 is the successor of the old [liblanelet](https://github.com/phbender/liblanelet/tree/master/libLanelet) that was developed in 2013. If you know Lanelet1, you might be interested in [reading this](lanelet2_core/doc/Lanelet1Compability.md). - -## Documentation - -You can find more documentation in the individual packages and in doxygen comments. Here is an overview on the most important topics: -- [Here](lanelet2_core/doc/LaneletPrimitives.md) is more information on the basic primitives that make up a Lanelet2 map. -- [Read here](lanelet2_core/doc/Architecture.md) for a primer on the **software architecture** of lanelet2. -- There is also some [documentation](lanelet2_core/doc/GeometryPrimer.md) on the geometry calculations you can do with lanelet2 primitives. -- If you are interested in Lanelet2's **projections**, you will find more [here](lanelet2_projection/doc/Map_Projections_Coordinate_Systems.md). -- To get more information on how to create valid maps, see [here](lanelet2_maps/README.md). +This is a standalone **lanelet2 python3 package** for the [Lanelet2](https://github.com/fzi-forschungszentrum-informatik/Lanelet2) library, which does not require the ROS and catkin. ## Installation -Lanelet2 uses [Catkin](https://catkin-tools.readthedocs.io/en/latest/index.html) for building and is targeted towards Linux. +pylanelet2 uses cmake and setuptools for building and is targeted towards Linux. At least C++14 is required. +### Tested Configuration +* `Ubuntu 16.04 LTS` +* `python3.5` + ### Dependencies -* `Boost` (from 1.58) +* `Boost` (from 1.58, for lanelet2_io) * `eigen3` -* [`mrt_cmake_modules`](https://github.com/KIT-MRT/mrt_cmake_modules), a CMake helper library * `pugixml` (for lanelet2_io) -* `boost-python/python2` (for lanelet2_python) +* `boost-python/python3` * `geographiclib` (for lanelet2_projection) -For Ubuntu (assuming you the ROS package repository [installed](http://wiki.ros.org/ROS/Installation)): +For Ubuntu: ```shell -sudo apt-get install libboost-dev libeigen3-dev libgeographic-dev libpugixml-dev libpython-dev libboost-python-dev python-catkin-tools +sudo apt-get install libboost-dev libeigen3-dev libgeographic-dev libpugixml-dev libpython-dev libboost-python-dev ``` ### Building -As usual with Catkin, you have to crate a workspace and clone all required packages there. Then you can build: +In the repo root folder, ```shell -mkdir catkin_ws && cd catkin_ws && mkdir src -catkin init -cd src -git clone https://github.com/KIT-MRT/mrt_cmake_modules.git -git clone https://github.com/fzi-forschungszentrum-informatik/lanelet2.git -cd .. -catkin build +sudo python3 setup.py install ``` - -## Examples -Examples and common use cases in both C++ and Python can be found [here](lanelet2_examples/README.md). - -## Packages -* **lanelet2** is the meta-package for the whole lanelet2 framework -* **lanelet2_core** implements the basic library with all the primitives, geometry calculations and the LanletMap object -* **lanelet2_io** is responsible for reading and writing lanelet maps -* **lanelet2_traffic_rules** provides support to interpret the traffic rules encoded in a map -* **lanelet2_projection** for projecting maps from WGS84 (lat/lon) to local metric coordinates -* **lanelet2_routing** implements the routing graph for routing or reachable set or queries as well as collision checking -* **lanelet2_maps** provides example maps and functionality to visualize and modify them easily in JOSM -* **lanelet2_python** implements the python interface for lanelet2 -* **lanelet2_validation** provides checks to ensure a valid lanelet2 map -* **lanelet2_examples** contains tutorials for working with Lanelet2 in C++ and Python - -## Citation - -If you are using Lanelet2 for scientific research, we would be pleased if you would cite our [publication](http://www.mrt.kit.edu/z/publ/download/2018/Poggenhans2018Lanelet2.pdf): -```latex -@inproceedings{poggenhans2018lanelet2, - title = {Lanelet2: A High-Definition Map Framework for the Future of Automated Driving}, - author = {Poggenhans, Fabian and Pauls, Jan-Hendrik and Janosovits, Johannes and Orf, Stefan and Naumann, Maximilian and Kuhnt, Florian and Mayr, Matthias}, - booktitle = {Proc.\ IEEE Intell.\ Trans.\ Syst.\ Conf.}, - year = {2018}, - address = {Hawaii, USA}, - owner = {poggenhans}, - month = {November}, - Url={http://www.mrt.kit.edu/z/publ/download/2018/Poggenhans2018Lanelet2.pdf} -} +or +```bash +/path/to/your/python3 setup.py install ``` - - From 0e27173240ba5c59014a64e397e618b1205f58ac Mon Sep 17 00:00:00 2001 From: yuzhangbit Date: Mon, 14 Jan 2019 09:59:43 +0800 Subject: [PATCH 07/20] minor update --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b1edff87..8e583ea5 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # lanelet2_standalone ## Overview -This is a standalone **lanelet2 python3 package** for the [Lanelet2](https://github.com/fzi-forschungszentrum-informatik/Lanelet2) library, which does not require the ROS and catkin. +This is a standalone lanelet2 **python3** package for the [Lanelet2](https://github.com/fzi-forschungszentrum-informatik/Lanelet2) library, which **does not** require the ROS and catkin. ## Installation pylanelet2 uses cmake and setuptools for building and is targeted towards Linux. From d1f4e5e4f2e50197839ee224cffeefe0b027997b Mon Sep 17 00:00:00 2001 From: yuzhangbit Date: Mon, 14 Jan 2019 10:05:25 +0800 Subject: [PATCH 08/20] update dependencies --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e583ea5..8590cacf 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ At least C++14 is required. For Ubuntu: ```shell -sudo apt-get install libboost-dev libeigen3-dev libgeographic-dev libpugixml-dev libpython-dev libboost-python-dev +sudo apt-get install libboost-dev libeigen3-dev libgeographic-dev libpugixml-dev libpython-dev libboost-python-dev libpython3-all-dev ``` ### Building From 39d8598b7112c7a420d26fc518526b0b69ac8728 Mon Sep 17 00:00:00 2001 From: yuzhangbit Date: Mon, 14 Jan 2019 10:14:17 +0800 Subject: [PATCH 09/20] track the original readme --- README.md.origin | 94 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 README.md.origin diff --git a/README.md.origin b/README.md.origin new file mode 100644 index 00000000..2a2139e7 --- /dev/null +++ b/README.md.origin @@ -0,0 +1,94 @@ +# Lanelet2 + +![build](https://www.mrt.kit.edu/z/gitlab/lanelet2/pipeline.svg) ![coverage](https://www.mrt.kit.edu/z/gitlab/lanelet2/coverage.svg) + +## Overview + +Lanelet2 is a C++ library for handling map data in the context of automated driving. It is designed to utilize high-definition map data in order to efficiently handle the challenges posed to a vehicle in complex traffic scenarios. Flexibility and extensibility are some of the core principles to handle the upcoming challenges of future maps. + +Features: +- **2D and 3D** support +- **Consistent modification**: if one point is modified, all owning objects see the change +- Supports **lane changes**, routing through areas, etc. +- **Separated routing** for pedestrians, vehicles, bikes, etc. +- Many **customization points** to add new traffic rules, routing costs, parsers, etc. +- **Simple convenience functions** for common tasks when handling maps +- **Accurate Projection** between the lat/lon geographic world and local metric coordinates +- **IO Interface** for reading and writing e.g. _osm_ data formats +- **Python2** bindings for the whole C++ interface +- **Boost Geometry** support for all thinkable kinds of geometry calculations on map primitives +- Released under the [**BSD 3-Clause license**](LICENSE) + +![](lanelet2_core/doc/images/lanelet2_example_image.png) + +Lanelet2 is the successor of the old [liblanelet](https://github.com/phbender/liblanelet/tree/master/libLanelet) that was developed in 2013. If you know Lanelet1, you might be interested in [reading this](lanelet2_core/doc/Lanelet1Compability.md). + +## Documentation + +You can find more documentation in the individual packages and in doxygen comments. Here is an overview on the most important topics: +- [Here](lanelet2_core/doc/LaneletPrimitives.md) is more information on the basic primitives that make up a Lanelet2 map. +- [Read here](lanelet2_core/doc/Architecture.md) for a primer on the **software architecture** of lanelet2. +- There is also some [documentation](lanelet2_core/doc/GeometryPrimer.md) on the geometry calculations you can do with lanelet2 primitives. +- If you are interested in Lanelet2's **projections**, you will find more [here](lanelet2_projection/doc/Map_Projections_Coordinate_Systems.md). +- To get more information on how to create valid maps, see [here](lanelet2_maps/README.md). + +## Installation +Lanelet2 uses [Catkin](https://catkin-tools.readthedocs.io/en/latest/index.html) for building and is targeted towards Linux. + +At least C++14 is required. + +### Dependencies +* `Boost` (from 1.58) +* `eigen3` +* [`mrt_cmake_modules`](https://github.com/KIT-MRT/mrt_cmake_modules), a CMake helper library +* `pugixml` (for lanelet2_io) +* `boost-python/python2` (for lanelet2_python) +* `geographiclib` (for lanelet2_projection) + +For Ubuntu (assuming you the ROS package repository [installed](http://wiki.ros.org/ROS/Installation)): +```shell +sudo apt-get install libboost-dev libeigen3-dev libgeographic-dev libpugixml-dev libpython-dev libboost-python-dev python-catkin-tools +``` + +### Building +As usual with Catkin, you have to crate a workspace and clone all required packages there. Then you can build: +```shell +mkdir catkin_ws && cd catkin_ws && mkdir src +catkin init +cd src +git clone https://github.com/KIT-MRT/mrt_cmake_modules.git +git clone https://github.com/fzi-forschungszentrum-informatik/lanelet2.git +cd .. +catkin build +``` + +## Examples +Examples and common use cases in both C++ and Python can be found [here](lanelet2_examples/README.md). + +## Packages +* **lanelet2** is the meta-package for the whole lanelet2 framework +* **lanelet2_core** implements the basic library with all the primitives, geometry calculations and the LanletMap object +* **lanelet2_io** is responsible for reading and writing lanelet maps +* **lanelet2_traffic_rules** provides support to interpret the traffic rules encoded in a map +* **lanelet2_projection** for projecting maps from WGS84 (lat/lon) to local metric coordinates +* **lanelet2_routing** implements the routing graph for routing or reachable set or queries as well as collision checking +* **lanelet2_maps** provides example maps and functionality to visualize and modify them easily in JOSM +* **lanelet2_python** implements the python interface for lanelet2 +* **lanelet2_validation** provides checks to ensure a valid lanelet2 map +* **lanelet2_examples** contains tutorials for working with Lanelet2 in C++ and Python + +## Citation + +If you are using Lanelet2 for scientific research, we would be pleased if you would cite our [publication](http://www.mrt.kit.edu/z/publ/download/2018/Poggenhans2018Lanelet2.pdf): +```latex +@inproceedings{poggenhans2018lanelet2, + title = {Lanelet2: A High-Definition Map Framework for the Future of Automated Driving}, + author = {Poggenhans, Fabian and Pauls, Jan-Hendrik and Janosovits, Johannes and Orf, Stefan and Naumann, Maximilian and Kuhnt, Florian and Mayr, Matthias}, + booktitle = {Proc.\ IEEE Intell.\ Trans.\ Syst.\ Conf.}, + year = {2018}, + address = {Hawaii, USA}, + owner = {poggenhans}, + month = {November}, + Url={http://www.mrt.kit.edu/z/publ/download/2018/Poggenhans2018Lanelet2.pdf} +} +``` From ebfcdcd7286ea10a603c6787ed9fabd5fdcd389b Mon Sep 17 00:00:00 2001 From: yuzhangbit Date: Mon, 14 Jan 2019 10:26:34 +0800 Subject: [PATCH 10/20] update --- CMakeLists.txt | 2 +- README.md | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f6393bd8..8009629b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,7 +43,7 @@ foreach(SUBMODULE ${MODUELS}) ) target_include_directories(${LIBRARY_NAME} PRIVATE - $) + $) target_link_libraries(${LIBRARY_NAME} ${Boost_LIBRARIES} ${PYTHON_LIBRARY} diff --git a/README.md b/README.md index 8590cacf..1171566d 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This is a standalone lanelet2 **python3** package for the [Lanelet2](https://github.com/fzi-forschungszentrum-informatik/Lanelet2) library, which **does not** require the ROS and catkin. ## Installation -pylanelet2 uses cmake and setuptools for building and is targeted towards Linux. +pylanelet2 uses cmake and setuptools for building and packaging and is targeted towards Linux. At least C++14 is required. @@ -24,7 +24,7 @@ For Ubuntu: sudo apt-get install libboost-dev libeigen3-dev libgeographic-dev libpugixml-dev libpython-dev libboost-python-dev libpython3-all-dev ``` -### Building +### Installing In the repo root folder, ```shell sudo python3 setup.py install @@ -33,3 +33,15 @@ or ```bash /path/to/your/python3 setup.py install ``` + +### Usage +```python +#!/usr/bin/env python +from lanelet2 import core, io, projection, geometry, traffic_rules +# or +from lanelet2.core import AttributeMap, TrafficLight, Lanelet, LineString3d, Point2d, Point3d, getId, LaneletMap, BoundingBox2d, BasicPoint2d +p = Point3d(getId(), 1, 100, 1000) +print(p) +assert p.x == 0 +p.id = getId() +``` From c79dde587e50aeeb8d21bb4c6cdb2849a583d2c1 Mon Sep 17 00:00:00 2001 From: yuzhangbit Date: Mon, 14 Jan 2019 10:41:58 +0800 Subject: [PATCH 11/20] ~_~ add the missing setup ignored by the original .gitignore file --- setup.py | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..768c089a --- /dev/null +++ b/setup.py @@ -0,0 +1,63 @@ +#! /usr/bin/env python3 +from setuptools import setup, Extension, find_packages +from io import open +import subprocess +from os import path +import os +import sys +from setuptools.command.build_ext import build_ext + +class CMakeExtension(Extension): + def __init__(self, name, sourcedir=''): + Extension.__init__(self, name, sources=[]) + self.sourcedir = os.path.abspath(sourcedir) +class CMakeBuild(build_ext): + def run(self): + try: + out = subprocess.check_output(['cmake', '--version']) + except OSError: + raise RuntimeError( + "CMake must be installed to build the following extensions: " + + ", ".join(e.name for e in self.extensions)) + for ext in self.extensions: + self.build_extension(ext) + + def build_extension(self, ext): + extdir = os.path.abspath( + os.path.dirname(self.get_ext_fullpath(ext.name))) + cmake_args = ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=' + extdir, + '-DPYTHON_EXECUTABLE=' + sys.executable] + + cfg = 'Debug' if self.debug else 'Release' + build_args = ['--config', cfg] + cmake_args += ['-DCMAKE_BUILD_TYPE=' + cfg] + build_args += ['--', '-j4'] + + env = os.environ.copy() + env['CXXFLAGS'] = '{} -DVERSION_INFO=\\"{}\\"'.format( + env.get('CXXFLAGS', ''), + self.distribution.get_version()) + if not os.path.exists(self.build_temp): + os.makedirs(self.build_temp) + subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, + cwd=self.build_temp, env=env) + subprocess.check_call(['cmake', '--build', '.'] + build_args, + cwd=self.build_temp) + +setup(name='lanelet2', + version='0.0.1', + description='A standalone python module for the lanelet2 library.', + url='https://github.com/yuzhangbit/lanelet2_standalone', + author='yuzhangbit', + author_email='yu.zhang.bit@gmail.com', + classifiers=[ # Optional + 'Intended Audience :: Developers', + 'Topic :: Software Development :: autonomous driving', + 'Programming Language :: Python :: 3.5', + ], + license='BSD 3-Clause', + packages=['lanelet2'], + package_dir={'lanelet2':'pylanelet2/lanelet2'}, + ext_modules=[CMakeExtension('lanelet2')], + cmdclass=dict(build_ext=CMakeBuild), + zip_safe=False,) From 4e4d49164d4892850f0a31d7c0726546203f26c2 Mon Sep 17 00:00:00 2001 From: yuzhangbit Date: Mon, 14 Jan 2019 11:01:48 +0800 Subject: [PATCH 12/20] add pip3 and setuptools install command --- README.md | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1171566d..cae13ca9 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ At least C++14 is required. For Ubuntu: ```shell -sudo apt-get install libboost-dev libeigen3-dev libgeographic-dev libpugixml-dev libpython-dev libboost-python-dev libpython3-all-dev +sudo apt-get install -y libboost-dev libeigen3-dev libgeographic-dev libpugixml-dev libpython-dev libboost-python-dev libpython3-all-dev python3-pip python3-setuptools ``` ### Installing diff --git a/setup.py b/setup.py index 768c089a..9d8d1c94 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ #! /usr/bin/env python3 -from setuptools import setup, Extension, find_packages +from setuptools import setup, Extension from io import open import subprocess from os import path From c44dda96d96703b7360828609ef2e6d8fdfc7c36 Mon Sep 17 00:00:00 2001 From: yuzhangbit Date: Mon, 14 Jan 2019 11:47:14 +0800 Subject: [PATCH 13/20] update --- README.md | 5 +++-- lanelet2_examples/scripts/tutorial.py | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cae13ca9..a79e0603 100644 --- a/README.md +++ b/README.md @@ -37,9 +37,10 @@ or ### Usage ```python #!/usr/bin/env python -from lanelet2 import core, io, projection, geometry, traffic_rules +import lanelet2 +from lanelet2 import core, io, projection, geometry # or -from lanelet2.core import AttributeMap, TrafficLight, Lanelet, LineString3d, Point2d, Point3d, getId, LaneletMap, BoundingBox2d, BasicPoint2d +from lanelet2.core import Lanelet, LineString3d, Point2d, Point3d, getId, LaneletMap, BoundingBox2d, BasicPoint2d p = Point3d(getId(), 1, 100, 1000) print(p) assert p.x == 0 diff --git a/lanelet2_examples/scripts/tutorial.py b/lanelet2_examples/scripts/tutorial.py index 433879c4..62992d4c 100755 --- a/lanelet2_examples/scripts/tutorial.py +++ b/lanelet2_examples/scripts/tutorial.py @@ -2,7 +2,7 @@ import lanelet2 import tempfile import os -from lanelet2.liblanelet2_core_pyapi import AttributeMap, TrafficLight, Lanelet, LineString3d, Point2d, Point3d, getId, \ +from lanelet2.core import AttributeMap, TrafficLight, Lanelet, LineString3d, Point2d, Point3d, getId, \ LaneletMap, BoundingBox2d, BasicPoint2d from lanelet2.projection import UtmProjector @@ -29,7 +29,7 @@ def part1primitives(): p.id = getId() p.attributes["key"] = "value" assert "key" in p.attributes - assert p.attributes["key"] == "value" + assert p.attributes["key"] == "v" # the 2d/3d mechanics work too p2d = lanelet2.geometry.to2D(p) From 8c7a5b9c38e824008c412b88e348d843ca75fbb0 Mon Sep 17 00:00:00 2001 From: yuzhangbit Date: Mon, 14 Jan 2019 13:11:53 +0800 Subject: [PATCH 14/20] fix import error --- pylanelet2/lanelet2/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pylanelet2/lanelet2/__init__.py b/pylanelet2/lanelet2/__init__.py index e69de29b..085df472 100755 --- a/pylanelet2/lanelet2/__init__.py +++ b/pylanelet2/lanelet2/__init__.py @@ -0,0 +1 @@ +__all__ = ["core", "geometry", "io", "projection", "routing", "traffic_rules"] From 42a76a40ecfdf624f20e5a9008afadb15fad8c5b Mon Sep 17 00:00:00 2001 From: yuzhangbit Date: Mon, 14 Jan 2019 13:21:17 +0800 Subject: [PATCH 15/20] more robust import --- lanelet2_examples/scripts/tutorial.py | 3 ++- pylanelet2/lanelet2/__init__.py | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lanelet2_examples/scripts/tutorial.py b/lanelet2_examples/scripts/tutorial.py index 62992d4c..0b4cbb87 100755 --- a/lanelet2_examples/scripts/tutorial.py +++ b/lanelet2_examples/scripts/tutorial.py @@ -5,6 +5,7 @@ from lanelet2.core import AttributeMap, TrafficLight, Lanelet, LineString3d, Point2d, Point3d, getId, \ LaneletMap, BoundingBox2d, BasicPoint2d from lanelet2.projection import UtmProjector +from lanelet2 import geometry example_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), "../../lanelet2_maps/res/mapping_example.osm") @@ -32,7 +33,7 @@ def part1primitives(): assert p.attributes["key"] == "v" # the 2d/3d mechanics work too - p2d = lanelet2.geometry.to2D(p) + p2d = geometry.to2D(p) # all (common) geometry calculations are available as well: p2 = Point3d(getId(), 1, 0, 0) diff --git a/pylanelet2/lanelet2/__init__.py b/pylanelet2/lanelet2/__init__.py index 085df472..7ae8c5c0 100755 --- a/pylanelet2/lanelet2/__init__.py +++ b/pylanelet2/lanelet2/__init__.py @@ -1 +1,6 @@ +from . import core +from . import geometry +from . import io +from . import routing +from . import traffic_rules __all__ = ["core", "geometry", "io", "projection", "routing", "traffic_rules"] From 7099336bbc5071694b81844ca96162801fe66d06 Mon Sep 17 00:00:00 2001 From: yuzhangbit Date: Mon, 14 Jan 2019 14:53:52 +0800 Subject: [PATCH 16/20] add needed package and cmake module --- README.md | 22 +++++++++++++++++++++- cmake/FindGeographicLib.cmake | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 cmake/FindGeographicLib.cmake diff --git a/README.md b/README.md index a79e0603..1e5a5734 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ At least C++14 is required. For Ubuntu: ```shell -sudo apt-get install -y libboost-dev libeigen3-dev libgeographic-dev libpugixml-dev libpython-dev libboost-python-dev libpython3-all-dev python3-pip python3-setuptools +sudo apt-get install -y cmake libboost-all-dev libeigen3-dev libgeographic-dev libpugixml-dev libpython-dev libboost-python-dev libpython3-all-dev python3-pip python3-setuptools ``` ### Installing @@ -35,6 +35,26 @@ or ``` ### Usage +**Note: +Importing submodules from the raw `liblanelet2_core_pyapi.so` library like below is not supported.** +```python +from lanelet2.liblanelet2_core_pyapi import AttributeMap # not supported!!! +``` +you will get errors: +``` +# not supported!!! +``` + +You can use +```python +from lanelet2 import core +# use core.AttributeMap +# or +from lanelet2.core import AttributeMap +``` +instead. + +* examples ```python #!/usr/bin/env python import lanelet2 diff --git a/cmake/FindGeographicLib.cmake b/cmake/FindGeographicLib.cmake new file mode 100644 index 00000000..4f751deb --- /dev/null +++ b/cmake/FindGeographicLib.cmake @@ -0,0 +1,21 @@ +# Look for GeographicLib +# +# Set +# GEOGRAPHICLIB_FOUND = TRUE +# GeographicLib_INCLUDE_DIRS = /usr/local/include +# GeographicLib_LIBRARIES = /usr/local/lib/libGeographic.so +# GeographicLib_LIBRARY_DIRS = /usr/local/lib + +find_package(PkgConfig) +find_path(GeographicLib_INCLUDE_DIR GeographicLib/Config.h + PATH_SUFFIXES GeographicLib + ) +set(GeographicLib_INCLUDE_DIRS ${GeographicLib_INCLUDE_DIR}) + +find_library(GeographicLib_LIBRARIES + NAMES Geographic + ) + +include (FindPackageHandleStandardArgs) +find_package_handle_standard_args (GeographicLib DEFAULT_MSG GeographicLib_LIBRARIES GeographicLib_INCLUDE_DIRS) +mark_as_advanced (GeographicLib_LIBRARIES GeographicLib_INCLUDE_DIRS) From 720160bfd2ad3dbc22cae8d35646816329fb0e83 Mon Sep 17 00:00:00 2001 From: yuzhangbit Date: Mon, 14 Jan 2019 15:07:36 +0800 Subject: [PATCH 17/20] update readme --- README.md | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 1e5a5734..68ce5076 100644 --- a/README.md +++ b/README.md @@ -34,35 +34,38 @@ or /path/to/your/python3 setup.py install ``` -### Usage +## Usage +### Example +```python +#!/usr/bin/env python +import lanelet2 +from lanelet2 import core, io, projection, geometry +# or +from lanelet2.core import Lanelet, LineString3d, Point2d, Point3d, getId, LaneletMap, BoundingBox2d, BasicPoint2d +p = Point3d(getId(), 1, 100, 1000) +print(p) +assert p.x == 0 +p.id = getId() +``` + **Note: Importing submodules from the raw `liblanelet2_core_pyapi.so` library like below is not supported.** +If you do this, ```python from lanelet2.liblanelet2_core_pyapi import AttributeMap # not supported!!! ``` -you will get errors: +you will get an error as below: ``` -# not supported!!! +>>> from lanelet2.liblanelet2_core_pyapi import AttributeMap +Traceback (most recent call last): + File "", line 1, in +ImportError: No module named 'lanelet2.liblanelet2_core_pyapi' ``` - -You can use +Instead, you can use ```python from lanelet2 import core # use core.AttributeMap # or from lanelet2.core import AttributeMap ``` -instead. - -* examples -```python -#!/usr/bin/env python -import lanelet2 -from lanelet2 import core, io, projection, geometry -# or -from lanelet2.core import Lanelet, LineString3d, Point2d, Point3d, getId, LaneletMap, BoundingBox2d, BasicPoint2d -p = Point3d(getId(), 1, 100, 1000) -print(p) -assert p.x == 0 -p.id = getId() -``` +, which is more elegant. From 4d5ac4741c1d8cd81c2631bbc1894531d6155741 Mon Sep 17 00:00:00 2001 From: yuzhangbit Date: Mon, 14 Jan 2019 15:13:45 +0800 Subject: [PATCH 18/20] minor update --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 68ce5076..2884e2ee 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ or ```python #!/usr/bin/env python import lanelet2 -from lanelet2 import core, io, projection, geometry +from lanelet2 import core, io, projection, geometry, routing, traffic_rules # or from lanelet2.core import Lanelet, LineString3d, Point2d, Point3d, getId, LaneletMap, BoundingBox2d, BasicPoint2d p = Point3d(getId(), 1, 100, 1000) From 29469fa835002324bc438b3dfb1735a07e84c1da Mon Sep 17 00:00:00 2001 From: yuzhangbit Date: Mon, 14 Jan 2019 16:19:02 +0800 Subject: [PATCH 19/20] ignore generated files --- .gitignore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 036b772a..1f632e23 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,6 @@ *.pyc setup.py CMakeLists.txt.user - +dist/ +build/ +lanelet2.egg-info/ From ae37cb885d815864ca3eca640256af5d3ebca186 Mon Sep 17 00:00:00 2001 From: yuzhangbit Date: Mon, 14 Jan 2019 17:12:57 +0800 Subject: [PATCH 20/20] fix linking issue --- CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8009629b..a2a04a9d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,10 @@ project(lanelet2) set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-backtrace-limit=0") +# by setting this, we don't need to install the generated c++ library to /usr/local +# LINKED_LIBRARIES will be installed by side with the python api binding libraries +set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-rpath='$ORIGIN'") + list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") find_package(Boost REQUIRED COMPONENTS python-py35 serialization system filesystem) @@ -42,8 +46,7 @@ foreach(SUBMODULE ${MODUELS}) ${${SUBMODULE}_SRC} ) target_include_directories(${LIBRARY_NAME} - PRIVATE - $) + PRIVATE $) target_link_libraries(${LIBRARY_NAME} ${Boost_LIBRARIES} ${PYTHON_LIBRARY} @@ -54,6 +57,7 @@ foreach(SUBMODULE ${MODUELS}) endif() endforeach() + # build each python api binding submodule foreach(SUBMODULE ${MODUELS}) set(API_LIBRARY_NAME "${PROJECT_NAME}_${SUBMODULE}_pyapi") @@ -61,6 +65,7 @@ foreach(SUBMODULE ${MODUELS}) lanelet2_python/python_api/${SUBMODULE}.cpp # binding codes ) target_compile_definitions(${API_LIBRARY_NAME} PRIVATE -DPYTHON_API_MODULE_NAME=lib${API_LIBRARY_NAME}) + #target_compile_options(${API_LIBRARY_NAME} PRIVATE -Wl,-rpath='$ORIGIN') target_link_libraries(${API_LIBRARY_NAME} ${Boost_LIBRARIES} ${PYTHON_LIBRARY}