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 Jakob, Herald,

Thanks for the help.
From the pedestrianFlow can I give the departing and arrival edges like with randomTrips fringe?
Is it possible to have the same option as with vTypeDistribution, to the group of pedestrians? Or the best would be to generate as many different pedestrian route files as type I have?
And the rate between the types, I just add the total number of trips to be inserted in that period of time per type?

Best regards,
José



On Sun, 26 Aug 2018 at 10:23, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
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 <haraldschaefer@xxxxxxxxxxx>:
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



_______________________________________________
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


_______________________________________________
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

Back to the top