Is it possile to use duarouter to output a route file as below:

<flow id="5" type="vehType1" begin="0.001" end="10200" vehsPerHour="118.6931" 
from="163[0]" to="448" via="440 313 33.52 34 35 39 326 327 330 179 334 
335[1].37.14 " departSpeed="max" departLane="free" />

I managed to get duarouter to repair my current route file (which looks like 
above and unfortunately many of the routes lacks a couple if edges in the ‘via’ 
list), but the output is then in the form:

    <vType id="veh269" length="4.36" minGap="2.00" maxSpeed="50.00" 
probability="0.00" speedFactor="1.10" vClass="passenger" impatience="0.50" 
guiShape="passenger" laneChangeModel="LC2013" lcStrategic="4.1278" 
lcCooperative="0.48756" lcSpeedGain="0.0086" lcKeepRight="10" 
carFollowModel="SmartSK" accel="5" decel="10" sigma="0" tau="0.75045" 
tmp1="2.116" tmp2="0.5111" tmp3="4.9532" tmp4="3" tmp5="30.2733"/>
    <vehicle id="100.0" type="veh269" depart="0.00" departLane="free" 
departSpeed="max">
        <route edges="36 436 37 168 169 304 172 309 310 132.0 132.155 137 135 
134 138 139.0 139.34 140 141 142[0] 1072.0 1072.245 285"/>
    </vehicle>

/Daniel

From: [email protected] [mailto:[email protected]] On 
Behalf Of Jakob Erdmann
Sent: den 7 maj 2019 12:57
To: Sumo project User discussions <[email protected]>
Subject: Re: [sumo-user] Build sub-scenario

cutRoutes does not consider the 'via' attribute. only <route edges="...."/>
If your routes have lots of via edges than the result of calling duarouter and 
sumo --vehroute-output will be the same. However, duarouter should be faster.

Am Di., 7. Mai 2019 um 12:44 Uhr schrieb Thuresson, Daniel 
<[email protected]<mailto:[email protected]>>:
Hi,

Ok, thanks! Actually almost all routes are fully specified like this:
<flow id="5" type="vehType1" begin="0.001" end="10200" vehsPerHour="118.6931" 
from="163[0]" to="448" via="440 313 33.52 34 35 39 326 327 330 179 334 
335[1].37.14 " departSpeed="max" departLane="free" />

But I guess the routes that lacks one or two edges in the via list is causing 
the problem.

Assuming I have an almost fully specified route file. Can I use either one of 
duarouter or sumo with option --vehroute-output?

Regards /Daniel

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] On 
Behalf Of Jakob Erdmann
Sent: den 7 maj 2019 12:09
To: Sumo project User discussions 
<[email protected]<mailto:[email protected]>>
Subject: Re: [sumo-user] Build sub-scenario

Hello,
cutRoutes assumes that the route file contains fully specified routes (with 
lists of edges) whereas your file only contains origin and destination.
To fix this, either process the route file with duarouter (giving you 
fastest-routes for an empty network)  or run it through sumo with option 
--vehroute-output (which gives you are more plausible route assignment based on 
traffic states).

regards,
Jakob

Am Di., 7. Mai 2019 um 11:57 Uhr schrieb Thuresson, Daniel 
<[email protected]<mailto:[email protected]>>:
Hi,

I'm trying to build a sub model of a larger scenario but have run into trouble.

I have edited the original net-file with netedit and when I try to reduce the 
route file to fit the new subnet like this:

python "C:/Program Files (x86)/Eclipse/Sumo/tools/route/cutRoutes.py" -v 
C:/temp/SumoInputFiles/sumoNetworkEast_TL.net.xml 
C:/temp/AdditionalsRouteFiles/orgRoutes.rou.xml --routes-output 
C:/temp/test.rou.xml --orig-net C:/temp/SumoInputFiles/sumoNetwork_TL.net.xml

The output from this command is:

Valid area contains 331 edges
Parsing routes from C:/temp/AdditionalsRouteFiles/orgRoutes.rou.xml
Parsed 0 vehicles and kept 0 routes
Number of disconnected routes: 0. Most frequent missing edges:
Wrote 0 routes

Process finished with exit code 0

The route file (which I suspect might give me problems...) looks like this:

<trips>
<vTypeDistribution id="vehType1" >
<vType carFollowModel="SmartSK" laneChangeModel="LC2013" id="veh101" 
lcStrategic="3... />
<vType carFollowModel="SmartSK" laneChangeModel="LC2013" id="veh102" 
lcStrategic="4.3208" lcCooperative=.../>
...
<flow id="5" type="vehType1" begin="0.001" end="10200" vehsPerHour="118.6931" 
from="163[0]" to="448" via="440 313 33.52 34 35 39 326 327 330 179 334 
335[1].37.14 " departSpeed="max" departLane="free" />
<flow id="7" type="vehType1" begin="0.001" end="10200" vehsPerHour="104.6109" 
from="163[0]" to="184.339" via="440 313 33.52 34 35 39 326 327 330 331[1] 336 
337 40 41 342 343 346 347 " departSpeed="max" departLane="free" />
...

What am I doing wrong? Is the route file in a format not accepted by 
"cutRoutes.py"? is there an easy way of fixing this?

Regards /Daniel

_______________________________________________
sumo-user mailing list
[email protected]<mailto:[email protected]>
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.eclipse.org%2Fmailman%2Flistinfo%2Fsumo-user&data=02%7C01%7Cdaniel.thuresson.2%40volvocars.com%7Ca4b4d18c0169455fee0508d6d2dacd57%7C81fa766ea34948678bf4ab35e250a08f%7C0%7C0%7C636928234527399112&sdata=6zANdt%2FJeZ%2FHj7lQScHCbXHPM9hBa4Z5R58CC0HoHe8%3D&reserved=0>
_______________________________________________
sumo-user mailing list
[email protected]<mailto:[email protected]>
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.eclipse.org%2Fmailman%2Flistinfo%2Fsumo-user&data=02%7C01%7Cdaniel.thuresson.2%40volvocars.com%7Ca4b4d18c0169455fee0508d6d2dacd57%7C81fa766ea34948678bf4ab35e250a08f%7C0%7C0%7C636928234527409120&sdata=z%2FY4phENa9trUbPQp0zCg3CJDAYv4UEiiw6B8MkdwGY%3D&reserved=0>
_______________________________________________
sumo-user mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to