Adjusting the acceleration of the ego vehicle based on the velocity of the front vehicle.
Implementing the Intelligent driver model to avoid the collisions with the front vehicle.
Using Radar sensor in Carla simulator to observe the surroundings
Python 3.7
Carla
In this condition, the front vehicle / obstacle is in stationary condition. Ego vehicle stops behind the obstacle by keeping the safe distance, to avoid the collision
In this condition, the front vehicle / obstacle is in moving condition, but its velocity is less compared to the ego vehicle. Ego vehicle adjusts its speed based on the front vehicle's speed to avoid collision.