Re: [sumo-user] randomTrips for multiple vTypes

2020-05-28 Thread Jakob Erdmann
Note: you can set randomTrips options --vtype-output to have  the vType
definition written into a separate file.

Am Do., 28. Mai 2020 um 00:16 Uhr schrieb Dayuan Tan :

> Dear Jakob,
>
> Thank you very much for helping!
>
> I did as what you said and it works now.
>
> Thank you very much and have a good day! I appreciate it very much!
>
> --
> Notes for future readers:
> When you do second approach, don't add *.add.vtype.xml in *.sumocfg as
> additional file as randomTrips.py already write  into route files.
> Otherwise sumo will prompt vType definition conflict.
>
> Sincerely,
> Dayuan
>
>
>
>
> **
>
>
>
>
> *Dayuan(Neil) TanUMBC*
>
> On May 27, 2020, at 08:46, Jakob Erdmann  wrote:
>
> There is a typographic dash In your command
> —-trip-attributes="type=\"typedist1\""
> This was probably introduced by a "smart" email program and is well known
> to confuse the command line.
> Simply retype the command and it should work.
>
> Am Di., 26. Mai 2020 um 23:54 Uhr schrieb Dayuan Tan :
>
>> Dear Jakob,
>>
>> Thank you very much! I appreciate your helping very much!
>>
>> *A. First approach.*
>> I solved this problem using the first approach you mentioned. What I did
>> is:
>> 1. Run tools/randomTrips.py …… multiple times with  --vehicle-class  —
>> prefix
>> 2. Put multiple route files generated in step 1 into *.sumocfg
>>  with "," between them.
>>
>> I wrote down my steps since I know you will archive all emails and post
>> them on Eclipse.org . This might help other people
>> who have same questions. I benefited a lot from those archived historical
>> emails. I'm grateful to you guys for doing it.
>>
>> *B. Second approach. *
>> The command I used when I tried the second approach you mentioned is:
>> tools/randomTrips.py -n *.net.xml -o *.trips.xml -r *.rou.xml --period
>> 0.2 --additional-file *.add.vtype.xml --fringe-factor 100
>> —-trip-attributes="type=\"typedist1\""
>>
>> The add.vtype.xml file is:
>> 
>> 
>> > guiShape="passenger" probability="0.9"/>
>> 
>> 
>> 
>>
>> But, the content of generated trips.xml and rou.xml are:
>> 
>> 
>> 
>> 
>> 
>> and
>> .
>>
>> They both don't have *type="" *attribute. However in approach one the
>> generate trip/route files have this attribute and they look like > id="0" depart="0.00" *type="bus"*> and > ="bottom1B0" to="E2F2.580.00" *type="bus"*/>. When I run the simulation
>> with second approach files, all vehicles' appearance in sumo gui are
>> passenger vType without bus vType. I select some of them and show type
>> parameters they are all "passenger", no "bus" found.
>>
>> Could you help to point out which part I did wrong with the second
>> approach? Thank you very much!
>>
>>
>>
>>
>> Thank you very much!
>>
>> Have a good day and stay safe!
>>
>> Sincerely,
>> Dayuan
>>
>>
>>
>>
>> **
>>
>>
>>
>>
>> *Dayuan(Neil) TanUMBC*
>>
>> On May 26, 2020, at 01:06, Jakob Erdmann  wrote:
>>
>> The vTypeDistribution approach only works if all the roads in your
>> simulation can be used by all vClasses in the distribution. Otherwise you
>> should use multiple randomTrips calls and add the option --vclass.
>> The option --trip-attributes should work just the way you wrote it.
>> On a general note: Whenever you try something according to the
>> documentation and it doesn't work, please describe the way in which you
>> called the tool and the resulting error.
>>
>> regards,
>> Jakob
>>
>>
>>
>> Am Di., 26. Mai 2020 um 00:50 Uhr schrieb Dayuan Tan :
>>
>>> Dear Jakob,
>>>
>>> Thank you very much for helping!
>>>
>>> I tried the second approach you mentioned before I asked. But when I
>>> tried it, I have following addition xml file.
>>> 
>>> >> guiShape="passenger" probability="0.9"/>
>>> >> "bus" probability="0.1"/>
>>> 
>>>
>>> Could you help to clarify how to set type attribute? I tried
>>> randomTrips.py --trip-attributes="type=\"typedist1\"" But it doesn't
>>> work.
>>> I think I need a list of parameters which can be put into
>>> --trip-attributes="" but I didn't find it.
>>>
>>> Thank you very much! I appreciate it very much!
>>>
>>> Have a good day!
>>>
>>> Sincerely,
>>> Dayuan
>>>
>>> **
>>>
>>>
>>>
>>>
>>> *Dayuan(Neil) TanUMBC*
>>>
>>> On May 25, 2020, at 04:54, Jakob Erdmann  wrote:
>>>
>>> If you wish to generated multiple types you either have to
>>> - run randomTrips multiple times with a different type attribute (you
>>> also need to set the --prefix option to ensure all vehicles have distinct
>>> ids).
>>> - put the types into a vTypeDistribution and put the distribution id
>>> into the type attribute
>>>
>>> Am Mo., 25. Mai 2020 um 09:18 Uhr schrieb Dayuan Tan :
>>>
 Dear Jacob,

 Thank you very much for your helping!

 I actually checked the webpage you sent before I asked. It mentions the
 case with one vType: "
 /tools/randomTrips.py -n input_net.net.xml --trip-attributes=
 "type=\"myType\"" --additional-file type.add.xml
