Driver Models

Driver Models

Behavior models for cars and pedestrians.

Action type for the pedestrian model

source

set the lane exit to take at the next junction to reach the goal

source

Check if all the pedestrian have crossed

source

Compute acceleration according to IDM

source

Return the distance to the end of the lane

source

Return the longitudinal acceleration to come to a stop at the distance headway following idm

source

Return the longitudinal acceleration to come to a stop at the end of the current lane follows idm style braking

source

set the state stop! to true if veh is stopped at the intersection

source

If other vehicles reaches the intersection before the ego vehicle they are added to the waitlist

source

return true if veh is before the intersection

source

Robust function to compute the time to drive dist at speed v

source

Remove from the wait list vehicles that are now exiting the intersection

source

Check if the ego car has priority or not

source

Check if the time to collision is above some threshold

source