How to write decison making logic for designscenarios?

1 次查看(过去 30 天)
I have dificulties writing code for adding collisionfree speed manipulator in matlab.It throws errors like not enough arguments placed.
error:No system or file called 'CollisionFreeSpeedManipulator' found. 'CollisionFreeSpeedManipulator' is
used in
Automatic Scenario Generation.

回答(1 个)

Srija Kethiri
Srija Kethiri 2023-1-16
Hi Amr,
From my understanding, you are trying to open the system ‘CollisionFreeSpeedManipulator’ but it is throwing an error as: No system or file called 'CollisionFreeSpeedManipulator' found. 'CollisionFreeSpeedManipulator' is used in Automatic Scenario Generation.
The error is because the model you are trying to open is not in the current MATLAB path. To resolve the error, you can use one of the following methods:
  1. Open the example Automatic Scenario Generation by using the command openExample('driving/AutomatedScenarioGenerationExample'). Copy the 'CollisionFreeSpeedManipulator.slx' model from the ‘AutomatedScenarioGenerationExample' folder and paste it into the current MATLAB Path.
  2. Open the example Automatic Scenario Generation. Add the ‘AutomatedScenarioGenerationExample’ folder and subfolders to the MATLAB path. To add the folder and subfolders in the MATLAB path: Right click on the folder --> Add to Path --> Folder and Subfolders
To know about the Automatic Scenario Generation example refer to this documentation:
Hope this helps!

类别

Help CenterFile Exchange 中查找有关 Schedule Model Components 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by