Skip to content

Commit 3ee50d9

Browse files
author
berndgassmann
authored
Fix OpenDrive GeometryParamPoly3 calculation
Update version numbers to 2.4.7 * Fix OpenDrive GeometryParamPoly3 calculation * Cleanup documentation * Remove outdated and complicated plain cmake handling from docu * Removed some left-over from python-binding.cmake * Build QGIS plugin only if python is enabled * Update ad_map_access_qgis docu and release workflow
1 parent 78a4c01 commit 3ee50d9

File tree

27 files changed

+193
-255
lines changed

27 files changed

+193
-255
lines changed

.github/workflows/release_qgis_plugin.yml

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,8 @@ on:
1111

1212
jobs:
1313
publish:
14-
name: Publish for ${{ matrix.os }}
15-
runs-on: ${{ matrix.os }}
16-
strategy:
17-
matrix:
18-
include:
19-
- os: ubuntu-18.04
20-
artifact_name: ad_map_access_qgis_ubuntu1804.zip
21-
PYTHON_BINDING_VERSION: "3.6"
22-
- os: ubuntu-20.04
23-
artifact_name: ad_map_access_qgis_ubuntu2004.zip
24-
PYTHON_BINDING_VERSION: "3.8"
14+
name: Publish AD-Map QGIS Plugin
15+
runs-on: ubuntu-20.04
2516

2617
steps:
2718
- uses: actions/checkout@v2
@@ -32,23 +23,19 @@ jobs:
3223
run: bash .github/workflows/install_dependencies.sh
3324

3425
- name: Build Libraries
35-
env:
36-
PYTHON_BINDING_VERSION: ${{ matrix.PYTHON_BINDING_VERSION }}
3726
run: |
38-
colcon build --event-handlers console_direct+ --executor sequential --metas colcon_python.meta --build-base build-static --install-base install-static --cmake-args -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DPYTHON_BINDING_VERSION=${PYTHON_BINDING_VERSION}
27+
colcon build --event-handlers console_direct+ --executor sequential --metas colcon_python.meta --packages-up-to ad_map_access_qgis
3928
4029
- name: Build Package
4130
run: |
42-
cd install-static
43-
cp -r ad_map_access/lib/python3.*/site-packages/ad_map_access ad_map_access_qgis/share/qgis/python/plugins/ad_map_access_qgis/.
44-
cd ad_map_access_qgis/share/qgis/python/plugins/
45-
zip -r ${{ matrix.artifact_name }} ad_map_access_qgis/
46-
mv ${{ matrix.artifact_name }} ../../../../../../
31+
cd install/ad_map_access_qgis/share/qgis/python/plugins/
32+
zip -r ad_map_access_qgis.zip ad_map_access_qgis/
33+
mv ad_map_access_qgis.zip ../../../../../../
4734
4835
- name: Upload binaries to release
4936
uses: svenstaro/upload-release-action@v2
5037
if: ${{ github.event_name == 'release'}}
5138
with:
5239
repo_token: ${{ secrets.GITHUB_TOKEN }}
53-
file: ${{ matrix.artifact_name }}
40+
file: ad_map_access_qgis.zip
5441
tag: ${{ github.ref }}

ad_map_access/generated/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
##
1515

1616
cmake_minimum_required(VERSION 3.5)
17-
project(ad_map_access VERSION 2.4.0)
17+
project(ad_map_access VERSION 2.4.7)
1818

