Git Product home page Git Product logo

sumotounreal's Introduction

Sumo2Unreal

For Sumo2Unreal version that works for UE4.22 please check out to Unreal4.22 branch

Introduction

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.


Interesting Results

1. Small spider network -

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 - spider01_netedit

Output on the Unreal Editor after running our importer - spider01_unreal

2. Large Spider Network

NETGENERATE Command

netgenerate --spider

Output - spider02_unreal

3. Basic Grid Network

NETGENERATE Command

netgenerate --grid

Output - grid01_unreal

4. A Random Network

NETGENERATE Command

netgenerate --rand

Output - rand_unreal

5. A town map

XML file obtained from a SUMO tutorial in which an OSM file was imported into SUMO. This was imported into UE4 using this importer.

Output - real_town

6. Townsimpy

XML files generated using town-sim-py which were then imported into UE4 using this importer.

Outputs - townsimpy01 townsimpy02


Getting Started

  1. 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.

  2. Track our progress here.


References

For selecting the correct order of vertices for creating triangles, we are using the earcut polygon triangulation library

sumotounreal's People

Contributors

ishaan95 avatar jessieaniguid avatar jimwhiteheaducsc avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.