Get lanes position from map

3 ビュー (過去 30 日間)
Luca Reali
Luca Reali 2023 年 5 月 4 日
回答済み: Santosh Fatale 2023 年 5 月 19 日
Hi everyone,
I need to classify in which lane detected objects lie on.
I have the GPS data (latitude and longitude) of the Ego vehicle and the relative distances (lateral and longitudinal) of the detected surrounding vehicles. I have yaw rate too, so trajecotries are quite precise.
My idea was to detect the bounding box of the map from the GPS data recorded and download the map from OpenStreetMap. Then I open it in Driving Scenario Designer where I can clearly see that, unless some small import mistakes, road is precisely shown. Lines are there and they're correct. I'd like to export the position of lines such that I can know the boundaries of lanes (or lanes directly) along with the driving direction, but I don't know how to access these data that have to be embedded somewhere. I saw the roadProperties command, but I'm stuck in 2021a realease so I can't use it.
Thank you in advance.

回答 (1 件)

Santosh Fatale
Santosh Fatale 2023 年 5 月 19 日
Hi Luca,
I understand that you are interested in extracting the road parameters from the road object.
Currently, this feature is available in MATLAB R2023a. To extract properties of road object you could use the “roadprops” function.
For more information about “roadprops” function, please refer to following documentation link.
To use this feature, it is recommended to update your MATLAB version to R2023a.


Help Center および File ExchangeAutomated Driving Toolbox についてさらに検索




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by