sumo icon indicating copy to clipboard operation
sumo copied to clipboard

Incomplete routes are incompatible with destProbReroute

Open ishuwen opened this issue 2 years ago • 7 comments

Add your issue description here. here is the picture: 19c07ecf54b1ba306299189de693b61

i want test the destProbReroute and closingLaneReroute function, i set the rerouter to close the lane E5 when the simulation time is 5s and choose the other lane E8 as the new destination, but only the vehicles which had departed before the close lane actived could change their destination, the vehicles which depart after the close lane actived is stopped(i use ignore-route-errors, if i dont use it the simulation will generate error)

here is what i set in add file:

  <rerouter id="rr_0" edges="E1" pos="86.53,10.29">
        <interval begin="5.00" end="3600.00">
            destProbReroute id="E8" probability="1.00"/>
            <closingLaneReroute id="E5_0" disallow="all"/>
        </interval>
  </rerouter>

and if i use destProbReroute only and close lane in the sumo-gui by right button click, it will work normally, what's the difference between closelane rerouter and closelane in sumo-gui? Thanks!

SUMO-version: 1.18 operating system: Windows111

ishuwen avatar Oct 09 '23 03:10 ishuwen

I could not reproduce the problem in a very similar scenario. Could you maybe attach your sample scenario here?

m-kro avatar Oct 09 '23 10:10 m-kro

reouter.zip thanks for answering, here is it

ishuwen avatar Oct 09 '23 13:10 ishuwen

It works if you reference the route in the flow:

<flow id="f_0" type="td_0" begin="0.00" departLane="random" route="r_0" end="3600.00" vehsPerHour="900.00"/>

m-kro avatar Oct 09 '23 14:10 m-kro

it works thanks, but i want know why there is an error if i use "from to", is that bug or i set it wrong? because if i use sumo-gui and right click to close the lane it won't generate error, what's difference between sumo-gui close lane and closelane rerouter?

ishuwen avatar Oct 09 '23 16:10 ishuwen

Yes, for the moment I'd consider it a bug and tagged it accordingly.

m-kro avatar Oct 10 '23 06:10 m-kro

OK,thanks again

ishuwen avatar Oct 10 '23 06:10 ishuwen

@ishuwen I had a look again at your scenario. To me closing the edge using the GUI does not make a difference. In your special case, you can have incomplete routes (using "from"/"to" attributes) if you place the rerouter on the insertion edge. There is no general solution for your problem unless we integrate a predicted rerouter state into the route building process.

m-kro avatar Feb 07 '24 08:02 m-kro