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:
> 
> 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 new mail was due to an error in your 
> email program that sent the old mail again by accident.
> 
> regards,
> Jakob
> 
>> Am Di., 12. Feb. 2019 um 07:26 Uhr schrieb 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 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 
 :
 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.
 ___
 sumo-user mailing list
 sumo-user@eclipse.org
 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@eclipse.org
>>> 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@eclipse.org
>> 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@eclipse.org
> 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@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user


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 new mail was due to an error in your
email program that sent the old mail again by accident.

regards,
Jakob

Am Di., 12. Feb. 2019 um 07:26 Uhr schrieb 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 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 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.
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> 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@eclipse.org
> 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@eclipse.org
> 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@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user


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


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


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


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 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 > 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 mailto:mhal...@icloud.com>>:


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


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


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 say I have a platoon of vehicles [ 1 2 3 6 5] six being a 
vehicle that joined the platoon at that position. Could I use the simpla 
approach to reorder them to say [ 1 2 3 4 5 6]?
Halid J. K Mahama

> On Feb 9, 2019, at 23:29, Jakob Erdmann  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 
>> :
>> 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@eclipse.org
>> 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@eclipse.org
> 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@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user


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 having
multiple platoons at the same time).

regards,
Jakob


Am Sa., 9. Feb. 2019 um 16:01 Uhr schrieb Halid Jonathan Kobbie Mahama <
mhal...@icloud.com>:

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


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 16:01 schrieb Halid Jonathan Kobbie Mahama:

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