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.
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 usedfloat.Parse(item, CultureInfo.InvariantCulture)
, but in Lanelet2MapImporter.cs justfloat.Parse(item)
. If I changefloat.Parse
in Lanelet2MapImporter.cs, import for lanelet2 will work correctly.