You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generate an OpenDRIVE lane to LL2 lanelet mapping file during conversion #118
I've searched other issues and no duplicate issues were found.
I've agreed with the maintainers that I can plan this task.
Description
To ensure that scenarios written based on OpenDRIVE maps can be executed easily in SSv2, a map conversion tool that outputs the mapping of lanes to lanelets is required.
Purpose
To support the automated execution of SafetyPool scenarios in SSv2.
Possible approaches
Start with CommonRoad as the base conversion tool. Check if the conversion of lanes to lanelets is 1:1
If not, the code must be adapted so that the above is respected
Extract unique relationships between road ID + lane ID and lanelet ID and output the conversion mappings as a csv file
Definition of done
The map conversion tool is able to convert lanes into lanelets
The map conversion tool is able to export the mapping information of road + lane <-> lanelet
The map conversion tool is tested on a set of representative scenarios from SafetyPool
Use tags in the LL2 map: "odr_road_id" and "odr_lane_id" to store the original IDs prior to the conversion
Export a mapping csv file containing the mapping between OpenDRIVE road and lane IDs to lanelet IDs. If the conversion is not 1 to 1, also add a frenet s-coordinate range for both OpenDRIVE and LL2. For example, if a lane of OpenDRIVE of length 100 [m] becomes 2 lanelets of length 50 [m] after conversion, the following format could be used:
ODR road id
ODR lane id
ODR s-range
LL2 lanelet id
LL2 s-range
0
1
0 - 50
10000
-1
0
1
50 - 100
10001
-1
Here, -1 would mean that the whole extension of the lanelet is used.
Additionally, the following requirements must be met to ensure Autoware can run on the map:
Hello @evanbest0802
The original map is available here.
I used the commonroad scenario designer's develop branch to do the conversion, so the z-coordinate fix was not included. Can you try using the latest version of the conversion tool on your side to check if the results change? Feel free to use that folder in the Google drive if you want to upload more items.
changed the title [-]Adapt the OpenDRIVE to Lanelet2 conversion to output the mapping of lanes to lanelets[/-][+]Generate an OpenDRIVE lane to LL2 lanelet mapping file during conversion[/+]on Apr 8, 2026
Hello @TranHuuNhatHuy,
Regarding this task, please proceed as discussed in our sync meeting:
"Update the OpenDRIVE to LL2 lane mapping format (csv file) to use Road ID, Lane ID, s-coordinates, Lanelet ID. (currently uses Road ID, Lane Section ID, Lane ID and Lanelet ID)"
Updated the code so that it outputs the S-coordinate for each converted road + lane (+ lane section) segment.
Next steps:
The lanelets in the output map are not connected with their predecessors/successors. Check if there's an issue in the conversion step, or in the postprocessing
Some roads in the csv file show conversion starting from s-coord > 0, but don't have a row for s-coord = 0, meaning that only the segments after that coordinate value is mapped to a lanelet
Push the code and share branch name to @diegoyabuki
Activity
diegoyabuki commentedon Mar 9, 2026
Mapping of OpenDRIVE IDs to LL2:
Here, -1 would mean that the whole extension of the lanelet is used.
Additionally, the following requirements must be met to ensure Autoware can run on the map:
cc: @chishengshih @evanbest0802
diegoyabuki commentedon Mar 10, 2026
@chishengshih @evanbest0802
The minutes of yesterday's ODD WG meeting is available here.
evanbest0802 commentedon Mar 13, 2026
Hi, @diegoyabuki
Could you provide the OpenDrive map and the conveerted lanelet2 map mentioned in the ODD WG meeting? Thank you very much.
diegoyabuki commentedon Mar 13, 2026
Hello @evanbest0802
The original map is available here.
I used the commonroad scenario designer's develop branch to do the conversion, so the z-coordinate fix was not included. Can you try using the latest version of the conversion tool on your side to check if the results change? Feel free to use that folder in the Google drive if you want to upload more items.
evanbest0802 commentedon Mar 13, 2026
Hello @diegoyabuki
I tried to download the map, but I cannot log in the slack, even if I use the Tier4 portal account.
4 remaining items
[-]Adapt the OpenDRIVE to Lanelet2 conversion to output the mapping of lanes to lanelets[/-][+]Generate an OpenDRIVE lane to LL2 lanelet mapping file during conversion[/+]diegoyabuki commentedon Apr 8, 2026
Hello @TranHuuNhatHuy,
Regarding this task, please proceed as discussed in our sync meeting:
"Update the OpenDRIVE to LL2 lane mapping format (csv file) to use Road ID, Lane ID, s-coordinates, Lanelet ID. (currently uses Road ID, Lane Section ID, Lane ID and Lanelet ID)"
diegoyabuki commentedon Jun 4, 2026
Next update on 06/11
diegoyabuki commentedon Jun 18, 2026
06/18 - @TranHuuNhatHuy
Next steps:
diegoyabuki commentedon Jul 9, 2026
Progress 07/09 - @TranHuuNhatHuy