Converting a Driving Scenario to occupancy grid map for path planning in Simulink
1 回表示 (過去 30 日間)
古いコメントを表示
I have created a driving scenario using driving scenario designer app and exported the model to Simulink, but I am unable to create an updating occupancy grid map from the scenaio reader and the vision detection generator. I want to use it for vehicle motion planning. There is matlab code to generate the occupancy grid map from the scenario matlab function, and I was thinking to create a matlab function block in Simulink for generating the map. Could you please let me know if there is any way I can feed the scenario and the sensor information from the scenario simulink model to such a function block?
2 件のコメント
Rolando Bautista Montesano
2020 年 12 月 8 日
which is the function to create a grid from the scenario??
Regars
Shubham Dattatraya Gorde
2023 年 9 月 15 日
Hi Somnath,
I was trying to implement the same , can you please help me, how did you created an updating occupancy grid map from scenario reader and vision detection generator?
Thanks in advance.
Regards,
Shubham.
回答 (1 件)
Cameron Stabile
2020 年 12 月 11 日
編集済み: Cameron Stabile
2020 年 12 月 15 日
Hi Somnath, Rolando
If I understand correctly, it appears you are trying to combine two separate examples: Create Egocentric Occupancy Map from Driving Scenario Designer and General Simulink Model of Scenario and Sensor.
Currently there is no shipping function that will automatically create and update a map from scenario information, but you should be able to convert the first example script into a function with a bit of refactoring. The function does not need to create the scenario or do anything related to visualization, so the only things we need to worry about in this function are:
- Creation of the map object (see Create an Egocentric Occupancy Map)
- Converting Obstacle and Lane Detections to occupied/unoccupied regions
- Updating the map (see end of while loop)
- Using the map
For inspiration on step 2, you may want to look at the exampleHelperGetObstacleDataFromSensor and exampleHelperFilterObstacles helper methods. These currently rely on scenario and sensor objects as inputs, but they really only need laneDetections, objectDetections, and the egoVehicle.
Best,
Cameron
Disclaimer: These are my own suggestions and do not represent formal guidance from The Mathworks
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Automated Driving Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!