Description
AVLite fails to load exactly vertical OpenDRIVE roads. Consecutive points on a vertical road have the same X coordinate but different Y coordinates.
The parser checks only X:
assert x_vals[-1] != x_vals[-2]
This incorrectly treats valid 2D points as duplicates.
Error
File "c18_hdmap_parser.py", line 511, in sample_OpenDrive_geometry
assert x_vals[-1] != x_vals[-2]
AssertionError: last two points:
3.0000000000000018, 3.0000000000000018
I attached the .xodr HD map that reproduces the error in the comments below.
Description
AVLite fails to load exactly vertical OpenDRIVE roads. Consecutive points on a vertical road have the same X coordinate but different Y coordinates.
The parser checks only X:
This incorrectly treats valid 2D points as duplicates.
Error
I attached the
.xodrHD map that reproduces the error in the comments below.