Skip to content

A project which uses SUMO traffic simulator to model communication between self-driving cars in 5G network

Notifications You must be signed in to change notification settings

Lookingforcommit/5G_NR_V2X_simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

User Manual

This project has a Russian documentation on overleaf

1. Setting up and starting SUMO

1. Create a road network file, save the config file and road flow settings.

5G_NR_V2X_simulator

2. In the simulation configuration file (extension .sumocfg) add an instruction to save the simulation results in the FCD (flying cars data) format.

<output>
	<fcd-output value="FILENAME.xml" />;
</output>

This instruction must be inserted between the <configuration> and </configuration> tags

2. Converting SUMO data

1. Open terminal and, using the cd command, navigate to the directory with the simulation result.

2. Run the command python SUMOHOME/tools/xml/xml2csv.py FILENAME.xml.

After performing these steps, you should have a FILENAME.csv file of the SUMO FCD format in your working directory

5G_NR_V2X_simulator

3. Starting the program

1. Create a simulation configuration file of the following format:

Key1=Value

Key2=Value

dataFilepath - full path to the simulation file FILENAME.csv

csvSep - csv file separator, default option is semicolon

envScenario - simulation scenario, available options - highway. The default scenario is highway

signalFreq - frequency of the signal transmitted by the machines, positive integer

signalPower - power of the signal transmitted by the machines, positive integer

propLossRegion - the averaging regions for propagation loss chart, positive integer. The default value is 500

packagesRegion - the averaging regions for all the packages-based metrics, positive integer. The default value is 500

simCnt - number of simulation runs, positive integer. The default value is 1

receptionThreshold - minimal signal power required for the machine receiver to process a message, float

The program can correctly process simulation files of extensions .csv, .xls and .xlsx, an attempt to transfer a file of other extension will cause an error.

2. Run the program through the command line

Important: the program perceives the path to the simulation data file relative to the script position in the file system, so if your configuration file is not in the same folder as the program, the absolute path to the simulation data file must be passed as the dataFilepath parameter.

4. Analysing simulation results

The program returns a set of signal reception metrics, which show how effective the cars were at communicating with each other.

About

A project which uses SUMO traffic simulator to model communication between self-driving cars in 5G network

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages