Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Renaming vehicles during runtime

Thanks Mirko for your quick response. 
I have taken a look at the setParameter function. I am not sure if you mean that I could use that to set the vehicle ID during run time or just to give further instruction. My understanding of the set and get parameter functions is that they set and get a finite set of parameters or could they be modified to for example set the vehicle ID to a different name? 

Halid J. K Mahama

On Feb 9, 2019, at 23:29, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:

You can only remove and re-add a vehicle to modify ids.
In the Simpla-Platooning module (http://sumo.sourceforge.net/userdoc/Simpla.html), platoon positions are reflected using the type id instead (type can be changed at runtime). I would recommend this approach instead (It also scales better to having multiple platoons at the same time).

regards,
Jakob


Am Sa., 9. Feb. 2019 um 16:01 Uhr schrieb Halid Jonathan Kobbie Mahama <mhalid6@xxxxxxxxxx>:
Hello all,

I am running a simulation on sumo using a python script. I am faced with the urgent need to rename the vehicles in a platoon of vehicles after a  maneuver
Such that the joining vehicle and the vehicles behind it take on  new IDs reflective of their current position in the file of vehicles. Is there a way to reassign vehicle IDs during runtime?

Thanks in advance.

Halid Mahama

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/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://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top