--edge-permission passenger"

 I'm wondering 

Re: [sumo-user] randomTrips for multiple vTypes

2020-05-27 Thread Dayuan Tan
Dear Jakob,

Thank you very much for helping!

I did as what you said and it works now. 

Thank you very much and have a good day! I appreciate it very much!

--
Notes for future readers:
When you do second approach, don't add *.add.vtype.xml in *.sumocfg as 
additional file as randomTrips.py already write  into route files. 
Otherwise sumo will prompt vType definition conflict. 

Sincerely,
Dayuan

 



Dayuan(Neil) Tan
UMBC



> On May 27, 2020, at 08:46, Jakob Erdmann  wrote:
> 
> There is a typographic dash In your command  
> —-trip-attributes="type=\"typedist1\""
> This was probably introduced by a "smart" email program and is well known to 
> confuse the command line.
> Simply retype the command and it should work.
> 
> Am Di., 26. Mai 2020 um 23:54 Uhr schrieb Dayuan Tan  >:
> Dear Jakob,
> 
> Thank you very much! I appreciate your helping very much!
> 
> A. First approach.
> I solved this problem using the first approach you mentioned. What I did is:
> 1. Run tools/randomTrips.py …… multiple times with  --vehicle-class  —prefix 
> 2. Put multiple route files generated in step 1 into *.sumocfg  values=""> with "," between them.
> 
> I wrote down my steps since I know you will archive all emails and post them 
> on Eclipse.org . This might help other people who have 
> same questions. I benefited a lot from those archived historical emails. I'm 
> grateful to you guys for doing it. 
> 
> B. Second approach. 
> The command I used when I tried the second approach you mentioned is:
> tools/randomTrips.py -n *.net.xml -o *.trips.xml -r *.rou.xml --period 0.2 
> --additional-file *.add.vtype.xml --fringe-factor 100 
> —-trip-attributes="type=\"typedist1\""
> 
> The add.vtype.xml file is: 
> 
> 
>  guiShape="passenger" probability="0.9"/>
>  guiShape="bus" probability="0.1"/>
> 
> 
> 
> But, the content of generated trips.xml and rou.xml are:
> 
> 
> 
> 
> 
> and
> .
> 
> They both don't have type="" attribute. However in approach one the generate 
> trip/route files have this attribute and they look like  depart="0.00" type="bus"> and  to="E2F2.580.00" type="bus"/>. When I run the simulation with second approach 
> files, all vehicles' appearance in sumo gui are passenger vType without bus 
> vType. I select some of them and show type parameters they are all 
> "passenger", no "bus" found. 
> 
> Could you help to point out which part I did wrong with the second approach? 
> Thank you very much!
> 
> 
> 
> 
> Thank you very much!
> 
> Have a good day and stay safe!
> 
> Sincerely,
> Dayuan
> 
> 
> 
> 
> 
> Dayuan(Neil) Tan
> UMBC
> 
> 
> 
>> On May 26, 2020, at 01:06, Jakob Erdmann > > wrote:
>> 
>> The vTypeDistribution approach only works if all the roads in your 
>> simulation can be used by all vClasses in the distribution. Otherwise you 
>> should use multiple randomTrips calls and add the option --vclass.
>> The option --trip-attributes should work just the way you wrote it.
>> On a general note: Whenever you try something according to the documentation 
>> and it doesn't work, please describe the way in which you called the tool 
>> and the resulting error.
>> 
>> regards,
>> Jakob
>> 
>> 
>> 
>> Am Di., 26. Mai 2020 um 00:50 Uhr schrieb Dayuan Tan > >:
>> Dear Jakob,
>> 
>> Thank you very much for helping!
>> 
>> I tried the second approach you mentioned before I asked. But when I tried 
>> it, I have following addition xml file. 
>> 
>> > guiShape="passenger" probability="0.9"/>
>> > guiShape="bus" probability="0.1"/>
>> 
>> 
>> Could you help to clarify how to set type attribute? I tried randomTrips.py 
>> --trip-attributes="type=\"typedist1\"" But it doesn't work.
>> I think I need a list of parameters which can be put into 
>> --trip-attributes="" but I didn't find it.
>> 
>> Thank you very much! I appreciate it very much!
>> 
>> Have a good day!
>> 
>> Sincerely,
>> Dayuan
>> 
>> 
>> Dayuan(Neil) Tan
>> UMBC
>> 
>> 
>> 
>>> On May 25, 2020, at 04:54, Jakob Erdmann >> > wrote:
>>> 
>>> If you wish to generated multiple types you either have to 
>>> - run randomTrips multiple times with a different type attribute (you also 
>>> need to set the --prefix option to ensure all vehicles have distinct ids).
>>> - put the types into a vTypeDistribution and put the distribution id into 
>>> the type attribute
>>> 
>>> Am Mo., 25. Mai 2020 um 09:18 Uhr schrieb Dayuan Tan >> >:
>>> Dear Jacob,
>>> 
>>> Thank you very much for your helping!
>>> 
>>> I actually checked the webpage you sent before I asked. It mentions the 
>>> case with one vType: "/tools/randomTrips.py -n input_net.net.xml 
>>> --trip-attributes="type=\"myType\"" --additional-file type.add.xml
>>>--edge-permission passenger"
>>> 
>>> I'm wondering what if I have multiple vTypes 

Re: [sumo-user] randomTrips for multiple vTypes

2020-05-27 Thread Jakob Erdmann
There is a typographic dash In your command
—-trip-attributes="type=\"typedist1\""
This was probably introduced by a "smart" email program and is well known
to confuse the command line.
Simply retype the command and it should work.

Am Di., 26. Mai 2020 um 23:54 Uhr schrieb Dayuan Tan :

> Dear Jakob,
>
> Thank you very much! I appreciate your helping very much!
>
> *A. First approach.*
> I solved this problem using the first approach you mentioned. What I did
> is:
> 1. Run tools/randomTrips.py …… multiple times with  --vehicle-class  —
> prefix
> 2. Put multiple route files generated in step 1 into *.sumocfg
>  with "," between them.
>
> I wrote down my steps since I know you will archive all emails and post
> them on Eclipse.org. This might help other people who have same
> questions. I benefited a lot from those archived historical emails. I'm
> grateful to you guys for doing it.
>
> *B. Second approach. *
> The command I used when I tried the second approach you mentioned is:
> tools/randomTrips.py -n *.net.xml -o *.trips.xml -r *.rou.xml --period 0.2
> --additional-file *.add.vtype.xml --fringe-factor 100
> —-trip-attributes="type=\"typedist1\""
>
> The add.vtype.xml file is:
> 
> 
>  guiShape="passenger" probability="0.9"/>
> 
> 
> 
>
> But, the content of generated trips.xml and rou.xml are:
> 
> 
> 
> 
> 
> and
> .
>
> They both don't have *type="" *attribute. However in approach one the
> generate trip/route files have this attribute and they look like  id="0" depart="0.00" *type="bus"*> and  "bottom1B0" to="E2F2.580.00" *type="bus"*/>. When I run the simulation
> with second approach files, all vehicles' appearance in sumo gui are
> passenger vType without bus vType. I select some of them and show type
> parameters they are all "passenger", no "bus" found.
>
> Could you help to point out which part I did wrong with the second
> approach? Thank you very much!
>
>
>
>
> Thank you very much!
>
> Have a good day and stay safe!
>
> Sincerely,
> Dayuan
>
>
>
>
> **
>
>
>
>
> *Dayuan(Neil) TanUMBC*
>
> On May 26, 2020, at 01:06, Jakob Erdmann  wrote:
>
> The vTypeDistribution approach only works if all the roads in your
> simulation can be used by all vClasses in the distribution. Otherwise you
> should use multiple randomTrips calls and add the option --vclass.
> The option --trip-attributes should work just the way you wrote it.
> On a general note: Whenever you try something according to the
> documentation and it doesn't work, please describe the way in which you
> called the tool and the resulting error.
>
> regards,
> Jakob
>
>
>
> Am Di., 26. Mai 2020 um 00:50 Uhr schrieb Dayuan Tan :
>
>> Dear Jakob,
>>
>> Thank you very much for helping!
>>
>> I tried the second approach you mentioned before I asked. But when I
>> tried it, I have following addition xml file.
>> 
>> > guiShape="passenger" probability="0.9"/>
>> 
>> 
>>
>> Could you help to clarify how to set type attribute? I tried
>> randomTrips.py --trip-attributes="type=\"typedist1\"" But it doesn't
>> work.
>> I think I need a list of parameters which can be put into
>> --trip-attributes="" but I didn't find it.
>>
>> Thank you very much! I appreciate it very much!
>>
>> Have a good day!
>>
>> Sincerely,
>> Dayuan
>>
>> **
>>
>>
>>
>>
>> *Dayuan(Neil) TanUMBC*
>>
>> On May 25, 2020, at 04:54, Jakob Erdmann  wrote:
>>
>> If you wish to generated multiple types you either have to
>> - run randomTrips multiple times with a different type attribute (you
>> also need to set the --prefix option to ensure all vehicles have distinct
>> ids).
>> - put the types into a vTypeDistribution and put the distribution id into
>> the type attribute
>>
>> Am Mo., 25. Mai 2020 um 09:18 Uhr schrieb Dayuan Tan :
>>
>>> Dear Jacob,
>>>
>>> Thank you very much for your helping!
>>>
>>> I actually checked the webpage you sent before I asked. It mentions the
>>> case with one vType: "
>>> /tools/randomTrips.py -n input_net.net.xml --trip-attributes=
>>> "type=\"myType\"" --additional-file type.add.xml
>>>--edge-permission passenger"
>>>
>>> I'm wondering what if I have multiple vTypes defined in addition.xml. I
>>> tried to change it to "…--trip-attributes="type=\"myType1 myType2
>>> myType3 myType3\""  …" but it seems it doesn't work.
>>>
>>> Thank you very much!
>>>
>>> Have a good day!
>>>
>>> Sincerely,
>>> Dayuan
>>>
>>>
>>> **
>>>
>>>
>>>
>>>
>>> *Dayuan(Neil) TanUMBC*
>>>
>>> On May 24, 2020, at 15:09, Jakob Erdmann  wrote:
>>>
>>> see
>>> https://sumo.dlr.de/docs/Tools/Trip.html#setting_a_vehicle_type_from_an_external_file
>>>
>>> Am So., 24. Mai 2020 um 05:23 Uhr schrieb Dayuan Tan :
>>>
 Dear All,

 Could anyone help to explain how to use randomTrips to generate trips
 with multiple vehicles types?
 On the official website it mentions "randomTrips.py --vehicle-class
 bus".
 But I have multiple vehicle types defined in my addition.xml file.

 I tried using vehicle type distribution
 

Re: [sumo-user] randomTrips for multiple vTypes

2020-05-26 Thread Dayuan Tan
Dear Jakob,

Thank you very much! I appreciate your helping very much!

A. First approach.
I solved this problem using the first approach you mentioned. What I did is:
1. Run tools/randomTrips.py …… multiple times with  --vehicle-class  —prefix 
2. Put multiple route files generated in step 1 into *.sumocfg  with "," between them.

I wrote down my steps since I know you will archive all emails and post them on 
Eclipse.org. This might help other people who have same questions. I benefited 
a lot from those archived historical emails. I'm grateful to you guys for doing 
it. 

B. Second approach. 
The command I used when I tried the second approach you mentioned is:
tools/randomTrips.py -n *.net.xml -o *.trips.xml -r *.rou.xml --period 0.2 
--additional-file *.add.vtype.xml --fringe-factor 100 
—-trip-attributes="type=\"typedist1\""

The add.vtype.xml file is: 







But, the content of generated trips.xml and rou.xml are:





and
.

They both don't have type="" attribute. However in approach one the generate 
trip/route files have this attribute and they look like  and . When I run the simulation with second approach 
files, all vehicles' appearance in sumo gui are passenger vType without bus 
vType. I select some of them and show type parameters they are all "passenger", 
no "bus" found. 

Could you help to point out which part I did wrong with the second approach? 
Thank you very much!




Thank you very much!

Have a good day and stay safe!

Sincerely,
Dayuan





Dayuan(Neil) Tan
UMBC



> On May 26, 2020, at 01:06, Jakob Erdmann  wrote:
> 
> The vTypeDistribution approach only works if all the roads in your simulation 
> can be used by all vClasses in the distribution. Otherwise you should use 
> multiple randomTrips calls and add the option --vclass.
> The option --trip-attributes should work just the way you wrote it.
> On a general note: Whenever you try something according to the documentation 
> and it doesn't work, please describe the way in which you called the tool and 
> the resulting error.
> 
> regards,
> Jakob
> 
> 
> 
> Am Di., 26. Mai 2020 um 00:50 Uhr schrieb Dayuan Tan  >:
> Dear Jakob,
> 
> Thank you very much for helping!
> 
> I tried the second approach you mentioned before I asked. But when I tried 
> it, I have following addition xml file. 
> 
>  guiShape="passenger" probability="0.9"/>
>  guiShape="bus" probability="0.1"/>
> 
> 
> Could you help to clarify how to set type attribute? I tried randomTrips.py 
> --trip-attributes="type=\"typedist1\"" But it doesn't work.
> I think I need a list of parameters which can be put into 
> --trip-attributes="" but I didn't find it.
> 
> Thank you very much! I appreciate it very much!
> 
> Have a good day!
> 
> Sincerely,
> Dayuan
> 
> 
> Dayuan(Neil) Tan
> UMBC
> 
> 
> 
>> On May 25, 2020, at 04:54, Jakob Erdmann > > wrote:
>> 
>> If you wish to generated multiple types you either have to 
>> - run randomTrips multiple times with a different type attribute (you also 
>> need to set the --prefix option to ensure all vehicles have distinct ids).
>> - put the types into a vTypeDistribution and put the distribution id into 
>> the type attribute
>> 
>> Am Mo., 25. Mai 2020 um 09:18 Uhr schrieb Dayuan Tan > >:
>> Dear Jacob,
>> 
>> Thank you very much for your helping!
>> 
>> I actually checked the webpage you sent before I asked. It mentions the case 
>> with one vType: "/tools/randomTrips.py -n input_net.net.xml 
>> --trip-attributes="type=\"myType\"" --additional-file type.add.xml
>>--edge-permission passenger"
>> 
>> I'm wondering what if I have multiple vTypes defined in addition.xml. I 
>> tried to change it to "…--trip-attributes="type=\"myType1 myType2 myType3 
>> myType3\""  …" but it seems it doesn't work. 
>> 
>> Thank you very much!
>> 
>> Have a good day!
>> 
>> Sincerely,
>> Dayuan
>> 
>> 
>> 
>> Dayuan(Neil) Tan
>> UMBC
>> 
>> 
>> 
>>> On May 24, 2020, at 15:09, Jakob Erdmann >> > wrote:
>>> 
>>> see 
>>> https://sumo.dlr.de/docs/Tools/Trip.html#setting_a_vehicle_type_from_an_external_file
>>>  
>>> 
>>> Am So., 24. Mai 2020 um 05:23 Uhr schrieb Dayuan Tan >> >:
>>> Dear All,
>>> 
>>> Could anyone help to explain how to use randomTrips to generate trips with 
>>> multiple vehicles types?
>>> On the official website it mentions "randomTrips.py --vehicle-class bus".
>>> But I have multiple vehicle types defined in my addition.xml file. 
>>> 
>>> I tried using vehicle type distribution 
>>> 
>>>  but it doesn't work. The output rou.xml still doesn't have type attribute 
>>> for vehicles. 
>>> 
>>> Thank you 

