Radar and Vision detection generators

1 visualizzazione (ultimi 30 giorni)
Tamim Boubou
Tamim Boubou il 27 Set 2020
I've created my own scenarion in automated driving toolbox, in which the lead vehicle is moving with a low speed ahead of the ego vehicle on a straight road, such that it's always in the range of the radar and camera that are installed on the ego vehicle, (and when I try it in the scenario it shows that it's being detected all the time).
The problem that I'm taking the output of each of these two blocks int a matlab function just to see the distance between the two vehicles(for now), but the problem is that it's not being detected at all, Always showing NumDetecctions = 0, just in case, my function looks like this, the parameters of the radar and camera in the blocks are the same as in the scenario builder. I'm using a fixed stepSize of 0.001 with ode3 solver, MatLab 2020a
function radarDetecios = fcn(detections)
disp('Num detections radar output:')
detections.NumDetections
disp('Valid time radar output:')
detections.IsValidTime
disp('Detections radar output:')
detections.Detections
radarDetecios = detections.Detections(1).Measurement;
end
Is there anything wrong with my configuration?, to me it looks almost the same as the ACCWithSensorFusionExample

Risposte (0)

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by