carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.53k stars 3.72k forks source link

Carla encountered an error loading xodr file (missing spiral segment) #8024

Open Mayuemei opened 3 months ago

Mayuemei commented 3 months ago

CARLA version:0.9.15

Platform/OS:windows

Problem you have experienced:

I generated an xodr file using https://odrviewer.io/ After loading, it can display normally, as shown in the figure below. However, when Carla loads, it crashes. It is speculated that this is due to an error in the road topology in the xodr file. I printed the road points and found that they were missing in the position of the spiral segment, as shown in the figure.May I ask if Carla's requirements for loading xodr are not completely consistent with the opendrive format, or if there are errors in my xodr file?

What you expected to happen:

The map successfully loaded through https://odrviewer.io/ can also be loaded correctly on Carla

image image image image `<?xml version="1.0" encoding="utf-8"?>

`

PatrickPromitzer commented 3 months ago

Hi, can you try changing

<spiral curvEnd="0" curvStart="0"/>

to

<line/>