We still haven't got around to implementing <personflow> but it's on our
to-do list.
A script like the on described by Harald is part of the sumo distribution
(tools/pedestrianFlow.py)

2018-08-26 11:12 GMT+02:00 Harald Schaefer <[email protected]>:

> Hi José,
>
> my solution to this problem was:
>
> 1. Create an own python class TrafficDef to record the parameters (name,
> color, typ, source, dest, vehicles/persons per time unit, optional edges)
> per flow
> 2. Create using these parameters a route xml-file, which either contains a
> flow or as many pedestrians as required
> 3, Run sumo with this on the fly created file.
>
> In my application it looks like this
>
>     # first, generate the route file for this simulation
>     flows = utils.TrafficDef()
>     flows.add("westen-osten-",  green, "passenger", ausWesten,
> nachOsten,   20)
>     flows.add("westen-sueden-", red,   "passenger", ausWesten,
> nachSueden,  20)
>     flows.add("osten-westen-",  blue,  "passenger", ausOsten,  nachWesten,
> 150)
>     flows.add("osten-sueden-",  red,   "passenger", ausOsten,
> nachSueden,  40)
>     flows.add("sueden-osten-",  green, "passenger", ausSueden,
> nachOsten,   20)
>     flows.add("sueden-westen-", blue,  "passenger", ausSueden,
> nachWesten,  20)
>     flows.add("ped-north-south-", blue,  "person", pedFromNorth,
> pedToSouth,  20, "gneE12 gneE16 gneE17")
>     flows.add("ped-south-north-", blue,  "person", pedFromSouth,
> pedToNorth,  20, "-gneE17 -gneE16 -gneE12")
>     flows.generate_routefile('passenger-sorted.flow.xml',
> float(args.factor))
>
> Might be the SUMO-Gurus have another idea?
>
> Greatings, Harald
>
>
> Am 24.08.2018 um 18:49 schrieb Jose Monreal Bailey:
>
> Hey everyone,
>
> Is it possible to create flows of pedestrians as you do with vehicles?
> If not, what could be the best option to control the amount of type of
> pedestrians you may define?
>
> Best regards,
> José
>
>
> _______________________________________________
> sumo-user mailing [email protected]
> To change your delivery options, retrieve your password, or unsubscribe from 
> this list, visithttps://dev.eclipse.org/mailman/listinfo/sumo-user
>
>
>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/sumo-user
>
>
_______________________________________________
sumo-user mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

Reply via email to