Skip to content

OpenDRIVE parser rejects valid vertical roads #41

Description

@Syed-Abbas-Hussain

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
Image

I attached the .xodr HD map that reproduces the error in the comments below.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions