Re: [sumo-user] Renaming vehicles during runtime

2019-02-11 Thread Halid Mahama
Thanks Jakob, Yes it was an error, I was also wondering the same and noticed that the first time two or so times I sent the question in my mail program had issues sending it and saved it in outbox. My apologies. Halid J. K Mahama > On Feb 12, 2019, at 14:57, Jakob Erdmann wrote: > >

Re: [sumo-user] Renaming vehicles during runtime

2019-02-11 Thread Jakob Erdmann
Frankly, I was surprised that you wrote the very same question again after alreadying having received the answer that renaming vehicles at runtime is not possible. (Quoting my answer from 3 days ago: "You can only remove and re-add a vehicle to modify ids") Therefore I was wondering whether the

Re: [sumo-user] Renaming vehicles during runtime

2019-02-11 Thread Halid Mahama
Hello Jakob, Could you kindly be more specific? The answers provided by you and Mirko to which I acknowledged are still viable leads I am working on. I am not sure I understand your message. Halid J. K Mahama > On Feb 12, 2019, at 02:11, Jakob Erdmann wrote: > > How does this question

Re: [sumo-user] Renaming vehicles during runtime

2019-02-11 Thread Jakob Erdmann
How does this question relate to your earlier question and all the answer you have received and acknowledged? Am Mo., 11. Feb. 2019 um 18:24 Uhr schrieb Halid Jonathan Kobbie Mahama < jay.kobbie@gmail.com>: > Hello all, > > I am running a simulation on sumo using a python script. I am faced

Re: [sumo-user] Renaming vehicles during runtime

2019-02-09 Thread Halid Mahama
Thanks Mirko and Jakob. I appreciate the help. Taking a look at it. Halid J. K Mahama > On Feb 10, 2019, at 01:06, Mirko Barthauer wrote: > > You can use the solution Jakob proposed. What I wanted to say: using > setParameter and getParameter, you can write and read custom string key-value

Re: [sumo-user] Renaming vehicles during runtime

2019-02-09 Thread Mirko Barthauer
You can use the solution Jakob proposed. What I wanted to say: using setParameter and getParameter, you can write and read *custom* string key-value pairs. So the set of parameters is not as finite as you might think. Regards Mirko Am 09.02.2019 um 17:44 schrieb Halid Mahama: Thanks Mirko

Re: [sumo-user] Renaming vehicles during runtime

2019-02-09 Thread Halid Mahama
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

Re: [sumo-user] Renaming vehicles during runtime

2019-02-09 Thread Halid Mahama
Thanks Jakob, for your quick response. I am taking a look a simpla at the moment. My guess at the moment is that you are suggesting using the selector attribute in simpla to reform the platoon. Will that allow me to for example order the vehicles ascending or descending order? To be specific

Re: [sumo-user] Renaming vehicles during runtime

2019-02-09 Thread Jakob Erdmann
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

Re: [sumo-user] Renaming vehicles during runtime

2019-02-09 Thread Mirko Barthauer
So essentially you use the vehicle ID to encode some additional information? Then you might take a look at the TraCI functions traci.vehicle.setParameter and traci.vehicle.getParameter to attach some string data to the vehicle instead of "misusing" the ID.+ Regards Mirko Am 09.02.2019 um