Closed ataparlar closed 11 months ago
@ataparlar This should work. However, we also tried to find a general solution to the problem so that one can provide an arbitrary projection (similar as it is already done in our lanelet2 and OpenDRIVE conversion). Can you check whether this branch works for you? In this branch, one can define a custom projection via the configs/settings here.
@smaierhofer
Thank you for your attention.
I searched for a suitable branch for using in my case but I missed that one I think. This works. Both of the approches are correct.
I saw that this branch is merged into develop
. Now, there is no problem. Before that, there were no global coordinates.
I am closing the PR.
Hi,
We are using OSM -> CommonRoad and CommonRoad -> Lanelet2 conversion in order to use in Autoware - AWSIM with a simulation environment created with OpenStreetMap data in the same area. We noticed that, even thought we can generate the lanelet2 map in the correct position, the map is corrupted in the matter of size and shape. You can see the situation in below images.
The reason of this was using the spherical transform formula while transforming latitude and longitude to X and Y coordinates. After changed that to WGS84 ellipsoidal transform formula, the error dissappeared. The source of the transformation formula: https://en.wikipedia.org/wiki/Geographic_coordinate_system
We tested this in the AWSIM simulation environment with a 20 kilometers road in Istanbul. Here is the result. Last 2 images show the start and the end of the road.