[Proposal] [ODD WG] OpenDRIVE to Lanelet2 conversion #6019
Replies: 2 comments 3 replies
-
Tagging @mitsudome-r -san and @diegoyabuki -san, I just uploaded 14 Lanelet2 I'm not sure if you have access to this drive directory or not, cuz I got access right from @Igata-ctrl -san a long time ago. But if you request access, I think that request will go to me and I can grant it... As we discussed during last meeting, since Autoware on my local is kinda broken right now, could you kindly run some simple scenarios on these map samples and verify if the maps work fine? Thank you so much for this. |
Beta Was this translation helpful? Give feedback.
-
@TranHuuNhatHuy |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Tagging @mitsudome-r -san, @diegoyabuki -san.
I. Overview
1. Background
So, we need a way to convert OpenDRIVE to Lanelet2. We tried CommonRoad Scenario Designer conversion, the conversion generally worked, but the maps were containing way too many nodes, making it unusable on Autoware.
I'm attempting to fix that by adding some post-processing steps, discussed below.
2. Reference
You can try my proof-of-concept at my GitHub repo. The README is not yet updated but will be done later.
You can pull the repo, then init environment and install dependencies in
requirements.txt
. Next, try outdemo.ipynb
. The notebook is an attempt to convert all of the OpenDRIVE maps insample_data
into Lanelet2 format. The OpenDRIVE maps are from 3 sources:naive
: original test case which features a simple straight road with 3 lanes, given by @Igata-ctrl -san.esmini
: 15 samples featuring simple road shapes, straight & curve & joins etc. I scraped from esmini.CARLA
: 7 samples featuring much much more complicated town/urban scenarios. I scraped from CARLA OpenDRIVE test files.II. Problems
1. Original method
You can see the original method in the
demo_old.ipynb
notebook, also this document (only those with access can read).While the convresion works generally, it also outputs humongous amount of nodes on each
way
, making Autoware stuck.2. How an ideal Lanelet2 map should look like?
III. My solutions
1. Ideas
2. Algorithm
.xodr
file through CRS to get OSM structurepreprocess
.preprocess
:.osm
file.3. Results
Reduced from 16000 points to 8 points, clearly it works!
Same behavior in other maps.
4. Next steps
Beta Was this translation helpful? Give feedback.
All reactions