carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.37k stars 3.69k forks source link

@AmirMz1 Radar will detect obstacles infront of it and this code shown will show the detected points with its velocity, azimuth, altitude and longitudinal distance from radar. #6645

Open SExpert12 opened 1 year ago

SExpert12 commented 1 year ago
          @AmirMz1 Radar will detect obstacles infront of it and this code shown will show the detected points with its velocity, azimuth, altitude and longitudinal distance from radar.

You will need to do trial and error for mostly to know which points to take into consideration.

I think it is not possible to get the distance particularly from cars only. but my knowledge is limited.

You can see the images below for radar detection and its values

Points in_vehicle direction radar data radar points Radar_Points values

Originally posted by @sbv198 in https://github.com/carla-simulator/carla/issues/5395#issuecomment-1221949743 Can anyone post the whole code. I am getting black list of points instead of values. I want to use radar to measure the distance between moving cars.

SExpert12 commented 1 year ago

Radar sensor is not working in Imported map from RoadRunner. Can anyone help with this please?

sbv198 commented 1 year ago

It is better to use some algorithms to avoid unnecessary points detected by radar.

Like in the image above with detected points it white points have the same velocity as ego while red and blue points have different velocities so you can create some algorithms based on this so it will eliminate all the points that have same velocities as ego

SExpert12 commented 1 year ago

But the problem is I am getting blank list of points. It is working for other town map but when I run the same program it shows blank list although two cars are moving opposite to each other. How to resolve this? Screenshot from 2023-07-19 16-04-02