-
Notifications
You must be signed in to change notification settings - Fork 40
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(lanelet2_map_validator): add test codes for existing validators #150
feat(lanelet2_map_validator): add test codes for existing validators #150
Conversation
Added test codes using these maps. Signed-off-by: TaikiYamada4 <taiki.yamada@tier4.jp>
Added regulatory_elements_details_for_crosswalks test Signed-off-by: TaikiYamada4 <taiki.yamada@tier4.jp>
Signed-off-by: TaikiYamada4 <taiki.yamada@tier4.jp>
Signed-off-by: TaikiYamada4 <taiki.yamada@tier4.jp>
…fers) to look into the loading errors Signed-off-by: TaikiYamada4 <taiki.yamada@tier4.jp>
Signed-off-by: TaikiYamada4 <taiki.yamada@tier4.jp>
d9c96c1
to
6534914
Compare
map/autoware_lanelet2_map_validator/test/src/map_validation_tester.hpp
Outdated
Show resolved
Hide resolved
...ware_lanelet2_map_validator/test/src/test_regulatory_elements_details_for_traffic_lights.cpp
Outdated
Show resolved
Hide resolved
...autoware_lanelet2_map_validator/test/src/test_regulatory_elements_details_for_crosswalks.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: TaikiYamada4 <taiki.yamada@tier4.jp>
@YamatoAndo |
Signed-off-by: TaikiYamada4 <taiki.yamada@tier4.jp>
@YamatoAndo I've fixed the sample_map.osm |
…idator/add_test_environment Signed-off-by: TaikiYamada4 <taiki.yamada@tier4.jp>
Signed-off-by: TaikiYamada4 <taiki.yamada@tier4.jp>
|
||
class MapValidationTester : public ::testing::Test | ||
{ | ||
protected: |
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.
protected: | |
protected: | |
virtual void SetUp() { | |
map_ = lanelet::load(package_share_directory + "/data/map/" + file_name, *projector, &loading_errors_); |
and delete load_target_map function if possible
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.
Isn't this difficult to pass the target map file to validate?
One test code will try to validate various maps.
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.
Please forget my comment. Possibly we can use TestWithParam
in the future when the number of test suites grow.
https://github.com/google/googletest/blob/main/docs/advanced.md#how-to-write-value-parameterized-tests
Description
This PR revises the test system in lanelet2_map_validator such like
I made the medium size map (sample_map.osm) by modifying lanelet2_map.osm from
autoware_test_utils
.I modified that map so that the current requirements in the
autoware_requirement_set.json
will pass.Related links
None
Tests performed
1. Test codes
I tested the test codes through
2. Test sample_map.osm
I tested that sample_map.osm passes
vm-02-02
,vm-04-01
andvm-05-01
through the following command.The figure below is the console output I got.

Notes for reviewers
None
Interface changes
None
Effects on system behavior
Test algorithm changed.
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.