AutomatedDrivingRadarSimulationExample does not work, due to helperAutoDrivingRadarSigProc>setupScenario
4 views (last 30 days)
Show older comments
Hi, experts,
I am using R2024a and trying to run the example of AutomatedDrivingRadarSimulationExample by running the two commands below in the Command Window of matlab, but got error messages:
>> openExample('driving_radar/AutomatedDrivingRadarSimulationExample')
>> AutomatedDrivingRadarSimulationExample
Please see the error messages below. Any idea why?
***************** Below is the output from "Command Window" of matlab ****************************
>> openExample('driving_radar/AutomatedDrivingRadarSimulationExample')
>> AutomatedDrivingRadarSimulationExample
hpbw =
17.1800
drivingScenario requires Automated Driving Toolbox.
Error in helperAutoDrivingRadarSigProc>setupScenario (line 53)
scenario = drivingScenario;
Error in helperAutoDrivingRadarSigProc (line 12)
[scenario,egoCar,radarParams,tgts] = setupScenario(varargin{:});
Error in AutomatedDrivingRadarSimulationExample (line 138)
helperAutoDrivingRadarSigProc('Setup Scenario',c,fc);
***************** Above is the output from "Command Window" of matlab ****************************
1 Comment
Saurabh
on 22 Aug 2024
Hi there, Xuedong
The error message suggests that the "drivingScenario function needs the automated driving toolbox." It appears that you are attempting to execute a documentation example that calls for particular toolboxes.
Make sure the "radar toolbox" and the "automatic driving toolbox" are installed. The example cannot be run without these toolboxes.
For automated driving, radar signal simulation and processing can be found at https://www.mathworks.com/help/radar/ug/radar-signal-simulation-and-processing-for-automated-driving.html
To verify installed toolboxes, run the following MATLAB command:
>> ver
Installing the toolboxes via the MATLAB Add-On Explorer is an option if any are missing.
Accepted Answer
Naga
on 21 Aug 2024
Edited: Naga
on 21 Aug 2024
Hello Xuedong,
It looks like you're trying to run a documentation example that requires specific toolboxes, and you've encountered an error indicating that the "drivingScenario function needs the Automated Driving Toolbox".
Ensure that both the Automated Driving Toolbox and the Radar Toolbox are installed. These toolboxes are essential for running the example. Refer to the documentation for the details on requirements for this example:
You can check installed toolboxes by executing the following command in MATLAB:
>> ver
Look for "Automated Driving Toolbox" and "Radar Toolbox" in the list of installed products. If any of these toolboxes are missing, you can install them via the MATLAB Add-On Explorer:
- Go to the MATLAB Home tab.
- Click on "Add-Ons" and select "Get Add-Ons".
- Search for the required toolboxes and install them.
After installing the toolboxes, restart MATLAB to ensure all changes take effect.Once the toolboxes are installed and licenses are confirmed, try running the example again with the
Hope this address your query.
More Answers (0)
See Also
Categories
Find more on Downloads 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!