How to generate grid nxn environment?
FanFan2021 opened this issue · 2 comments
FanFan2021 commented
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?
locker2153 commented
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.
FanFan2021 commented
Thank you so much!