I want to use the scenario from driving scenario designer in Simulation 3D Vehicle with Ground Following but how?
2 ビュー (過去 30 日間)
古いコメントを表示
Hey everyone,
i have a scenario in driving scenario designer and i have designed a modell with controller etc. in simulink. The inputs of my controller come from driving scenario designer (way points). Now, i want to show how the controller work in 3d enviroment but in Simulation 3D Vehicle with Ground Following there are only some default scene. I want to use here my scenario from DSD. Can someone help me?
Thanks
0 件のコメント
回答 (1 件)
Vijeta
2023 年 6 月 15 日
Yes, you can use your customized scenario from Driving Scenario Designer in Simulink 3D environment by exporting the scenario in OpenDRIVE format and importing it in Simulink 3D Animation.
Here are the general steps to follow:
1. Open your scenario in Driving Scenario Designer.
2. From the "Export" tab, select "OpenDRIVE" as the export format and save the exported file.
3. In your Simulink model, add the "3D World" block from the Simulink 3D Animation library.
4. Load the OpenDRIVE file into the 3D world using the "Load World" option from the block parameters.
5. To import the waypoints into your Simulink model, you can use the "Scenario Reader" block from the Automated Driving Toolbox. Then, connect the output of the Scenario Reader block to your controller.
6. Run the simulation and observe the vehicle behaviour.
Note that the specific steps and configurations may vary depending on your system requirements. It may be helpful to refer to the documentation for Driving Scenario Designer and Simulink 3D Animation for more information on the specific steps and configurations required.
I hope this helps you visualize your driving scenario and control strategy in a 3D environment!
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!