How to detect Actor (Cars, Pedestrians) in Simulink Model?

조회 수: 8 (최근 30일)
Nguyen Luong Minh
Nguyen Luong Minh 2022년 9월 28일
답변: Pratyush 2023년 6월 16일
I'm building a model in the Automate Driving Toolbox package.
I have add Radar on EgoCar to detect other actors follow link https://www.mathworks.com/help/driving/ref/simulation3dprobabilisticradar.html
As I understand, it should distinguish pedestrian or vehicle based on ObjectClassID, but when I run the program all ObjectClassID is 0.
Please help me.
Thanks.

답변 (1개)

Pratyush
Pratyush 2023년 6월 16일
Hi Nguyen.
It is my understanding that you have added a radar sensor to your ego vehicle in Driving Scenario Designer. However, while running the simulation your sensor is unable to detect all the objects.
This problem might be happening because the undetected objects might lie outside the range of your sensors. You can check and modify the range of your sensor by following the below mentioned steps.
  • Click on the sensors tab on the top left of the Driving Scenario Designer app.
  • Click the Sensor Placement dropdown. Here you can change the position of your sensor placement as well as modify its rotational parameters.
  • Click the Sensor Parameters dropdown. There is a parameter here called Field of View. Upon increasing its value you would observe that the range of detections of the sensor increases. It is depicted by the visualization of ego car with the sensor on the right.
By following the above steps the range of detection of the sensor can be increased. After setting one range, we can test the scenario by clicking Run button on the top and check if all important objects lie within the range of the sensor through the visualizations on the right. If some object is still beyond the range try increasing the range more until all the required objects get within the range.
Here is an image showing the Sensor tab in the Driving Scenario app where you can adjust the range of the sensor.
Here are some additional resources that will help you to learn more about adjusting sensor parameters.

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by