how to get start to build a veins application

后端 未结 1 1360
名媛妹妹
名媛妹妹 2021-01-06 23:31

I am new to veins and would like to use it. I have taken my time to learn omnetpp and SUMO. now I can use both successfully. I also downloaded and installed veins and the ex

相关标签:
1条回答
  • 2021-01-07 00:02

    First of all, you need to create the corresponding SuMO scenario (your road) which you can use in the example simulation instead of the provided one.

    Next, you have to setup the simulation scenario in OMNeT++. Since the example simulation already contains a RSU, you do not have to add it anymore (except for position it to a location of choice). Vehicle nodes are automatically created on runtime by the TraCI module in Veins.

    Now you already have your scenario where vehicles are moving on a road and are able to communicate with the RSU. However, the old application provided by the example simulation will be executed on all nodes which you probably want to change. Hence, you need to write your own application which can be executed on those nodes.

    To write your own application, you can use MyVeinsApp as a starting point and simply add the desired functionality. It will already provide sending of some messages (see BaseWaveApplLayer). Also have a look at the demo application used in the example simulation.

    After you have written your own application, modify omnetpp.ini to use this application on all your nodes.

    0 讨论(0)
提交回复
热议问题