For Sumo2Unreal version that works for UE4.22 please check out to Unreal4.22 branch
This project is an importer for SUMO's .net.xml road network files into the Unreal Engine 4 environment. This is important to bridge the capabilities of SUMO as a road network generator/convertor and traffic simulator to the Unreal Engine which is the preferred choice to create simulation software for testing self-driving cars.
The input taken by this importer is a SUMO's .net.xml road network file format and the output is a network of roads on the Unreal Editor. The .net.xml file is created using NETGENERATE. The files created using NETGENERATE can be viewed using NETEDIT. We have provided some files which we generated in the S2U_Screenshots folder.
NETGENERATE Command -
netgenerate --spider --spider.arm-number=4 --spider.circle-number=3 --spider.space-radius=100 --output-file=MySUMOFile.net.xml
(The output by default goes into the 'net.net.xml' file, but you can add a -o parameter to specify file name)
Output as seen on NETEDIT Application -
Output on the Unreal Editor after running our importer -
NETGENERATE Command
netgenerate --spider
NETGENERATE Command
netgenerate --grid
NETGENERATE Command
netgenerate --rand
XML file obtained from a SUMO tutorial in which an OSM file was imported into SUMO. This was imported into UE4 using this importer.
XML files generated using town-sim-py which were then imported into UE4 using this importer.
-
Please have a look at the wiki pages for requirements, instructions on how to run the code and resources to learn if you want to contribute.
-
Track our progress here.
For selecting the correct order of vertices for creating triangles, we are using the earcut polygon triangulation library