Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Pedestrian flow Probability

Hello,
the avg pedestrian walking duration should be included since version 0.31. If you are certain that this version of sumo is used, the only way your output makes sense if you had persons but they weren't walking (only riding in vehicles).

The timeloss values for pedestrians (in statistics and tripinfos) as well as duration in tripinfos are only available in the latest development version.

There is no support for waiting time but timeLoss (waitingTime + time lost due to slow-downs) is generally quite similar.

regards,
Jakob

2017-11-22 20:07 GMT+01:00 Sara el hamdani <saraelhamdani@xxxxxxxxx>:
I apologize for asking the question it was my fault to give the same node id twice. the problem is solved now.

However, I have an other question. I'm using sumo 0.31 and I get this information in the logfile:

Performance: 
 Duration: 86945ms
 Real time factor: 1.92766
 UPS: 369.935016
Vehicles: 
 Inserted: 167
 Running: 27
 Waiting: 0
Persons: 
 Inserted: 25
 Running: 20
Statistics (avg):
 RouteLength: 194.90
 Duration: 18.50
 WaitingTime: 0.89
 TimeLoss: 4.37
 DepartDelay: 0.02

Duration and waiting time and timeloss averages are related to the vehicle and they are very useful to me. But I couldn't get the person duration avg. that I used to have in the old version of sumo. The person trip duration disappeared also from the tripinfo output. How can I get is in this version?

I need also the person waiting time due to stopping for red light or other reason. Can I get it using sumo?

2017-11-22 18:41 GMT+00:00 Sara el hamdani <saraelhamdani@xxxxxxxxx>:
Thank you jakob for the reply!
I wanted to asck about tlLogic too.
I have two signalized and connected intersections. I saved my tlLogic program in an additional file and I'm calling in as an input in the sumocfg file.
I want that my tlLogic program : <tlLogic id="0" programID="my_program" offset="0" type="static"> control the two intersection, when it is controlling just one node and I can't understand why the second do not respond to the program. I do not have any other tll files and the net file is recreated every time I exectute the python script.
Can I give the programID to the intersection in the node file? How can I make the tow intersections respond to the same program.

2017-11-22 15:51 GMT+00:00 Jakob Erdmann <namdre.sumo@xxxxxxxxxxxxxx>:
Yes, the depart distribution from your code should be equivalent to the randomTrips behavior with the given options.

2017-11-21 10:47 GMT+01:00 Sara el hamdani via sumo-user <sumo-user@lists.sourceforge.net>:
Hello sumo users,

I want the pedestrians to trip in certain walking ereas, and I'm using this
code to write the trip file.

 with open("pedestrians.trip.xml", "w") as routes: print('<routes
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">',
file=routes)
        lastVeh = 0
        perNr = 0
        p2a10 = 1. / 35
        p2a11 = 1. / 35
        p2a12 = 1. / 35
        p2a13 = 1. / 35
        for i in range(N):
            if random.uniform(0, 1) < p2a10:
                print('  <person id="ped%i" depart="%i">' % (perNr, i),
file=routes)
                print('    <walk from= "1b" to= "1e" departPos="0"
arrivalPos="50"/>', file=routes)
                print('  </person>', file=routes)
                perNr += 1
                lastVeh = i
            if random.uniform(0, 1) < p2a11:
                print('  <person id="ped%i" depart="%i">' % (perNr, i),
file=routes)
                print('    <walk from= "1e" to= "1b" departPos="50"
arrivalPos="0"/>', file=routes)
                print('  </person>', file=routes)
                perNr += 1
                lastVeh = i
            if random.uniform(0, 1) < p2a12:
                print('  <person id="ped%i" depart="%i">' % (perNr, i),
file=routes)
                print('    <walk from= "4o" to= "3i" departPos="50"
arrivalPos="0"/>', file=routes)
                print('  </person>', file=routes)
                perNr += 1
                lastVeh = i
            if random.uniform(0, 1) < p2a13:
                print('  <person id="ped%i" depart="%i">' % (perNr, i),
file=routes)
                print('    <walk from= "3i" to= "4o" departPos="0"
arrivalPos="50"/>', file=routes)
                print('  </person>', file=routes)
                perNr += 1
                lastVeh = i

        print("</routes>", file=routes)

I need to make sure that giving the rate 1. / 35 to each walking erea (4
times) is equivalent to giving the period    '--period', '35' (like in the
following code) to the whole walking ereas. Will I get the same pedestrian
flow frequency?

# randomTrips.main(randomTrips.get_options([
    #         '--net-file', net,
    #         '--output-trip-file', 'pedestrians.trip.xml',
    #         '--seed', '42',  # make runs reproducible
    #         '--pedestrians',
    #         '--prefix', 'ped',
    #         # prevent trips that start and end on the same edge
    #         '--min-distance', '1',
    #         '--trip-attributes', 'departLane="1a10_0" departPos="random"
arrivalPos="random"',
    #         '--binomial', '4',
    #         '--period', '35']))

--
*Best regards*


*Sara EL HAMDANI*
*Phd student -Umi University.*
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxxxxxxxxxxxt
https://lists.sourceforge.net/lists/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




--
Best regards

Sara EL HAMDANI
Phd student -Umi University.



--
Best regards

Sara EL HAMDANI
Phd student -Umi University.


Back to the top