1919
include(GNUInstallDirs)
2020
include(CMakePackageConfigHelpers)
@@ -47,7 +47,7 @@ get_target_property(AD_MAP_OPENDRIVE_READER_INTERFACE_INCLUDE_DIRS ad_map_opendr
4747
list(APPEND INCLUDE_DIRS ${AD_MAP_OPENDRIVE_READER_INTERFACE_INCLUDE_DIRS})
4848
list(APPEND LIBRARIES ad_map_opendrive_reader)
4949

50-
find_package(ad_physics 2.4.0 REQUIRED CONFIG)
50+
find_package(ad_physics 2.4.7 REQUIRED CONFIG)
5151
find_package(spdlog REQUIRED CONFIG)
5252

5353
add_library(${PROJECT_NAME}
@@ -155,4 +155,3 @@ endif()
155155
if (ad_map_access_TOOLS_DIR)
156156
add_subdirectory(${ad_map_access_TOOLS_DIR} ad_map_access_tools)
157157
endif()
158-

ad_map_access/generated/cmake/Config.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ get_target_property(AD_MAP_OPENDRIVE_READER_INTERFACE_INCLUDE_DIRS ad_map_opendr
3030
list(APPEND INCLUDE_DIRS ${AD_MAP_OPENDRIVE_READER_INTERFACE_INCLUDE_DIRS})
3131
list(APPEND LIBRARIES ad_map_opendrive_reader)
3232

33-
find_dependency(ad_physics 2.4.0)
33+
find_dependency(ad_physics 2.4.7)
3434
find_dependency(spdlog)
3535

3636
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")

ad_map_access/generated/include/ad_map_access/Version.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
/*!
3131
* The revision of ad_map_access
3232
*/
33-
#define AD_MAP_ACCESS_VERSION_REVISION 0
33+
#define AD_MAP_ACCESS_VERSION_REVISION 7
3434

3535
/*!
3636
* The version of ad_map_access as string
3737
*/
38-
#define AD_MAP_ACCESS_VERSION_STRING "2.4.0"
38+
#define AD_MAP_ACCESS_VERSION_STRING "2.4.7"

ad_map_access/impl/src/opendrive/AdMapFactory.cpp

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,20 @@ bool AdMapFactory::addLane(::opendrive::Lane const &lane)
190190
bool ok = true;
191191
if ((lane.leftEdge.size() < 2) || (lane.rightEdge.size() < 2))
192192
{
193-
// Invalid number of points for lane"
194-
access::getLogger()->error("Invalid number of points for lane {}", lane.id);
193+
access::getLogger()->error("Invalid number of points for lane {}. Skip lane.", lane.id);
194+
return false;
195+
}
196+
197+
point::Geometry leftEcefEdge;
198+
point::Geometry rightEcefEdge;
199+
try
200+
{
201+
leftEcefEdge = toGeometry(lane.leftEdge);
202+
rightEcefEdge = toGeometry(lane.rightEdge);
203+
}
204+
catch (...)
205+
{
206+
access::getLogger()->error("Invalid points for lane {}. Skip lane.", lane.id);
195207
return false;
196208
}
197209

@@ -212,8 +224,6 @@ bool AdMapFactory::addLane(::opendrive::Lane const &lane)
212224
{
213225
ok = false;
214226
}
215-
auto const leftEcefEdge = toGeometry(lane.leftEdge);
216-
auto const rightEcefEdge = toGeometry(lane.rightEdge);
217227
if (!set(laneId, leftEcefEdge, rightEcefEdge))
218228
{
219229
ok = false;

ad_map_access/python/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def finalize_options(self):
2424
packages=["ad_map_access"],
2525
package_dir={"": sys.argv.pop(-1)},
2626
package_data={"ad_map_access": ["*.so"]},
27-
version="2.4.5",
27+
version="2.4.7",
2828
author='CARLA Simulator Team',
2929
author_email='carla.simulator@gmail.com',
3030
license="MIT",
@@ -48,7 +48,7 @@ def finalize_options(self):
4848
\
4949
See [project webpage](https://ad-map-access.readthedocs.io/en/latest/) or [doxygen docu](https://ad-map-access.readthedocs.io/en/latest/ad_map_access/apidoc/html/index.html) for a full interface description.",
5050
long_description_content_type="text/markdown",
51-
install_requires=["ad_physics>=2.4.5"],
51+
install_requires=["ad_physics>=2.4.7"],
5252
distclass=BinaryDistribution,
5353
cmdclass={'install': Install}
5454
)

ad_map_access_test_support/generated/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
##
1515

1616
cmake_minimum_required(VERSION 3.5)
17-
project(ad_map_access_test_support VERSION 2.4.0)
17+
project(ad_map_access_test_support VERSION 2.4.7)
1818

1919
include(GNUInstallDirs)
2020
include(CMakePackageConfigHelpers)
@@ -31,7 +31,7 @@ if ((NOT ad_map_access_test_support_SOURCES) OR (NOT ad_map_access_test_support_
3131
message(FATAL_ERROR "${PROJECT_NAME}: Variable ad_map_access_test_support_SOURCES or ad_map_access_test_support_INCLUDE_DIRS pointing to the generator managed library not set!")
3232
endif()
3333

34-
find_package(ad_map_access 2.4.0 REQUIRED CONFIG)
34+
find_package(ad_map_access 2.4.7 REQUIRED CONFIG)
3535

3636
add_library(${PROJECT_NAME}
3737
${ad_map_access_test_support_SOURCES}
@@ -109,4 +109,3 @@ endif()
109109
if (ad_map_access_test_support_TOOLS_DIR)
110110
add_subdirectory(${ad_map_access_test_support_TOOLS_DIR} ad_map_access_test_support_tools)
111111
endif()
112-

ad_map_access_test_support/generated/cmake/Config.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
include(CMakeFindDependencyMacro)
1919

20-
find_dependency(ad_map_access 2.4.0)
20+
find_dependency(ad_map_access 2.4.7)
2121

2222
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
2323

ad_map_access_test_support/generated/include/ad_map_access_test_support/Version.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
/*!
3131
* The revision of ad_map_access_test_support
3232
*/
33-
#define AD_MAP_ACCESS_TEST_SUPPORT_VERSION_REVISION 0
33+
#define AD_MAP_ACCESS_TEST_SUPPORT_VERSION_REVISION 7
3434

3535
/*!
3636
* The version of ad_map_access_test_support as string
3737
*/
38-
#define AD_MAP_ACCESS_TEST_SUPPORT_VERSION_STRING "2.4.0"
38+
#define AD_MAP_ACCESS_TEST_SUPPORT_VERSION_STRING "2.4.7"

ad_map_opendrive_reader/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ include(../cmake/apidoc.cmake)
1919
#convert list to string
2020
string (REPLACE ";" " " TARGET_LINK_FLAGS "${TARGET_LINK_OPTIONS}")
2121

22-
project(ad_map_opendrive_reader VERSION 3.0.0)
22+
project(ad_map_opendrive_reader VERSION 2.4.7)
2323

2424
include(GNUInstallDirs)
2525
include(CMakePackageConfigHelpers)
@@ -150,8 +150,8 @@ write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/install/${PROJECT_N
150150
COMPATIBILITY SameMajorVersion
151151
)
152152

153-
install(FILES
153+
install(FILES
154154
"${CMAKE_CURRENT_BINARY_DIR}/install/${PROJECT_NAME}Config.cmake"
155155
"${CMAKE_CURRENT_BINARY_DIR}/install/${PROJECT_NAME}ConfigVersion.cmake"
156156
DESTINATION ${CMAKECONFIG_INSTALL_DIR}
157-
)
157+
)

0 commit comments

Comments
 (0)