Hello,
A Rerouter is not attached to individual vehicles and it's ID can be
anything you like.
Vehicles reroute when entering any of the edges in the 'edges' attribute of
the Rerouter. This should be configured to include roads that come before
the blockage.
The action description looks like this (see
http://sumo.dlr.de/wiki/Simulation/Rerouter#Closing_a_Street)

 <closingReroute id="<EDGE_ID>"/>


For modelling a fraction (i.e. 10%) vehicles that are made aware of
the blockage remotely (ie. via Radio news or other navigational aid)
you can use


 <closingReroute id="<EDGE_ID>" disallow="all"/>

and set the simulation option --device.rerouting.probability 0.1

See http://sumo.dlr.de/wiki/Demand/Automatic_Routing


regards,

Jakob



2017-03-23 9:25 GMT+01:00 Priya Toshniwal <[email protected]>:

> Hi!
>
> I am a student and I am using SUMO for my dissertation project on traffic
> simulators. I have imported ism map of Singapore from the internet,
> converted it into an network file, generated random trips using ‘random
> trips.py’ tool and ran the simulation with a teleporting time of 600
> seconds. Now, I want to simulate a scenario that can resemble real life
> scenario of a blocked road and i want the vehicles to automatically choose
> routes dynamically if they come across a blocked street.
>
> I read about rerouter and alternative route assignment:
> http://www.sumo.dlr.de/userdoc/Simulation/Rerouter.html <
> http://www.sumo.dlr.de/userdoc/Simulation/Rerouter.html>
>
> However,  do I attach rerouter to the vehicles?
>
> If I use an additional file, I need to specify rerouter ID here. How do I
> get that? And inside ‘action description’, what should I write? I basically
> have a network and random trips and I want to block any lane and I want the
> cars to dynamically reroute themselves if they encounter this lane and
> chose a new route for reaching their destination.
>
>
> Any help will be greatly appreciated. Thank you.
>
> ------------------------------------------------------------
> ------------------
> 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
>
------------------------------------------------------------------------------
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