sss4s is a command-line tool, which is able to generate road networks with command-line options. This tool uses certain tools from the road-traffic simulator SUMO and works currently with version 1.8.0 of SUMO.
Thus, it is important to install the right version of SUMO in order that the tool sss4s works.
sss4s requires Python 3.8 or greater
-
Please make sure, that the SUMO_HOME variable is set.
-
Execute the file sss4s.py in the directory networks with below listed command-line options
-
The net.xml-, add.xml- and the rou.xml-files can be found in the subdirectory road_networks of the directory networks.
-
Command-line options examples for executing the file sss4s.py
./sss4s.py intersection -m 2 -tl 0 1
Explanation: Generates 2 intersections with traffic lights at the junction with ID 0 and at the junction with ID 1./sss4s.py freeway -b -len 1000
Explanation: Generates a bidirectional freeway with a road length of 1000 meters -
In order to execute the simulation with the road network in SUMO, use the file with the extension .sumocfg