MATLAB: In the Driving Scenario Designer app, how can I generate a large number of vehicles or a platoon with the same characteristics

Automated Driving Toolboxdriving scenario designer platoon

In the Driving Scenario Designer app, how can I generate a large number of vehicles or a platoon with the same characteristics ?
When I create a New Driving Scenario,I need to add a lot of cars,it turns out that I need to add one by one,so,I wonder if it has another simple way to add a large number of cars.
Thank you.

Best Answer

Hi,
This request will be considered in a future release.
The best way to do this now (for actors or roads), is to script it in a for loop etc. using the programmatic drivingScenario API. This gives you full control and you can save the script or function you use as some sort of a template for your future work. After producing the drivingScenario object from the script or function, use:
>> drivingScenarioDesigner(scenarioObj)
and bring that to the App. Then move on to the next steps in your workflow.
Thanks,
Roshin