Thank you Jakob. It worked.

Gopindra

> On Feb 13, 2017, at 1:46 AM, Jakob Erdmann <[email protected]> wrote:
> 
> Hello,
> add the randomTrips option
> --trip-attributes 'type="type1" '
> 
> Take special care to get the quotation marks right:
> <singleQote>type=<doubleQuote>type1<doubleQuote><singleQuote>
> 
> regards,
> Jakob
> 
> 2017-02-10 19:29 GMT+01:00 Gopindra Sivakumar Nair <[email protected] 
> <mailto:[email protected]>>:
> Hello
> 
> I am a SUMO newbie so please bear with me. I am using SUMO version 0.27.1.
> 
> I have created a network file and now I want to create randomized traffic of 
> a specific vehicle class.
> 
> I am using the following command to do it.
> 
> python3 ~/Softwares/sumo-0.27.1/tools/randomTrips.py -n net.net.xml -p .6 -L 
> --fringe-factor 999999999999999999 -e 3600 -r rou.rou.xml --additional-file 
> vtype.add.xml
> 
> My vtype.add.xml has the following lines
> 
> <additional>
>         <vType id="type1" accel="4" decel="6" length="5" maxSpeed="20" />
> </additional>
> 
> But my route file is as follows. As you can see there is no mention of the 
> vehicle type. What should I do to get the vehicle type assigned to each 
> vehicle?
> 
> <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 
> <http://www.w3.org/2001/XMLSchema-instance>" 
> xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd 
> <http://sumo.dlr.de/xsd/routes_file.xsd>">
>     <vehicle id="0" depart="0.00">
>         <route edges="33 34 35 36 37 38 39 92 93 94 95"/>
>     </vehicle>
>     <vehicle id="1" depart="0.60">
>         <route edges="88 89 90 91 92 93 94 57 58 59 60 61 71"/>
>     </vehicle>
>     <vehicle id="2" depart="1.20">
>         <route edges="17 18 66 67 35 36 37 38 39 40"/>
>     </vehicle>
> …
> 
> 
> Thank you for your time
> Gopindra
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot 
> <http://sdm.link/slashdot>
> _______________________________________________
> sumo-user mailing list
> [email protected] <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/sumo-user 
> <https://lists.sourceforge.net/lists/listinfo/sumo-user>
> 

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to