Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 1.84 KB

intersection_area_dangling_reference.md

File metadata and controls

27 lines (16 loc) · 1.84 KB

intersection_area_dangling_reference

Validator name

mapping.intersection.intersection_area_dangling_reference

Feature

This validator checks whether each intersection lanelet(namely the lanelet with turn_direction property) has reference to existing intersection_area polygon. Such invalid case occurs when an intersection_area is deleted but its referrers are not updated.

This is achieved by the following procedure.

  1. Obtain the set of intersection_area polygon IDs
  2. Check if intersection lanelet has "intersection_area" key and its value is contained in the above IDs

The validator outputs the following issue with the corresponding ID of the primitive.

Issue Code Message Severity Primitive Description Approach
Intersection.IntersectionAreaDanglingReference-001 "Dangling reference to non-existing intersection area of ID <LANELET ID> is detected" Error Lanelet The reported lanelet will cause a runtime error when attempting to look up the non-existent intersection_area. Go to the reported lanelet and delete "intersection_area" key entry.

Supplementary information

Related source codes

  • intersection_area_dangling_reference.hpp
  • intersection_area_dangling_reference.cpp