Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Vehicle Route Conconation

Dear SUMO-Community,

my name is Sven, ive written here before, a few weeks ago. I have since continued to work on a project concerning the charging behaviour of electric buses.

Many thanks to Moritz Schweppenhäuser, i really like your work and your scenario is very helpful to me.

However, i seem to have hit a blockade within my own approach of simulating.
While SUMO provides routes, flows and some interaction via TraCI, there seems to be no supported way of having vehicles use what id call "modular routes".

For my bus-simulation, it would be ideal to have vehicles perform their service one route after another, by providing a list of pre-defined routes, to then have a vehicle perform multiple of these, one after another:

<routes>
    <vType id="bus" vClass="bus"/>
    <route id="161_A" color="" edges="A B C">
        <stop busStop="X1" duration="20.0" until="20.0" parking="true"/>
        <stop busStop="X2" duration="20.0" until="80.0" parking="true"/>
    </route>
    <route id="161_B" color="" edges="C D E">
        <stop busStop="X3" duration="20.0" until="20.0" parking="true"/>
        <stop busStop="X4" duration="20.0" until="80.0" parking="true"/>
    </route>
</routes>

<routes>
    <vType id="type1" accel="0.8" decel="4.5" sigma="0.5" length="5" maxSpeed="70"/>
    <vehicle id="0" type="type1" route="161_A 161_B" depart="0" color="1,0,0"/>
    <vehicle id="1" type="type1" route="161_B 161_A" depart="0" color="0,1,0"/>
</routes>
My current plan is to generate new routes from these partial-routes beforehand, but this requieres a lot of effort, of calculating possible combinations, and "until" values, for potentially many hundred routes.
I am therefore asking, wether there are more convinient ways to achive what im planning, or if such a feature could potentially be implemented sometime.
Best regards
Sven

Back to the top