-
Notifications
You must be signed in to change notification settings - Fork 35
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(autoware_lanelet2_map_validator): allow prerequisites attribute for input #147
Merged
TaikiYamada4
merged 12 commits into
autowarefoundation:main
from
TaikiYamada4:feat/lanelet2_map_validator/add_prerequistes
Nov 11, 2024
Merged
feat(autoware_lanelet2_map_validator): allow prerequisites attribute for input #147
TaikiYamada4
merged 12 commits into
autowarefoundation:main
from
TaikiYamada4:feat/lanelet2_map_validator/add_prerequistes
Nov 11, 2024
Conversation
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
Moved process_requirements to validation.cpp Signed-off-by: TaikiYamada4 <[email protected]>
Signed-off-by: TaikiYamada4 <[email protected]>
Signed-off-by: TaikiYamada4 <[email protected]>
Signed-off-by: TaikiYamada4 <[email protected]>
…thCycles Signed-off-by: TaikiYamada4 <[email protected]>
…tionFailure Signed-off-by: TaikiYamada4 <[email protected]>
Signed-off-by: TaikiYamada4 <[email protected]>
Signed-off-by: TaikiYamada4 <[email protected]>
Signed-off-by: TaikiYamada4 <[email protected]>
TaikiYamada4
requested review from
anhnv3991,
soblin,
Motsu-san,
SakodaShintaro and
YamatoAndo
as code owners
November 8, 2024 05:32
Signed-off-by: TaikiYamada4 <[email protected]>
soblin
reviewed
Nov 8, 2024
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.
I think "describe" is what you mean by "descript" actually
Signed-off-by: TaikiYamada4 <[email protected]>
Signed-off-by: TaikiYamada4 <[email protected]>
soblin
approved these changes
Nov 8, 2024
TaikiYamada4
deleted the
feat/lanelet2_map_validator/add_prerequistes
branch
November 11, 2024 04:14
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces the concept of prerequisites to autoware_lanelet2_map_validator.
Since autoware_lanelet2_map_validator is a collection of small validators, some redundancy is expected. For example, one validator might need to check for unrelated map flaws to ensure safe execution, and this checking procedure might overlap with that of another validator. Therefore map requirements should have validation orders such like "Validation B should be done only when validation A has passed". The
prerequisites
attribute will allow the JSON input to control the validation order.Since the validation process have been a bit complex due to this change, I moved the
process_requirements()
function tovalidation.cpp
frommain.cpp
not to makemain.cpp
long too much.Test codes are also added regarding the JSON processing in this validator.
Related links
None
Tests performed
1. General execution
I tried the following command and I get the results shown in the screenshot. You can see that
mapping.crosswalk.regulatory_element_details
fails becausemapping.crosswalk.missing_regulatory_elements
has failed before. (Before applying this PR,mapping.crosswalk.regulatory_element_details
could oass the validation`)2. colcon test
You can see the test for json processing is added by the following command.
colcon test --packages-select autoware_lanelet2_map_validator --event-handlers console_cohesion+
You might get something like this
Notes for reviewers
mapping.crosswalk.regulatory_element_details
doesn't have to havemapping.crosswalk.missing_regulatory_elements
as a prerequisite, but I setautoware_requirement_set.json
as it is now to demonstrate howprerequisites
attribute works. After a validator that definitely needs a prerequisite appears, I may remove theprerequisites
attribute frommapping.crosswalk.missing_regulatory_elements
andmapping.traffic_light.missing_regulatory_elements
Interface changes
Effects on system behavior
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.