Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Needing more information for platooning model

Hello and thank you for the reply,

I am implementing in C++. I created a recursive function to get the leader of the platoon, but I first need to get the leader of the ego vehicle...

Thank you and kind regards,
Sinziana Sebe

On Fri, 22 Sep 2017 13:49:10 +0200
 Jakob Erdmann <namdre.sumo@xxxxxxxxxxxxxx> wrote:
are you trying to implement a new model within sumo (C++) or are you trying
to control the simulation via TraCI?
In either case, the acceleration is implied in the change of speed from one
step to the next.
Within sumo you can call MSVehicle::getAcceleration() and from TraCI you need to record the speed from the previous step for each vehicle in order
to compute acceleration.
To get the leader of a platoon you can call getLeader repeatedly (on the previous leader) until the distance to the next leader crosses some
threshold you find suitable.


2017-09-22 11:58 GMT+02:00 Sinziana-Maria Sebe via sumo-user <


I am working on implementing a platooning model based on IDM and for that purpose I would need a way to find the leader in a merge situation. I saw that both the IDM and the normal MSCFModel provide you with the leaders speed, but I would also need the acceleration as well as the leader of the whole platoon. If anyone can point in me in the right direction it would be
greatly appreciated.

Thank you,
Sinziana Sebe

Check out the vibrant tech community on one of the world's most engaging tech sites,!
sumo-user mailing list
sumo-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit

Back to the top