Traffic Network Builder

Unity map editing and OpenDRIVE export for autonomous-driving simulation

Unity road editing and OpenDRIVE export workflow

How a map moves from Unity to CARLA

The editor provides drag-and-drop road construction and stores exported maps in OpenDRIVE 1.4 format. This standard describes the road network independently from the Unity scene so another simulator can interpret it.

The repository includes Python scripts and sample maps for CARLA 0.9.13. Its documentation also records current compatibility limits: road markings, parking lanes, traffic signs, lights, and spawn points are not always reproduced correctly by CARLA's OpenDRIVE importer.

Technical focus

Unity map editorOpenDRIVE 1.4 exportCARLA 0.9.13Python import scriptsReusable road piecesSimulator compatibility testing

Implementation details

  • The Unity editor assembles road networks from reusable drag-and-drop pieces
  • The exporter serializes the layout as an OpenDRIVE .xodr map
  • Python utilities load exported maps into CARLA and expose importer compatibility limits

Map editor source

The repository contains the Unity editor, OpenDRIVE exporter, CARLA import scripts, sample maps, setup guide, and developer documentation.

Open on GitHub