Skip to content

Commit

Permalink
Fix issue in new lane appear rule reported in #112
Browse files Browse the repository at this point in the history
Signed-off-by: hoangtungdinh <[email protected]>
  • Loading branch information
hoangtungdinh committed Oct 8, 2024
1 parent c3ba5ce commit 0b15304
Show file tree
Hide file tree
Showing 3 changed files with 9,349 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def _check_appearing_predecessor_road(
if current_road is None or predecessor_road is None:
return

current_road_last_lane_section = utils.get_last_lane_section(current_road)
current_road_first_lane_section = utils.get_first_lane_section(current_road)

predecessor_linkage = utils.get_road_linkage(
current_road, models.LinkageTag.PREDECESSOR
Expand All @@ -253,7 +253,7 @@ def _check_appearing_predecessor_road(

_check_predecessor_with_width_zero_between_lane_sections(
checker_data,
current_road_last_lane_section,
current_road_first_lane_section,
predecessor_road_target_lane_section.lane_section,
predecessor_linkage.contact_point,
next_lane_section_length,
Expand Down
Loading

0 comments on commit 0b15304

Please sign in to comment.