Automotive tool box running code
Show older comments
I am trying to run the "closely spcaed targets" demo, which is embedded with FCW (Forward collision waring) demo.
I just pulled out the snippet of code which belongs to "closely spcaed targets", which is towards the end of the script as below.
I was able to run the entire demo of FCW, whereas the snippet of "closely spaced targets" is giving me errors as below :
Unrecognized method, property, or field 'SensorLocation' for class 'drivingRadarDataGenerator'.
Error in helperCreateSensorDemoDisplay>setupPanels (line 88)
plotCoverageArea(caPlotter, sensor.SensorLocation,...
Error in helperCreateSensorDemoDisplay (line 32)
bep = setupPanels(scenario,egoCar,sensor,figScene,sideView);
Error in helperRunSensorDemoScenario (line 35)
[bep, figScene] = helperCreateSensorDemoDisplay(scenario, egoCar, sensor, sideView);
Error in test_2bike_det (line 39)
metrics = helperRunSensorDemoScenario(scenario, egoCar, radarSensor, snapTime);
Additinally, i am also interested in getting radar raw data to further use it for my own algorithm development. But when i went through documentation, i dont find any method to pull raw data. Can you please help me with both of these queries.
Attaching the file of "closely spaced targets" script.
5 Comments
Steven Lord
on 29 Nov 2022
If you want to refer to a particular section of a documentation page on MATLAB Answers, like the "Detection of Closely Spaced Targets" section on this documentation page please link to it rather than making a copy.
Which version of that documentation section are you running? I'm not certain if it has changed between release R2021b and release R2022b (the version that you are using if you extracted that section of code from the online documentation.) What happens if you run that code from the documentation installed locally on your machine?
Vinay Kulkarni
on 30 Nov 2022
Hiro Yoshino
on 30 Nov 2022
Looks like some functions used in this main demo script are missing.
I guess this is why you can run it from your local MATLAB but cannot with the one you snipped off. I bet you can see other scripts/functions exist in "\MATLAB\Examples\R2021b\driving\ModelRadarSensorDetectionsExample" too. They are the parts of the demo.
Would it be possible to copy and paste the link to the documentation page you are refering to?
Vinay Kulkarni
on 30 Nov 2022
Vinay Kulkarni
on 30 Nov 2022
Answers (0)
Categories
Find more on Radar and EW Systems 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!