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 https://omnetpp.org/doc/omnetpp/tictoc-tutorial/. 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:
build
directory (which was created while building)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.SUMO
to open its GUI while simulating, add this line to your omnetpp.ini
: *.traci.launcher.sumo = "sumo-gui"
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
.
build
directory of Arteryccmake .
CMAKE_BUILD_TYPE
(usually this entry is at the top first position) press [enter] and type: Debug
. Than again, press [enter].make
in the build
directory.make debug_example
run