lgsvl / simulator

A ROS/ROS2 Multi-robot Simulator for Autonomous Vehicles
Other
2.3k stars 780 forks source link

Problems with two-lane road export to OpenDRIVE map format #1254

Open PavelLysenok opened 3 years ago

PavelLysenok commented 3 years ago

Hi!

I was making some tests with exporting an OpenDRIVE map to better understand the nuances of the simulator, here are the screenshot of the test lanes and its' boundaries:

Screenshot from 2021-02-16 17-46-31 Screenshot from 2021-02-16 17-47-26

After the export I opened a .xodr file and mentioned, that these two two-laned roads were described as four one-laned roads. I checked all the boundary-lane connections and lane directions twice, but still do not understand how to fix this.

The exported file is attached below: PavelLysenok_test.xodr (zip)

EricBoiseLGSVL commented 3 years ago

I see right away that TrafficLane holder is not correct. Traffic lanes hold the annotation objects for non intersection objects. It should look like this. Notice the MapLaneSection component and how all lane objects are children objects. MapAnnotationHelp00

Please look at CubeTown to understand how basic annotation is organized

PavelLysenok commented 3 years ago

@EricBoiseLGSVL

Thanks! That worked.