Our goal is to make a simulation of a tracking network that uses sensors and a wireless backhaul. We want to experiment with providing additional sensors and keeping track of something called 'Quality of Tracking' to indicate when to use which sensor.
To run OmNet++ and Castalia, this code was run using WSL on Windows running an Ubuntu flavor (22)
- apt-add-repository universe
- apt update
- apt install software-properties-common
- apt install wget build-essential gcc g++ bison flex perl python-is-python3 python3 libqt5opengl5-dev tcl-dev tk-dev libxml2-dev zlib1g-dev default-jre doxygen graphviz libwebkitgtk-6.0-4 libgtk2.0-0 python2
- apt install openmpi-bin libopenmpi-dev
- git clone --recurse-submodules (this repos url)
- cd wireless-sensor-network-simulator
- cd omnetpp
- apt install libopenscenegraph-dev libgeos-dev
- sed -i 's/^#OSGEARTH_LIBS=/OSGEARTH_LIBS=" -losgEarth -losgEarthUtil -lgeos_c "/' configure.user.dist
- sed -i 's/^WITH_OSG=yes/WITH_OSG=no/' configure.user.dist
- sed -i 's/^WITH_OSGEARTH=yes/WITH_OSGEARTH=no/' configure.user.dist
- source setenv
- ./configure
- make -j
- [ -f "/omnetpp/setenv" ] && source "/omnetpp/setenv Or just manually source when you want to get the environment going
- cd ..
- git submodule update
- cd Castalia
- ./makemake
- make -j
omnetpp to run the ide, you can check out the aloha sample in the omnetpp directory. You could even run one of the Castalia examples in the command line and generate data!