Traffic Simulation with SUMO, NETEDIT, and TraCI

Sdílet
Vložit
  • čas přidán 24. 07. 2024
  • This video assumes you have a working SUMO installation but assumes no other prior experience with the SUMO toolkit. It covers how to build a simple network in Netedit, how to define vehicles and routes and configure a simple SUMO simulation, and then finally how to make dynamic changes to a running SUMO simulation via TraCI.
    Note: I think this video may have been uploaded with only the left channel audio. To fix this, set your audio settings on your machine to Mono. Easy enough to do on Windows, Mac, Linux.
    CODE ====== github.com/avcourt/traci-demo
    SUMO ===== sumo.dlr.de/
    NETEDIT === sumo.dlr.de/wiki/NETEDIT
    TraCI ====== sumo.dlr.de/wiki/TraCI
    Have any questions? Join my Discord server.
    Discord ===== / discord
    Follow me on Twitter ===== / avcourt
  • Věda a technologie

Komentáře • 66

  • @avcourt3154
    @avcourt3154  Před 2 lety +1

    I think this video may have been uploaded with only the left channel audio. To fix this, set your audio settings on your machine to Mono. Easy enough to do on Windows, Mac, Linux. Don't think I can fix this on my end, at least without some more investigation into YT studio.

  • @kavinduzoysa3906
    @kavinduzoysa3906 Před 4 lety +17

    The best Sumo tutorial I found, I was really helpful for me. Thank you.

    • @avcourt3154
      @avcourt3154  Před 4 lety +1

      You are most welcome my dude! Glad you found it helpful!

  • @dongyaochen3670
    @dongyaochen3670 Před 5 lety +2

    Very informative tutorial! Thanks!

  • @moechtargafoer6875
    @moechtargafoer6875 Před 8 měsíci

    This helped me so much. Thanks a lot!

  • @MrAmericanLifestyle
    @MrAmericanLifestyle Před 4 lety +2

    Thanks for this video!!

  • @mohammedoulhadj1804
    @mohammedoulhadj1804 Před 5 lety +1

    thank you bro. this video is very helpful

  • @kshamaramesh7753
    @kshamaramesh7753 Před 4 lety +5

    One of the best SUMO tutorials! I have a doubt how to define the routes in when it is large network that is where I have downloaded from open street map. Please provide with your feedback

    • @nisargareddyns3470
      @nisargareddyns3470 Před 4 lety

      Kshama Ramesh hello Ramesh ... did you get to figure how to work on this please ... even I have same doubt kindly reply

  • @sabrinebelmekki2126
    @sabrinebelmekki2126 Před 2 lety

    thank you thank you thank you , you saved my life !!!

  • @vamshikrishna7156
    @vamshikrishna7156 Před 2 lety

    Hi Your video was very helpful to me..
    Can you simulate a two vehicles collision and other vehicles receive message about collision occurred and change lane / re-route ..
    Thank You

  • @nicoleabrielledanao7704
    @nicoleabrielledanao7704 Před 3 měsíci

    how did you run the control loop?
    what shortcut was it?

  • @ramielborhamy6208
    @ramielborhamy6208 Před 4 lety +1

    Thanks for this video. I want your help. I have a long route for a vehicle. Can i set a travel time for each edge in this route?

    • @avcourt3154
      @avcourt3154  Před 4 lety

      Hey there! Join the Discord server. discord.gg/aw65dCf Myself or someone else would be happy to help!

  • @sabrinebelmekki2126
    @sabrinebelmekki2126 Před 2 lety

    can you make a video showing how we can add RSU on the road ?

  • @fathimathrufaisa6939
    @fathimathrufaisa6939 Před 3 lety

    Can we simulate communication between vehicle and cloud computing i n sumo

  • @jroldan2554
    @jroldan2554 Před 5 lety

    how do you create the diferent files like .rou.xml or .sumocfg when you save the network in .net.xml? Thanks!

    • @avcourt3154
      @avcourt3154  Před 5 lety

      Hey BIGROLDAN. These are all separate files. Netedit creates the .net.xml file and routes are specified manually in a .rou.xml. The SUMO simulator itself expects a .sumo.cfg file which is where the user specifies the names of network, additionals, and route files. See my Github repo ( github.com/avcourt/traci-demo) of this tutorial for a typical SUMO/TraCI project structure. Also, I have set up a Discord server dedicated to SUMO/TraCI. Feel free to join and ask questions! discord.gg/aw65dCf

  • @sandragomez1442
    @sandragomez1442 Před 3 lety

    Thank you, really useful!

  • @soumenghosh3734
    @soumenghosh3734 Před 4 lety +1

    Hi Avcourt, Your tutorial helped me start my project but I am kinda stuck in the middle of nowhere. I am working with an intersection. I added some vehicles and routes using TraCI but I want to full control their speeds and not the car-following model. I want to set desired speeds, before the intersection and at the intersection (slower here), based on some conditions. Can you please guide me?
    Thanks.

  • @mrtsknn
    @mrtsknn Před 2 měsíci

    Can you show EV implementation Charge Stations an Electronic Vehicles etc. on SUMO

  • @shimadamadam4095
    @shimadamadam4095 Před 4 lety

    Hi, I want to open my network (I created manually via netconvert) in pycharm. How can I do that? and how to open my my_config.sumocfg file? that you do at the beginning of the video?

    • @avcourt3154
      @avcourt3154  Před 4 lety +1

      You can open networks for editing in NETEDIT. sumocfg files are what you load into SUMO itself. Feel free to join my Discord server to continue this discussion. discord.gg/aw65dCf

  • @techvb2440
    @techvb2440 Před 3 lety

    when I save net edit file it says permission denied, help me what to do??

  • @alishashahid378
    @alishashahid378 Před 4 lety

    Hi, I am currently working on intelligent traffic signal optimization by using PSO. could you please help me regarding, how could we compute PSO code in SUMO for simulations???

    • @avcourt3154
      @avcourt3154  Před 4 lety

      i'd love to continue this discussion. Please feel free to join the discord server I have set up for SUMO. discord.gg/aw65dCf

  • @MohitKarangiya
    @MohitKarangiya Před 5 lety

    Keep up the good work. I am currently trying to implement a neural network model with genetic learning to control individual vehicles. What are your thoughts on implementing such a system? Thanks!

    • @avcourt3154
      @avcourt3154  Před 5 lety

      certainly possible. Implement the GA algo in a TraCI program and once paths have been calculated for vehicles, have them rerouted via the TraCI change vehicle state API calls.

    • @rahelehzarei9704
      @rahelehzarei9704 Před 5 lety +1

      Hi Mohit, what you want to do seems very interesting, can you please let me know more about it? did you run your idea/

  • @LidoList
    @LidoList Před 4 lety

    I cannot change the lane, I write 3 but it's getting back to 1 again if I select next edge?

    • @avcourt3154
      @avcourt3154  Před 4 lety

      If you'd like some help troubleshooting, join my Discord server. Myself or one of the active members would be happy to lend a hand! discord.gg/aw65dCf

  • @wessamhallak8560
    @wessamhallak8560 Před 5 lety +1

    I am starting a project and you have literally made my life easier! thanks alot!
    but what exactly is this black window where you set the env. variables? and do I need it every time I create a project? Cheers!

    • @avcourt3154
      @avcourt3154  Před 5 lety

      Hi WeesH, In this example I am running SUMO in a Linux environment.If you are developing on Windows with SUMO 0.1.23 or later there is a file called ''start-command-line.bat' in the /bin folder of the installation that sets up your environment and allows you to execute programs from the cmd window. I have a Discord server set up. Feel free to join and ask questions! discord.gg/sfQsNW

    • @wessamhallak8560
      @wessamhallak8560 Před 5 lety

      @@avcourt3154got it, thanks!

    • @aleluia3533
      @aleluia3533 Před 3 lety

      @@avcourt3154 Hello, great video.
      i could not find out the file called ''start-command-line.bat''. Could u give the path to try more one time, thanks for evrething...

  • @shimadamadam4095
    @shimadamadam4095 Před 3 lety

    Hi. thanks for your great video. when I wrote this code:
    "if step == 100:
    traci.vehicle.changeTarget("1", "e9")
    traci.vehicle.changeTarget("3", "e9")"
    just veh1 goes to e9. where's the problem?
    could you please help me?
    moreover, when I use induction loop that according to your code, is on lane e4_0, by using this code: "traci.vehicle.changeLane(veh, 2, 25)" the vehicle goes to lane 3 instead of 2. is it right?
    thank you very much

  • @mohammedluqman8757
    @mohammedluqman8757 Před 2 lety

    The audio is available only on the left speaker

  • @diallitoz5763
    @diallitoz5763 Před 5 lety

    Hello, thank you for this video. It's very clearly and helpful. I have an error when I try to launch the simulation with TRACI. here is the error: AttributeError: module 'traci' has no attribute 'start'. Any idea? Thanks...

    • @avcourt3154
      @avcourt3154  Před 5 lety

      I have set up a discord server to help troubleshoot with anyone who encounters issues
      discord.gg/aw65dCf

    • @diallitoz5763
      @diallitoz5763 Před 5 lety

      I found the error. It's crazy, when I name the TRACI file tracy.py, I got this error. But if I change the name to testTraci.py for example, it's works!!!

    • @avcourt3154
      @avcourt3154  Před 5 lety

      @@diallitoz5763 Glad you solved it! If your first file was named 'traci.py', that sounds like a name collision to me.

  • @tarekhaddad6245
    @tarekhaddad6245 Před 5 lety

    how to Adaptive traffic light control? with sumo

    • @JohnNeves
      @JohnNeves Před 5 lety

      if you found out e-mail me johncir at outlook dot com we can discuss further studies

  • @hesloth
    @hesloth Před 3 lety +1

    Hey, seems like a really great video, however it would be really helpful in future videos to increase the font size on your screen. All your terminal commands and XML are unreadable on my 13.5" screen

    • @avcourt3154
      @avcourt3154  Před 2 lety

      First video. I have since learned to increase the font. Especially when capping a 2k screen. Appreciate the feedback.

  • @aydnaydin9109
    @aydnaydin9109 Před rokem

    ıt really helps thank you s much
    no more video ?

  • @osmankhalid2005
    @osmankhalid2005 Před 3 lety

    At 4:55, what does the values in "shape" parameter represent to.

    • @avcourt3154
      @avcourt3154  Před 3 lety

      Hi there. See sumo.dlr.de/docs/Definition_of_Vehicles,_Vehicle_Types,_and_Routes.html#visualization

    • @osmankhalid2005
      @osmankhalid2005 Před 3 lety

      ​@@avcourt3154 Thanks for the response. Actually I am interested to understand the "shape" parameter, as it is used in below syntax:

      Here shape property is assigned a list. What that list represent to? I tried to delete a few points from the list but didn't see any change in the lane gui.

    • @avcourt3154
      @avcourt3154  Před 3 lety +1

      @@osmankhalid2005 Oh okay yes you're referring to the lane geometry that was auto-generated for the network file by netedit.
      from sumo.dlr.de/docs/Networks/PlainXML.html :
      "List of positions; each position is encoded in x,y or x,y,z in meters (do not separate the numbers with a space!)."
      from sumo.dlr.de/docs/Networks/SUMO_Road_Networks.html:
      "The geometry of the lane, given by a polyline that describes the lane's center line; must not be empty or have less than two positions"

  • @yusharthsingh1185
    @yusharthsingh1185 Před 3 lety +1

    My left ear got a lot of information.

    • @avcourt3154
      @avcourt3154  Před 2 lety +1

      I think this video may have been uploaded with only the left channel audio. To fix this, set your audio settings on your machine to Mono. Easy enough to do on Windows, Mac, Linux. Don't think I can fix this on my end, at least without some more investigation into YT studio. Apologies. This was my first video upload ever.

  • @gunjangosain8517
    @gunjangosain8517 Před 2 lety +1

    TracI based python programming starts at 15:23