Automotive tool box running code

1 次查看(过去 30 天)
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 个评论
Vinay Kulkarni
Vinay Kulkarni 2022-11-30
Thanks Hiro. But i am not able to figure which snippet of code is required (which is part of demo) for running closely spaced targets demo. All these look like isolated from each other , hence i pulled only sloely spaced target demo, which is of my interest.
I referred the guide : matlab-automated-driving-toolbox-user-s-guide_compress.pdf , which also seem to give code in isolated manner unlike the demo script which has some link.
I did not refer any documentation other than these.
But my other query is : Would it be possible to get raw data of radar from these examples ?
Vinay Kulkarni
Vinay Kulkarni 2022-11-30
Interestingly if i place the above script in to folder of "\MATLAB\Examples\R2021b\driving\ModelRadarSensorDetectionsExample", it just works. Seem like outside of this folder , the script enters some other function .

请先登录,再进行评论。

回答(0 个)

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by