Clear Filters
Clear Filters

How to write decison making logic for designscenarios?

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

Answers (1)

Srija Kethiri
Srija Kethiri on 16 Jan 2023
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!

Categories

Find more on Schedule Model Components in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!