The Interface between
UC-win/Road and SUMO
1. Development Background

3. Basic Development in UC-win/Road Software

When we use the UC-win/Road to do simulations, we can control the driving car and can notcontrol the traffic flow. And the traffic flow in UC-win/Road is a little simple, which can notcompare with the complex real-world environment. The focus of UC-win/Road is on realistic
scenario modeling. Although the UC-win/Road develop the interface between UC-win/Road andVISSIM, the VISSIM is not open access. So, the range of road networks that can be built is limitedin VISSIM and less customized for traffic flow and simulation.
SUMO(Simulation of Urban Mobility) is free and open access software, which can generate various
traffic flow. But when we use SUMO to perform traffic flow simulations, we can only control the
traffic flow not the driving car. And SUMO can not restore the real traffic environment. In this way,
only theoretical traffic flow simulation can be carried out, not the actual driving scene.
We can combine SUMO and UC-win/Road, in which way we can implement the driving car andtraffic flow combination simulation.
Driving Vehicle InfoNow DesignSUMO

As a joint simulation with SUMO is required, it is necessary to create
the same road network data as in the SUMO simulation. The creationof road network data in UC-win/Road is similar to that in SUMO. There
are two ways to create a road network. The first method is tomanually create and edit the road network using the built-in editor inUC-win/Road. The second method is to use OSM data to generate roadnetwork data in UC-win/Road.In the secondary development of UCwin/Road, we need to use Forum8's UC-win/Road SDK, and thedevelopment language used is Delphi language. In the secondary
development of software, it is necessary to design good interactive
interfaces and functional programs.

4. UC-win/Road Jointly Developed with SUMO

Driving Vehicle Info

UC-win/Road SDK
Traffic Flow Data

Real Never Give Up-TeamUC-win/Road
Traffic Flow Data

Auto generate roadfrom UC-win/RoadUse reinforce learn
to control cars

Auto generate roadfrom SUMO

Auto generate
traffic flow

Traffic lightsynchronous

Traffic lightsynchronous

Future Design

After completing the development of the SUMO part and the UC-win/Road part, they need to becombined for interactive development. The joint development is mainly divided into three parts.
The first part is to simulate the reception of driving vehicle data from UC-win/Road in SUMO. The
second part is to receive traffic flow data from SUMO in UC-win/Road. The third part is that SUMO
receives the driving simulation data and transmits it to UC-win/Road, and UC-win/Road receives
the traffic flow data and sends the driving simulation data.
SUMO Part
Generate Basic Data

Generate Basic Data

Build Road Network

Build Road Network

Generate Traffic Flow

Config the driving parameters

Config the environment

Config the environment

Config the environment of SUMO

Config UC-win/Road SDK

Config the TraCI package

Generate the corresponding bpl file

Generate the UDP port

Generate the corresponding UDP interface

Process driving car data

Receive the driving car data

Generate driving simulation data

Use car id to find the car

Start simulation

2. Basic Development in SUMO
Before we secondarily develop the SUMO, we should set the environment variables in windows, towhich we should add the SUMO/bin path.
After completing the basic traffic network design and traffic flow generation, it is necessary tosimulate the traffic flow. Since the corresponding programming languages and design details in
SUMO and UC-win/Road are different, it is necessary to simulate the traffic flow in SUMO and UCwin/Road.

UC-win/Road Part

Generate Basic
Data

Generate driving simulation data
Driving car

Move the driving car in SUMO

Driving andSimulation

Receive the driving car data

Generate Traffic flow data

Traffic Flow

Update the traffic flow step

Data

Divide vehicle types into three categories:
new, moved and deleted
Convert the vehicle’s azimuth angle
Send traffic flow data at this time

Generate Simulation Result
Generate ResultData

Generate simulation result data

Process simulation results

Send driving simulation data

Model traffic flow data

Receive traffic flow data

Parse the traffic flow data

Receive traffic flow data

Generate new vehicles in data

Model traffic flow data

Move the vehicles in data
Delete the vehicles