Re: [sumo-user] randomTrips for multiple vTypes

2020-05-25 Thread Jakob Erdmann
The vTypeDistribution approach only works if all the roads in your
simulation can be used by all vClasses in the distribution. Otherwise you
should use multiple randomTrips calls and add the option --vclass.
The option --trip-attributes should work just the way you wrote it.
On a general note: Whenever you try something according to the
documentation and it doesn't work, please describe the way in which you
called the tool and the resulting error.

regards,
Jakob



Am Di., 26. Mai 2020 um 00:50 Uhr schrieb Dayuan Tan :

> Dear Jakob,
>
> Thank you very much for helping!
>
> I tried the second approach you mentioned before I asked. But when I tried
> it, I have following addition xml file.
> 
>  guiShape="passenger" probability="0.9"/>
> 
> 
>
> Could you help to clarify how to set type attribute? I tried
> randomTrips.py --trip-attributes="type=\"typedist1\"" But it doesn't work.
> I think I need a list of parameters which can be put into
> --trip-attributes="" but I didn't find it.
>
> Thank you very much! I appreciate it very much!
>
> Have a good day!
>
> Sincerely,
> Dayuan
>
> **
>
>
>
>
> *Dayuan(Neil) TanUMBC*
>
> On May 25, 2020, at 04:54, Jakob Erdmann  wrote:
>
> If you wish to generated multiple types you either have to
> - run randomTrips multiple times with a different type attribute (you also
> need to set the --prefix option to ensure all vehicles have distinct ids).
> - put the types into a vTypeDistribution and put the distribution id into
> the type attribute
>
> Am Mo., 25. Mai 2020 um 09:18 Uhr schrieb Dayuan Tan :
>
>> Dear Jacob,
>>
>> Thank you very much for your helping!
>>
>> I actually checked the webpage you sent before I asked. It mentions the
>> case with one vType: "
>> /tools/randomTrips.py -n input_net.net.xml --trip-attributes=
>> "type=\"myType\"" --additional-file type.add.xml
>>--edge-permission passenger"
>>
>> I'm wondering what if I have multiple vTypes defined in addition.xml. I
>> tried to change it to "…--trip-attributes="type=\"myType1 myType2
>> myType3 myType3\""  …" but it seems it doesn't work.
>>
>> Thank you very much!
>>
>> Have a good day!
>>
>> Sincerely,
>> Dayuan
>>
>>
>> **
>>
>>
>>
>>
>> *Dayuan(Neil) TanUMBC*
>>
>> On May 24, 2020, at 15:09, Jakob Erdmann  wrote:
>>
>> see
>> https://sumo.dlr.de/docs/Tools/Trip.html#setting_a_vehicle_type_from_an_external_file
>>
>> Am So., 24. Mai 2020 um 05:23 Uhr schrieb Dayuan Tan :
>>
>>> Dear All,
>>>
>>> Could anyone help to explain how to use randomTrips to generate trips
>>> with multiple vehicles types?
>>> On the official website it mentions "randomTrips.py --vehicle-class
>>> bus".
>>> But I have multiple vehicle types defined in my addition.xml file.
>>>
>>> I tried using vehicle type distribution
>>> 
>>>  but
>>> it doesn't work. The output rou.xml still doesn't have type attribute for
>>> vehicles.
>>>
>>> Thank you very much! I appreciate it very much!
>>>
>>> Have a good day!
>>>
>>> Sincerely,
>>> Dayuan
>>>
>>>
>>> **
>>>
>>>
>>>
>>>
>>> *Dayuan(Neil) TanUMBC*
>>>
>>> ___
>>> sumo-user mailing list
>>> sumo-user@eclipse.org
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
>>
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] randomTrips for multiple vTypes

2020-05-25 Thread Dayuan Tan
Dear Jakob,

Thank you very much for helping!

I tried the second approach you mentioned before I asked. But when I tried it, 
I have following addition xml file. 





Could you help to clarify how to set type attribute? I tried randomTrips.py 
--trip-attributes="type=\"typedist1\"" But it doesn't work.
I think I need a list of parameters which can be put into --trip-attributes="" 
but I didn't find it.

