-
Notifications
You must be signed in to change notification settings - Fork 672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(map_loader, route_handler)!: add format_version validation #7074
feat(map_loader, route_handler)!: add format_version validation #7074
Conversation
f0bddc5
to
0a9746b
Compare
map/map_loader/src/lanelet2_map_loader/lanelet2_map_loader_node.cpp
Outdated
Show resolved
Hide resolved
@soblin We should add |
The header of the sample map is written as follows
Wouldn't it be better to rewrite the header as follows?
|
I noticed the sample map does not have "MetaInfo" although our internal map has. I will update the sample map before merging this PR |
0088afa
to
11206bc
Compare
Signed-off-by: Mamoru Sobue <[email protected]>
Signed-off-by: Mamoru Sobue <[email protected]>
Signed-off-by: Mamoru Sobue <[email protected]>
11206bc
to
533965a
Compare
@soblin
|
By the way, most of the maps owned by TIER IV are |
@YamatoAndo Thank you, I fixed the regex error. With this implementation we can parse all patterns while rejecting invalid patterns. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (map_loader)
Signed-off-by: Mamoru Sobue <[email protected]>
Signed-off-by: Mamoru Sobue <[email protected]>
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
Signed-off-by: Mamoru Sobue <[email protected]>
422f6f5
to
3f1014e
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7074 +/- ##
=======================================
Coverage 28.44% 28.44%
=======================================
Files 1591 1594 +3
Lines 116213 116247 +34
Branches 49615 49634 +19
=======================================
+ Hits 33059 33070 +11
- Misses 74132 74153 +21
- Partials 9022 9024 +2
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…warefoundation#7074) Signed-off-by: Mamoru Sobue <[email protected]> Co-authored-by: Yamato Ando <[email protected]>
Description
https://github.com/orgs/autowarefoundation/discussions/4740
Related links
autowarefoundation/autoware_common#245
autowarefoundation/autoware_launch#993
Tests performed
https://evaluation.tier4.jp/evaluation/reports/64fc959f-88e5-50ce-9360-7c57d7940ea7?project_id=prd_jt
https://evaluation.tier4.jp/evaluation/reports/50c7b099-3375-5eb9-8fd5-710fe2011a9c?project_id=prd_jt
tested with autowarefoundation/autoware_common#245
If format_version == 2.1, allow_unsupported_version = true
autoware launches
if format_version == "temp", allow_unsupported_version = true
autoware launches
if format_version == "" or not provided, allow_unsupported_version = true
autoware launches
if format_version == "1.1", allow_unsupported_version = false
autoware launches
if format_version == "2.1", allow_unsupported_version = false
autoware fails
Notes for reviewers
Interface changes
It is preferable for the user to define format_version for their map
ROS Topic Changes
ROS Parameter Changes
Effects on system behavior
none
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.