How to run different scenarios in Omnet++ (Veins)?

I have created a traffic scenario in SUMO and running it using Omnet++. I have Inet, Veins and VANET to work with it. I made vehicles as a nodes and run the scenario using Veins, and established the communication between the nodes using VANET. But I have 3 different scenarios in SUMO and I have to run them in Veins so how can I run multiple scenarios? Is it possible using single Veins_Inet?

Upvotes: 1

Views: 387

Answers (1)

thardes2
thardes2

Reputation: 1186

You create three different configs in your omnetpp.ini, each of them loading a different SUMO configuration:

[Config FirstConfig]
*.manager.launchConfig = xmldoc("firstSquare.launchd.xml")

[Config SecondConfig]
*.manager.launchConfig = xmldoc("secondSquare.launchd.xml")

[Config ThirdConfig]
*.manager.launchConfig = xmldoc("thirdSquare.launchd.xml")

Then you start them with

./run -u Cmdenv -c FirstConfig -r 0
./run -u Cmdenv -c SecondConfig -r 0
./run -u Cmdenv -c ThirdConfig -r 0

Upvotes: 1

Related Questions