I want to use the scenario from driving scenario designer in Simulation 3D Vehicle with Ground Following but how?

4 views (last 30 days)
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

Answers (1)

Vijeta
Vijeta on 15 Jun 2023
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!

Community Treasure Hunt

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

Start Hunting!