forked from autowarefoundation/autoware.universe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(map_projection_loader): add map_projection_loader (autowarefound…
…ation#3986) * feat(map_projection_loader): add map_projection_loader Signed-off-by: kminoda <koji.minoda@tier4.jp> * style(pre-commit): autofix * Update default algorithm Signed-off-by: kminoda <koji.minoda@tier4.jp> * fix test Signed-off-by: kminoda <koji.minoda@tier4.jp> * style(pre-commit): autofix * add readme Signed-off-by: kminoda <koji.minoda@tier4.jp> * style(pre-commit): autofix * fix launch file and fix map_loader Signed-off-by: kminoda <koji.minoda@tier4.jp> * style(pre-commit): autofix * update lanelet2 Signed-off-by: kminoda <koji.minoda@tier4.jp> * fill yaml file path Signed-off-by: kminoda <koji.minoda@tier4.jp> * style(pre-commit): autofix * update readme Signed-off-by: kminoda <koji.minoda@tier4.jp> * style(pre-commit): autofix * minor fix Signed-off-by: kminoda <koji.minoda@tier4.jp> * style(pre-commit): autofix * fix test Signed-off-by: kminoda <koji.minoda@tier4.jp> * style(pre-commit): autofix * add include guard Signed-off-by: kminoda <koji.minoda@tier4.jp> * style(pre-commit): autofix * update test Signed-off-by: kminoda <koji.minoda@tier4.jp> * update map_loader Signed-off-by: kminoda <koji.minoda@tier4.jp> * style(pre-commit): autofix * update docs * style(pre-commit): autofix * update Signed-off-by: kminoda <koji.minoda@tier4.jp> * add dependency Signed-off-by: kminoda <koji.minoda@tier4.jp> * style(pre-commit): autofix * remove unnecessary parameter Signed-off-by: kminoda <koji.minoda@tier4.jp> * update Signed-off-by: kminoda <koji.minoda@tier4.jp> * update test Signed-off-by: kminoda <koji.minoda@tier4.jp> * style(pre-commit): autofix * add url Signed-off-by: kminoda <koji.minoda@tier4.jp> * enable python tests Signed-off-by: kminoda <koji.minoda@tier4.jp> * style(pre-commit): autofix * small fix Signed-off-by: kminoda <koji.minoda@tier4.jp> * fix grammar Signed-off-by: kminoda <koji.minoda@tier4.jp> * remove transverse mercator Signed-off-by: kminoda <koji.minoda@tier4.jp> * style(pre-commit): autofix * add rule in map Signed-off-by: kminoda <koji.minoda@tier4.jp> * fix readme of map loader Signed-off-by: kminoda <koji.minoda@tier4.jp> * remove transverse mercator for now Signed-off-by: kminoda <koji.minoda@tier4.jp> * add utm Signed-off-by: kminoda <koji.minoda@tier4.jp> * remove altitude from current projection loader Signed-off-by: kminoda <koji.minoda@tier4.jp> * style(pre-commit): autofix * fix pre-commit Signed-off-by: kminoda <koji.minoda@tier4.jp> * fix build error Signed-off-by: kminoda <koji.minoda@tier4.jp> * fix: remove package.xml Signed-off-by: kminoda <koji.minoda@tier4.jp> * fix clang-tidy Signed-off-by: kminoda <koji.minoda@tier4.jp> * style(pre-commit): autofix --------- Signed-off-by: kminoda <koji.minoda@tier4.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ryohsuke Mitsudome <43976834+mitsudome-r@users.noreply.github.com>
- Loading branch information
1 parent
b4f9f53
commit 02aad76
Showing
22 changed files
with
935 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
/**: | ||
ros__parameters: | ||
lanelet2_map_projector_type: MGRS # Options: MGRS, UTM, local | ||
latitude: 40.816617984672746 # Latitude of map_origin, using in UTM | ||
longitude: 29.360491808334285 # Longitude of map_origin, using in UTM | ||
|
||
center_line_resolution: 5.0 # [m] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
cmake_minimum_required(VERSION 3.14) | ||
project(map_projection_loader) | ||
|
||
find_package(autoware_cmake REQUIRED) | ||
autoware_package() | ||
|
||
ament_auto_find_build_dependencies() | ||
|
||
ament_auto_add_library(map_projection_loader_lib SHARED | ||
src/map_projection_loader.cpp | ||
src/load_info_from_lanelet2_map.cpp | ||
) | ||
|
||
target_link_libraries(map_projection_loader_lib yaml-cpp) | ||
|
||
ament_auto_add_executable(map_projection_loader src/map_projection_loader_node.cpp) | ||
|
||
target_compile_options(map_projection_loader PUBLIC -g -Wall -Wextra -Wpedantic -Werror) | ||
|
||
target_link_libraries(map_projection_loader map_projection_loader_lib) | ||
target_include_directories(map_projection_loader PUBLIC include) | ||
|
||
function(add_testcase filepath) | ||
get_filename_component(filename ${filepath} NAME) | ||
string(REGEX REPLACE ".cpp" "" test_name ${filename}) | ||
ament_add_gmock(${test_name} ${filepath}) | ||
target_link_libraries("${test_name}" map_projection_loader_lib) | ||
ament_target_dependencies(${test_name} ${${PROJECT_NAME}_FOUND_BUILD_DEPENDS}) | ||
endfunction() | ||
|
||
if(BUILD_TESTING) | ||
# Test python scripts | ||
add_launch_test( | ||
test/test_node_load_mgrs_from_yaml.test.py | ||
TIMEOUT "30" | ||
) | ||
add_launch_test( | ||
test/test_node_load_local_from_yaml.test.py | ||
TIMEOUT "30" | ||
) | ||
add_launch_test( | ||
test/test_node_load_utm_from_yaml.test.py | ||
TIMEOUT "30" | ||
) | ||
install(DIRECTORY | ||
test/data/ | ||
DESTINATION share/${PROJECT_NAME}/test/data/ | ||
) | ||
|
||
# Test c++ scripts | ||
find_package(ament_lint_auto REQUIRED) | ||
ament_lint_auto_find_test_dependencies() | ||
add_testcase(test/test_load_info_from_lanelet2_map.cpp) | ||
endif() | ||
|
||
ament_auto_package(INSTALL_TO_SHARE | ||
launch | ||
) |
Oops, something went wrong.