Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] correct way to use car following model in traci

Hi,

 

getFollowSpeed is for a moving obstacle = leading vehicle, while getStopSpeed assumes a fixed obstacle (stop line, end of lane, ...). You assumptions about the speed and gap parameters are correct.

 

Best regards

Mirko

 

 

 

-----Original-Nachricht-----

Betreff: [sumo-user] correct way to use car following model in traci

Datum: 2023-07-20T12:32:57+0200

Von: "regused--- via sumo-user" <sumo-user@xxxxxxxxxxx>

An: "sumo-user@xxxxxxxxxxx" <sumo-user@xxxxxxxxxxx>

 

 

 

Hi,
 
I am trying to reuse the default Krauss car following model in the SUMO by traci, but I cannot understand whether it is correct.
 
Does the speed in the Krauss car following model is
"min(traci.vehicle.getFollowSpeed(vehid, speed, gap, leader_vehid, max_deceleration), traci.vehicle.getStopSpeed(vehid, speed, gap))"?
 
It seems not correct as the speed outputed by "getStopSpeed()" is quite small, and no acceleration limit are considered in "getStopSpeed()". In the function "getStopSpeed()", parameter speed is the current speed for vehid, is the gap the current gap with repect to the leading vehicle?


Back to the top