This is a sub-module of our co-simulator for NR C-V2X 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.36
- 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-NR-C-V2X
cd NS3-NR-C-V2X
rm -R build
rm -R cmake-cache
rm .lock-ns3_linux_build
./ns3 configure
./ns3 run NR_C_V2X -- --nodes={your_nodes} --zmqPort={your_zmq_port}
- 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 Millicar.
welcome to contribute to this repo, please feel free to contact us with any potential contributions.