Try to fix skeleton parsing

This commit is contained in:
2024-06-24 04:47:29 +02:00
parent 5fdfa9e6b9
commit 107b3e08c4
23 changed files with 19 additions and 14 deletions

View File

@@ -125,7 +125,8 @@ class Road:
self.polyline_total_line_output[nearest[0]].y])[0]
for j in range(len(circle_list)):
if j != middle_lane_index:
if j != middle_lane_index and len(circle_list[j]) > 0:
print(len(circle_list[j]), circle_list[j])
circle_list[j] = circle_list[j][0].optimized_path(
circle_list[j])
if len(circle_list[j]) != 1: