feat(autoware_map_loader): add support of GetSelectedLanelet2Map service#889
Conversation
|
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
44106ad to
45c4b33
Compare
d793013 to
d3c0d4c
Compare
9325bf1 to
bdb63ce
Compare
6d9535a to
957122f
Compare
Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp>
Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp>
Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp>
Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp>
Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp>
957122f to
bca7481
Compare
dd4cbad to
aac0b43
Compare
Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp>
Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp>
Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp>
aac0b43 to
bb8bcf7
Compare
Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #889 +/- ##
==========================================
+ Coverage 60.55% 61.34% +0.79%
==========================================
Files 427 419 -8
Lines 25472 24301 -1171
Branches 12042 11742 -300
==========================================
- Hits 15425 14908 -517
- Misses 7089 7836 +747
+ Partials 2958 1557 -1401
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@YamatoAndo The PR is ready for review so could you review the PR? |
Signed-off-by: Ryohsuke Mitsudome <ryoshuke.mitsudome@tier4.jp>
|
It might be preferable to add the following code in |
Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp>
|
@YamatoAndo Good catch! |
|
As I observed the following error in CI build, I updated the branch. |
sasakisasaki
left a comment
There was a problem hiding this comment.
Reviewed. Though adding tests might be separated as another PR. Personally I agree with merging this PR.
After merging this PR, there will be room for refactoring such as two logic separation: application logic and ROS logic.
| @@ -1 +1 @@ | |||
| // Copyright 2021 Tier IV, Inc. | |||
There was a problem hiding this comment.
(Not a change request, just note to myself) Perhaps this header does not need to be public. We can make this header private I guess.
Co-authored-by: Junya Sasaki <j2sasaki1990@gmail.com>
|
@autowarefoundation/autoware-global-codeowners @YamatoAndo Could you kindly review this PR please? 😉 |
|
Tick the box to add this pull request to the merge queue (same as
|
Description
This must be merged after #888.
This must be merged with autowarefoundation/autoware_launch#1813.
This PR adds GetSelectedLanelet2Map service interface to map_loader to enable dynamic map loading.
This is done by adding Lanelet2SelectedMapLoaderModule class to lanelet2_map_loader, just like pointcloud_map_loader.
Related links
Parent Issue:
How was this PR tested?
Preparation
Test Case 1
Make sure the map loader can load with the single file map when
enable_selected_map_loading=false. (Regression Check)set
enable_selected_map_loadingtofalseinmap/autoware_map_loader/config/lanelet2_map_loader.param.yamlLaunch autoware_map_loader with the following commands using 3 terminals. (You will see error from
map_hash_generatordue to no pcd map, but you can ignore it for now.)service/get_selected_lanelet2_mapservice)Test Case 2
Make sure the map loader can load the single file map when
enable_selected_map_loading=true. (No metadata file required)set
enable_selected_map_loadingtotrueinmap/autoware_map_loader/config/lanelet2_map_loader.param.yamlLaunch the same commands from Test Case 1
Make sure that you see lanelet2_map_loader launched with the following node info (with
service/get_selected_lanelet2_mapservice)Test Case 3
Make sure the map loader can load the muliple lanelet2 maps when
enable_selected_map_loading=true.set
enable_selected_map_loadingtotrueinmap/autoware_map_loader/config/lanelet2_map_loader.param.yamlLaunch the following commands:
service/get_selected_lanelet2_mapservice from the node.Test Case 4
Make sure that the node fails to load multiple lanelet2 maps files when metadata file is not provided regardless of
enable_selected_map_loadingoptionNotes for reviewers
None.
Interface changes
Topic changes
Additions and removals
output/lanelet2_map_metadataautoware_map_msgs/msg/LaneletMapMetaDataenable_selected_map_loadingis true)service/get_selected_lanelet2_mapautoware_map_msgs/srv/GetSelectedLanelet2Mapenable_selected_map_loadingis true)ROS Parameter Changes
Additions and removals
enable_selected_map_loadingboolfalseservice/get_selected_lanelet2_mapservice and publish cell metadatametadata_file_pathstring""lanelet2_map_metadata.yaml; if empty or missing, bounding boxes are computed from map pointsEffects on system behavior
None.