Thank you very much! I appreciate it very much!

Have a good day!

Sincerely,
Dayuan


Dayuan(Neil) Tan
UMBC



> On May 25, 2020, at 04:54, Jakob Erdmann  wrote:
> 
> If you wish to generated multiple types you either have to 
> - run randomTrips multiple times with a different type attribute (you also 
> need to set the --prefix option to ensure all vehicles have distinct ids).
> - put the types into a vTypeDistribution and put the distribution id into the 
> type attribute
> 
> Am Mo., 25. Mai 2020 um 09:18 Uhr schrieb Dayuan Tan  >:
> Dear Jacob,
> 
> Thank you very much for your helping!
> 
> I actually checked the webpage you sent before I asked. It mentions the case 
> with one vType: "/tools/randomTrips.py -n input_net.net.xml 
> --trip-attributes="type=\"myType\"" --additional-file type.add.xml
>--edge-permission passenger"
> 
> I'm wondering what if I have multiple vTypes defined in addition.xml. I tried 
> to change it to "…--trip-attributes="type=\"myType1 myType2 myType3 
> myType3\""  …" but it seems it doesn't work. 
> 
> Thank you very much!
> 
> Have a good day!
> 
> Sincerely,
> Dayuan
> 
> 
> 
> Dayuan(Neil) Tan
> UMBC
> 
> 
> 
>> On May 24, 2020, at 15:09, Jakob Erdmann > > wrote:
>> 
>> see 
>> https://sumo.dlr.de/docs/Tools/Trip.html#setting_a_vehicle_type_from_an_external_file
>>  
>> 
>> Am So., 24. Mai 2020 um 05:23 Uhr schrieb Dayuan Tan > >:
>> Dear All,
>> 
>> Could anyone help to explain how to use randomTrips to generate trips with 
>> multiple vehicles types?
>> On the official website it mentions "randomTrips.py --vehicle-class bus".
>> But I have multiple vehicle types defined in my addition.xml file. 
>> 
>> I tried using vehicle type distribution 
>> 
>>  but it doesn't work. The output rou.xml still doesn't have type attribute 
>> for vehicles. 
>> 
>> Thank you very much! I appreciate it very much!
>> 
>> Have a good day!
>> 
>> Sincerely,
>> Dayuan
>> 
>> 
>> 
>> Dayuan(Neil) Tan
>> UMBC
>> 
>> 
>> 
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org 
>> To unsubscribe from this list, visit 
>> https://www.eclipse.org/mailman/listinfo/sumo-user 
>> 
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org 
>> To unsubscribe from this list, visit 
>> https://www.eclipse.org/mailman/listinfo/sumo-user 
>> 
> 
> ___
> sumo-user mailing list
> sumo-user@eclipse.org 
> To unsubscribe from this list, visit 
> https://www.eclipse.org/mailman/listinfo/sumo-user 
> 
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit 
> https://www.eclipse.org/mailman/listinfo/sumo-user

___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] randomTrips for multiple vTypes

2020-05-25 Thread Jakob Erdmann
If you wish to generated multiple types you either have to
- run randomTrips multiple times with a different type attribute (you also
need to set the --prefix option to ensure all vehicles have distinct ids).
- put the types into a vTypeDistribution and put the distribution id into
the type attribute

Am Mo., 25. Mai 2020 um 09:18 Uhr schrieb Dayuan Tan :

