How to create Cluster of cars

5 ビュー (過去 30 日間)
Darshit Shah
Darshit Shah 2021 年 7 月 24 日
回答済み: Shadaab Siddiqie 2021 年 7 月 28 日
In matlab, I can only set one car as ego vehicle. How can I cluster 2 or 3 cars as one and then add the controller and run the simulink??

回答 (1 件)

Shadaab Siddiqie
Shadaab Siddiqie 2021 年 7 月 28 日
From my understanding you want to have multiple vehicles as ego vehicle. As of MATLAB R2021a, this is not possible to have multiple ego vehicles. But if you want to controller vehicles just using trajectory then that can be done even for a not ego vehicle. The Driving Scenario Designer App currently supports sensing for a single ego vehicle. Thus, It is neither possible to add sensor controller nor export sensor data for multiple vehicles within the same scenario.
A possible workaround you may consider achieving this same functionality would be to maintain to identical scenarios, with a different vehicle as the ego vehicle in each. This will run the exact same simulation, but with sensor data for different vehicles measured in each scenario. You can then either export each dataset from the App and manipulate them in MATLAB or generate two MATLAB functions for each scenario and produce the datasets that way.

カテゴリ

Help Center および File ExchangeVehicle Network Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by