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:
Hello,
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.

regards,
Jakob


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

Hello,

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, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user




Back to the top