Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid error when importing lane linkage from OpenDRIVE #14828

Open
zlh212 opened this issue May 7, 2024 · 3 comments
Open

invalid error when importing lane linkage from OpenDRIVE #14828

zlh212 opened this issue May 7, 2024 · 3 comments

Comments

@zlh212
Copy link

zlh212 commented May 7, 2024

When I use the command "netconvert --opendrive 1.xodr -o 1.net.xml --opendrive.import-all-lanes true --walkingareas true" to convert an xodr file,the following problems are displayed
微信图片_20240507104332
Is there something wrong with my xodr file?

@namdre
Copy link
Contributor

namdre commented May 7, 2024

Yes. your file is missing obligatory attributes "elementType" and "elementId" in the "predecessor" element. What tool did you use to obtain the xodr file?

You could try setting option --ignore-errors but there's no guarantee something useful will come out.

@zlh212
Copy link
Author

zlh212 commented May 7, 2024

I used the site https://odrviewer.io/ to view the xodr file, and it worked fine. I have uploaded the xodr file in the attachment, could you please help me see if there is any problem? I converted the file to txt format because xodr format is not supported
1.txt

@namdre namdre self-assigned this May 7, 2024
@namdre namdre added bug and removed question labels May 7, 2024
@namdre namdre changed the title netconvert opendrive error invalid error when importing lane linkage May 7, 2024
@namdre namdre changed the title invalid error when importing lane linkage invalid error when importing lane linkage from OpenDRIVE 1.6 May 7, 2024
@namdre namdre changed the title invalid error when importing lane linkage from OpenDRIVE 1.6 invalid error when importing lane linkage from OpenDRIVE May 7, 2024
@namdre
Copy link
Contributor

namdre commented May 7, 2024

The following two properties in your file are unusual:

  • it contains empty <predecessor/> and <successor/> elements (which are not described in the format specification)
  • it contains <road> elements intermixed with <junction> elements (instead of all the roads first and then the junctions) as observed in all previous files. The format documentation is silent on element order but all xsd schemas I found assume roads before junctions.

Which software created the file?

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

No branches or pull requests

3 participants