LucasAlegre/sumo-rl

How to generate grid nxn environment?

FanFan2021 opened this issue · 2 comments

You provide grid env for 4x4, 3x3, and 2x2 in the "nets" folder. However, I need to execute the code on larger grids such as 6x6, 8x8, or even larger. How can I create grid of size "nxn"?

To the best of my knowledge, the standard process involves creating both "net.xml" and "rou.xml" files separately and then combining them to generate the ".sumocfg" configuration file. I've learned that one can use "netgenerate" to create the "net.xml" file, I'd like to know if there's a way to generate the "rou.xml" file automatically?

u can find what you want here.https://sumo.dlr.de/docs/Tools/Trip.html#randomtripspy
it is a script to generate random traffic flow.

Thank you so much!