feat(lane): added validator for road shoulder (vm-01-15) #99
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 a new validator:
mapping.lane.road_shoulder
. Its purpose is to validate that allroad_shoulder
subtype lanelets meet the VM-01-15 adjacency and boundary requirements for proper integration with road infrastructure.Validation subjects
All
road_shoulder
subtype lanelets (lanelets withsubtype="road_shoulder"
)What is validated
This validator implements the VM-01-15 requirement and checks three conditions for
road_shoulder
type lanelets:road
subtype laneletroad_border
typeAdded files
Main files:
road_shoulder.hpp
road_shoulder.cpp
road_shoulder.md
Test files:
test_road_shoulder.cpp
Test maps:
shoulder_road_with_non_road_adjacent.osm
road_shoulder_without_adjacent.osm
road_shoulder_empty_side_no_road_border.osm
Modified files:
issues_info.json
Added issue codes:
Lane.RoadShoulder-001
: Road shoulder lanelet has no adjacent laneletsLane.RoadShoulder-002
: Road shoulder with only left/right adjacent lanelet must be adjacent to a road subtype laneletLane.RoadShoulder-003
: Road shoulder with empty left/right side must have a left/right bound with road_border typeHow was this PR tested?
Unit tests
Notes for reviewers
None.
Effects on system behavior
None.