Hello,
DUAROUTER always expands all distributions to ensure that vClass
dependencies between route and vType are maintained. If you want to use
distributions in your simulation, use a dummy vType for routing (with the
option -vtype-output to put the type in another file) and then load another
vType definition file for your simulation.
regards,
Jakob

2014-10-31 19:15 GMT+01:00 Chet Nieter <[email protected]>:

> Hi,
>
> I am trying to use vehicle distributions with randomTrips.py and duarouter
> via the additional-files
> option. I have the following in duarouterTest.add.xml:
>
>     <additional>
>         <vTypeDistribution id="myDist">
>             <vType id="myType1" maxSpeed="27" vClass="passenger"
> color="1,0,0" probability="0.5"/>
>             <vType id="myType2" maxSpeed="27" vClass="passenger"
> color="0,1,0" probability="0.5"/>
>         </vTypeDistribution>
>     </additional>
>
> I run randomTrip.py to generate my trips file:
>
>     randomTrips.py -n test_15sept2014.net.xml -o duarouterTest.trip.xml -e
> 5  \
>         -t "type=\"myDist\"" -a duarouterTest.add.xml --vclass passenger
>
> Then I run duarouter to get my routes file:
>
>     duarouter -n test_15sept2014.net.xml -t duarouterTest.trip.xml -d
> duarouterTest.add.xml  \
>         -o duarouterTest.rou.xml
>
> I end up with the following in my routes file:
>
>     <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:noNamespaceSchemaLocation="http://sumo-sim.org/xsd/routes_file.xsd";>
>         <vType id="myType2" maxSpeed="27.00" probability="0.50"
> vClass="passenger" color="green"/>
>         <vehicle id="0" type="myDist" depart="0.00">
>             <route edges="255841271#0 -255841271#0 -51140038#3 -51140038#2
> -51140038#1 -51140038#0 51140038#0"/>
>         </vehicle>
>         <vehicle id="1" type="myDist" depart="1.00">
>             <route edges="5342170#1 5342170#2 -5338376#4"/>
>         </vehicle>
>         <vType id="myType1" maxSpeed="27.00" probability="0.50"
> vClass="passenger" color="red"/>
>         <vehicle id="2" type="myDist" depart="2.00">
>             <route edges="-5342170#5 5327844#6 5327844#7"/>
>         </vehicle>
>         ...
>
> The vType elements are no longer enclosed in the vTypeDistribution
> element. If I hand edit my routes
> file to put them back into the vTypeDistribution element things work fine
> in Sumo. Could there be a bug in
> how duarouter deals with vTypeDistribution?  I am running a binary install
> of Sumo 0.21.0 on Windows 7.
>
> Thanks,
> Chet Nieter
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
------------------------------------------------------------------------------
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to