Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] How to generate 1500 number of vehicles in SUMO with specific routes?

Hi Jakob,


I wrote a script to generate 2200 vehicles and I realised the following errors after running sumo. Seems that there are always collisions of vehicles in the map and vehicles are teleport-ed when the number of vehicles are too huge. How to generate a huge number of cars (2.2k for example) and to ensure that there are no collisions?


[cid:b363c5f7-6916-46ad-b6d3-5a0313613c0a]


Thanks and have a great day!

Best Regards,
Lawrence


________________________________
From: Jakob Erdmann <namdre.sumo@xxxxxxxxxxxxxx>
Sent: Thursday, October 19, 2017 2:55 PM
To: Lawrence Soon
Subject: Re: [sumo-user] How to generate 1500 number of vehicles in SUMO with specific routes?

randomTrips is only usefull if you know nothing about the routes. Since you already have the edges, you can specify the flow directly. If you need random spacing but an exact number you can use the first definition in my previous answer (fixed period) and process that file using the duarouter application with the option --randomize-flows. (this will distribute the exact number of vehicles randomly in the begin-end time range).

regards,
Jakob

2017-10-19 2:24 GMT+02:00 Lawrence Soon <lawrencesoon86@xxxxxxxxxxx<mailto:lawrencesoon86@xxxxxxxxxxx>>:

Jakob,


Good day. I wish to specify a specific route (eg 10 different routes) in my map so that when running randomTrip.py, the generated cars only go to thro' that 10 specific routes.  How to specify the specific route in certain format in a file as an input to the randomTrip.py?


For example, 10 specified routes that I wish to generate via randomTrip.py:

route1 = "street1leftleft2 street1btm street2btm1 street2btm2 street2right1 street4right1 street4right2 street67leftright street9right"
route2 = "street8leftright2 street8leftright1 street5top street6top street7top"
route3 = "street89leftrigth1 street56lefttight street35btmtop1 street3leftright street1leftright1 street1leftright2"
route4 = "street89leftrigth1 street56lefttight street34leftright street13topbtm street1leftright1 street1btm 478355846#0"
route5 = "street1leftleft2 street1btm street2btm1 smallstreet2mid street24btmtop2 street4right1 street4rightleft street46btmtop1 street35btmtop1 173166893#0"
route6 = "street8leftright2 street8leftright1 street5leftright street3leftright street1leftright1 street1btm street2btm1 smallstreet2mid street24btmtop1 street13topbtm 21581785#0"
route7 = "street7btm2 street46btmtop2 street46btmtop1 street34leftright street12leftright 478355846#0"
route8 = "street1leftleft2 street1leftleft1 street3leftleft1 street3leftleft2 street5leftleft street5top street6top street7top"
route9 = "-448084962 475217889 street2right1 street4right1 street4rightleft street46btmtop1 street34leftright street12leftright 478355846#0"
route10 = "street89leftrigth1 street56lefttight street34leftright street12leftright street2btm1 street2btm2 street2right1 street4right1 street4right2 street67leftright street9right"


I understand that it should be listed in the format below:

<route edges="street5leftleft juncons58 street5top street6top street9right 198990366#0 street89leftrigth3 22514882#0 164179765 street8leftright1"/>



Yet I have doubts on the way that I can specify it into a certain format as an input to random.Trip.py<http://random.Trip.py>?


Thanks and have a great day!

Best Regards,
Lawrence


________________________________
From: Víctor Caballero Codina <vcaballero@xxxxxxxxxxxx<mailto:vcaballero@xxxxxxxxxxxx>>
Sent: Thursday, October 19, 2017 2:19 AM
To: Lawrence Soon; Sumo project User discussions
Subject: Re: [sumo-user] How to generate 1500 number of vehicles in SUMO with specific routes?

Hello,

I am new to SUMO, so I can't offer you a lot of help. Are you asking for something like the scripts used in this video? https://www.youtube.com/watch?v=Mh4WnY4KY4Y . The only missing feature in this example is the departure time.
[https://www.bing.com/th?id=OVP.hAX_mKRzNOrCE0Knuiva6AEsCt&pid=Api]<https://www.youtube.com/watch?v=Mh4WnY4KY4Y>

Vehicular and Pedestrian simulated scenario using SUMO, Hofgarten, Munich<https://www.youtube.com/watch?v=Mh4WnY4KY4Y>
www.youtube.com<http://www.youtube.com>
Simulation of Urban Mobility (SUMO) is a free and open source simulator for traffic simulations. In this video, vehicular and pedestrian scenario is simulated. The ...




Cheers,

Víctor Caballero (vcaballero@xxxxxxxxxxxx<mailto:vcaballero@xxxxxxxxxxxx>)
Ph.D. Student at La Salle Barcelona - Ramon Llull University


On 18/10/2017, 16:23, "sumo-user-bounces@xxxxxxxxxxx<mailto:sumo-user-bounces@xxxxxxxxxxx> on behalf of Lawrence Soon via sumo-user" <sumo-user-bounces@xxxxxxxxxxx<mailto:sumo-user-bounces@xxxxxxxxxxx> on behalf of sumo-user@xxxxxxxxxxxxxxxxxxxxx<mailto:sumo-user@xxxxxxxxxxxxxxxxxxxxx>> wrote:

    Hello all,


    Is there any script provided in SUMO or any function in SUMO that enables me to generate 1500 number of vehicles in SUMO with specific routes with specific departure time?


    Thanks and have a great day


    ------------------------------------------------------------------------------
    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@xxxxxxxxxxxxxxxxxxxxx<mailto:sumo-user@xxxxxxxxxxxxxxxxxxxxx>
    https://lists.sourceforge.net/lists/listinfo/sumo-user
    _______________________________________________
    sumo-user mailing list
    sumo-user@xxxxxxxxxxx<mailto: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 Info Page - Eclipse<https://dev.eclipse.org/mailman/listinfo/sumo-user>
dev.eclipse.org<http://dev.eclipse.org>
Mailing list: sumo-user Sumo project User discussions About sumo-user






PNG image

------------------------------------------------------------------------------
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@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sumo-user

Back to the top