AutomatedD​rivingRada​rSimulatio​nExample does not work, due to helperAuto​DrivingRad​arSigProc>​setupScena​rio

49 次查看(过去 30 天)
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 个评论
Saurabh
Saurabh 2024-8-22,3:26
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.

请先登录,再进行评论。

采纳的回答

Naga
Naga 2024-8-21,14:13
编辑:Naga 2024-8-21,14:18
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:
  1. Go to the MATLAB Home tab.
  2. Click on "Add-Ons" and select "Get Add-Ons".
  3. 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.
  1 个评论
Xuedong
Xuedong 2024-8-21,18:45
Thanks a lot, Naga.
Yes, you are right. "Automated Driving Toolbox" was missing in my matlab installed. After re-installing matlab, the problem is gone. I can run the example without any error messages.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Downloads 的更多信息

产品


版本

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by