Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Pedestrian flows is possible?

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 list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Back to the top