> Dear Jacob,
>
> Thank you very much for your helping!
>
> I actually checked the webpage you sent before I asked. It mentions the
> case with one vType: "
> /tools/randomTrips.py -n input_net.net.xml --trip-attributes=
> "type=\"myType\"" --additional-file type.add.xml
>--edge-permission passenger"
>
> I'm wondering what if I have multiple vTypes defined in addition.xml. I
> tried to change it to "…--trip-attributes="type=\"myType1 myType2 myType3
> myType3\""  …" but it seems it doesn't work.
>
> Thank you very much!
>
> Have a good day!
>
> Sincerely,
> Dayuan
>
>
> **
>
>
>
>
> *Dayuan(Neil) TanUMBC*
>
> On May 24, 2020, at 15:09, Jakob Erdmann  wrote:
>
> see
> https://sumo.dlr.de/docs/Tools/Trip.html#setting_a_vehicle_type_from_an_external_file
>
> Am So., 24. Mai 2020 um 05:23 Uhr schrieb Dayuan Tan :
>
>> Dear All,
>>
>> Could anyone help to explain how to use randomTrips to generate trips
>> with multiple vehicles types?
>> On the official website it mentions "randomTrips.py --vehicle-class bus".
>> But I have multiple vehicle types defined in my addition.xml file.
>>
>> I tried using vehicle type distribution
>> 
>>  but
>> it doesn't work. The output rou.xml still doesn't have type attribute for
>> vehicles.
>>
>> Thank you very much! I appreciate it very much!
>>
>> Have a good day!
>>
>> Sincerely,
>> Dayuan
>>
>>
>> **
>>
>>
>>
>>
>> *Dayuan(Neil) TanUMBC*
>>
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] randomTrips for multiple vTypes

2020-05-25 Thread Dayuan Tan
Dear Jacob,

Thank you very much for your helping!

I actually checked the webpage you sent before I asked. It mentions the case 
with one vType: "/tools/randomTrips.py -n input_net.net.xml 
--trip-attributes="type=\"myType\"" --additional-file type.add.xml
   --edge-permission passenger"

I'm wondering what if I have multiple vTypes defined in addition.xml. I tried 
to change it to "…--trip-attributes="type=\"myType1 myType2 myType3 myType3\""  
…" but it seems it doesn't work. 

Thank you very much!

Have a good day!

Sincerely,
Dayuan



Dayuan(Neil) Tan
UMBC



> On May 24, 2020, at 15:09, Jakob Erdmann  wrote:
> 
> see 
> https://sumo.dlr.de/docs/Tools/Trip.html#setting_a_vehicle_type_from_an_external_file
>  
> 
> Am So., 24. Mai 2020 um 05:23 Uhr schrieb Dayuan Tan  >:
> Dear All,
> 
> Could anyone help to explain how to use randomTrips to generate trips with 
> multiple vehicles types?
> On the official website it mentions "randomTrips.py --vehicle-class bus".
> But I have multiple vehicle types defined in my addition.xml file. 
> 
> I tried using vehicle type distribution 
> 
>  but it doesn't work. The output rou.xml still doesn't have type attribute 
> for vehicles. 
> 
> Thank you very much! I appreciate it very much!
> 
> Have a good day!
> 
> Sincerely,
> Dayuan
> 
> 
> 
> Dayuan(Neil) Tan
> UMBC
> 
> 
> 
> ___
> sumo-user mailing list
> sumo-user@eclipse.org 
> To unsubscribe from this list, visit 
> https://www.eclipse.org/mailman/listinfo/sumo-user 
> 
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit 
> https://www.eclipse.org/mailman/listinfo/sumo-user

___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] randomTrips for multiple vTypes

2020-05-24 Thread Jakob Erdmann
see
https://sumo.dlr.de/docs/Tools/Trip.html#setting_a_vehicle_type_from_an_external_file

Am So., 24. Mai 2020 um 05:23 Uhr schrieb Dayuan Tan :

> Dear All,
>
> Could anyone help to explain how to use randomTrips to generate trips with
> multiple vehicles types?
> On the official website it mentions "randomTrips.py --vehicle-class bus".
> But I have multiple vehicle types defined in my addition.xml file.
>
> I tried using vehicle type distribution
> 
>  but
> it doesn't work. The output rou.xml still doesn't have type attribute for
> vehicles.
>
> Thank you very much! I appreciate it very much!
>
> Have a good day!
>
> Sincerely,
> Dayuan
>
>
> **
>
>
>
>
> *Dayuan(Neil) TanUMBC*
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] randomTrips for multiple vTypes

2020-05-23 Thread Dayuan Tan
Dear All,

Could anyone help to explain how to use randomTrips to generate trips with 
multiple vehicles types?
On the official website it mentions "randomTrips.py --vehicle-class bus".
But I have multiple vehicle types defined in my addition.xml file. 

I tried using vehicle type distribution 

 but it doesn't work. The output rou.xml still doesn't have type attribute for 
vehicles. 

Thank you very much! I appreciate it very much!

Have a good day!

Sincerely,
Dayuan



Dayuan(Neil) Tan
UMBC



___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user