Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] develop a v2v car-following model

The car following model methods are called with a pointer to the leading vehicle. Using the function MSVehicle::getLeader you can retrieve the leader of the leader. Speed and acceleration are properties of the vehicles that you need not compute but can retrieve with getSpeed and getAcceleration.

Please move questions of this nature to the developer mailing list. (sumo-dev@xxxxxxxxxxx).


Am Fr., 27. März 2020 um 02:08 Uhr schrieb wangwenxuan <wangwenxuan@xxxxxxxxxxxxx>:


I’m trying to develop a car-following model considering the V2V communication among vehicles.  So I want to get the speed and acceleration of preceding vehicles in detection range. In MSCFModel_IDM,  the preSpeed is used, which means the preceding vehicle’s speed, but I don’t know the mechanism to get the value. Where can I see how to get or calculate this value? Could you please help me to figure this out? 

I think if I know how to get the preSpeed, I will know how to get the speed and acceleration of more than one preceding vehicles in detection range.  Please comment on my thoughts. Thank you!

Best Regards,

Wenxuan wang

sumo-user mailing list
To unsubscribe from this list, visit

Back to the top