Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Regarding interchanges, steering planning for vehicles entering and leaving the shared lane

Thank you for your reply, I benefited a lot from it.

However, I would like to confirm some details with you and hope to get your reply.

 

When the flow data imported using the jtcrouter tool is a flow pattern of “5 minutes,” and converted to an one day vehicle routes (e.g. <flow id="V1" type="CarA" from="gneE161" begin ="0" end="300" number="432" departSpeed="15" departPos="base" departLane="random"/>

<flow id="V1" type="CarA" from="gneE161" begin ="300" end="600" number="620" departSpeed="15" departPos="base" departLane="random"/> ….. <flow id="V1" type="CarA" from="gneE161" begin ="86100" end="86400" number="700" departSpeed="15" departPos="base" departLane="random"/>). However, through this method, the original traffic trend of 5 minutes will be broken up into the whole day. Changing the originalJTRRouterRoutes.xml data to vehicle routes every 5 minutes as the imported data to generateTurnRatios and routeSampler will retain the original traffic time distribution. But it seems to take too much time. I'm not sure if there is a better way to achieve this goal. Thank you for being patient with me.


Sincerely

Tony Kuo


Jakob Erdmann <namdre.sumo@xxxxxxxxx> 於 2021年10月3日 週日 上午3:47寫道:
Unfortunately, jtrrouter cannot enforce this type of dependency within the routes.
However, routeSampler is well able to do this. If you are happy with the traffic volumes generated by jtrrouter and only wish to fix the routes you can use the following procedure:
- run randomTrips or jtrrouter to obtain candiate routes (you can discard the '<vehicle>' elements and simply keep the <route>s)
- use search/replace to delete all routes that contain an undesired sequence of edges
- run tools/turn-defs/generateTurnRatios.py --route-files originalJTRRouterRoutes.xml -o turncounts.xml
- run routeSampler with turncounts.xml and the adapted candidate routes

If you wish to create turncounts.xml manually, make sure to define intervals for the edgeRelations (the latest version has an improved error message):
<data>
  <interval id="generated" begin="0.0" end="99.0">
    <edgeRelation from="edgeA" to="offRamp" count="1250"/>
    <edgeRelation from="edgeA" to="motorway" count="2730"/>
...
 </interval> </data>

regards,
Jakob

Am Sa., 2. Okt. 2021 um 18:12 Uhr schrieb 郭松庭 <sungting.tw@xxxxxxxxx>:
Hello everyone

I am currently having trouble restoring the traffic condition of the interchange. Because of this interchange, vehicles leaving from the expressway will share the same “EDGE A” with vehicles entering the expressway. But jtrrouter can only set the turn ratio of an EDGE. I want to find a way that the vehicle passing A from highway then go to the urban road; the vehicle passing A from urban road then go to the highway. Schematic as shown below.



 

image.png

 I tried to use routeSampler.py to set

<edgeRelation from="HIGHWAY" to="URBANROAD" via="A"probability="1"/>

But I always find the following error, and I am not sure whether the above purpose can be achieved by using routeSampler.py

Traceback (most recent call last):

  File "routeSampler.py", line 820, in <module>

    main(get_options())

  File "routeSampler.py", line 485, in main

    b = intervals[0][0]

IndexError: list index out of range

 

Therefore, I would like to ask everyone if there is a suitable way for me to refer to. If you can directly communicate with jtrrouter, it is my favorite.


Sincerely

Tony Kuo


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

Back to the top