omnet++ Simulation of VANETs using OMNeT++ and Artery Running an Example


As Artery is quite complex, it is recommended to start by understanding OMNeT++. A good point to start is the TicToc tutorial. It can be found at This tutorial provides an overview on the basic functionality of OMNeT++. This includes, among others, the NED language and the definition of Networks.

If you already came in touch with OMNeT++ you can try to start the example shipped with Artery. To do so, follow these steps:

  1. Navigate to Artery's build directory (which was created while building)
  2. Type make run_example. This command checks for code changes (like make usually does) and then launches OMNeT++ using the omnetpp.ini in the scenarios/artery folder.
  3. If you want SUMO to open its GUI while simulating, add this line to your omnetpp.ini: *.traci.launcher.sumo = "sumo-gui"

Running an example in debug mode

If you want to investigate the code while your simulation is running, you have to build Artery in debug mode. To do so it's recommended to use ccmake.

  1. Navigate to your build directory of Artery
  2. Type ccmake .
  3. Move to entry CMAKE_BUILD_TYPE (usually this entry is at the top first position) press [enter] and type: Debug. Than again, press [enter].
  4. Press [c] to configure.
  5. Press [q] to quit.
  6. Again, type make in the build directory.
  7. To run the example in debug mode type make debug_example
  8. After the GDB debugger is ready, type run
  9. Feel free to press [ctrl + c] to step into the debugger and set your breakpoints