traci.vehicle.getLeader returns the leader vehicle. You can retrieve
vehicle speeds and accelerations with
vehicle.getSpeed, vehicle.getAcceleration which makes it possible to detect
danger.

Am Do., 10. Feb. 2022 um 22:17 Uhr schrieb Sumbal Malik <
[email protected]>:

> Can the vehicle predict the collision/stopped vehicles in advance maybe a
> few meters before so that other vehicles can change the lane early? if so,
> please explain how can we do this in SUMO.
>
> Thank you
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to