lgsvl / simulator

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

Error when import HD Map in lanelet2 format #1321

Open MisterioRemo opened 3 years ago

MisterioRemo commented 3 years ago

Hello. I have maps in xodr and lanelet2 formats. I am trying to import HD maps into LG simulator and build HD map mesh from them. With xodr the map is built correctly. But lanelet2 failed with error FormatException: Input string was not in a correct format. I noticed that in OpenDriveMapImporter.cs is used float.Parse(item, CultureInfo.InvariantCulture), but in Lanelet2MapImporter.cs just float.Parse(item). If I change float.Parse in Lanelet2MapImporter.cs, import for lanelet2 will work correctly.

EricBoiseLGSVL commented 3 years ago

@MisterioRemo Thanks for the bug find. We'll look into the change.