This is a sub-module of our co-simulator for 5.9GHz DSRC vehicle network simulation.
All the codes are tested in the following environment:
- Ubuntu 20.04 (you can use WSL Ubuntu 20.04 in Windows 10)
- CMake 3.16.3
- NS-3 3.32
- ZMQ 4.3.4
sudo apt-get update
sudo apt-get install clang
sudo apt install cmake
sudo apt-get install libtool pkg-config build-essential autoconf automake
git clone https://github.com/jedisct1/libsodium
cd libsodium
git checkout 1.0.10
./autogen.sh -f -s
./configure && make check
sudo make install
sudo ldconfig
cd ..
sudo apt-get install libzmq3-dev
git clone https://github.com/zeromq/libzmq.git
cd libzmq
./autogen.sh
./configure -with-libsodium && make
sudo make install
sudo ldconfig
cd ../
git clone https://github.com/zeromq/zmqpp.git
cd zmqpp
mkdir build
cd build
cmake ..
make
sudo make install
sudo apt-get install libjsoncpp-dev
sudo ln -s /usr/include/jsoncpp/json/ /usr/include/json
git clone https://github.com/S-kewen/NS3-DSRC
cd NS3-DSRC
./waf clean
./waf --build-profile=debug --enable-examples --enable-tests configure
./waf
./waf --run "DSRC_AP -nodes={your_nodes} -zmqPort={your_zmq_port}" # AP
- nodes: number of networked devices in the CARLA, such LiDAR-Vehicle and edge server.
- zmqPort: default is 5557.
Part of our code refers to the work WaveTest.
welcome to contribute to this repo, please feel free to contact us with any potential contributions.