Nothing Special   »   [go: up one dir, main page]

Skip to content

This is a co-simulator for autonomous driving that can be used to generate KITTI-compatible and semantic3D-compatible datasets.

Notifications You must be signed in to change notification settings

S-kewen/NS3-DSRC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NS3-DSRC (5.9 GHz)

This is a sub-module of our co-simulator for 5.9GHz DSRC vehicle network simulation.

Installation

Requirements

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

Quick demo

a. Install CMake, ZMQ, and libjson (if already exists can skip )

install cmake

sudo apt-get update
sudo apt-get install clang
sudo apt install cmake
sudo apt-get install libtool pkg-config build-essential autoconf automake

install libsodium

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 ..

install zmq

sudo apt-get install libzmq3-dev

install cppzmq

git clone https://github.com/zeromq/libzmq.git
cd libzmq
./autogen.sh
./configure -with-libsodium && make 
sudo make install 
sudo ldconfig
cd ../

install zmqpp

git clone https://github.com/zeromq/zmqpp.git
cd zmqpp
mkdir build
cd build 
cmake ..
make 
sudo make install

install libjson

sudo apt-get install libjsoncpp-dev 
sudo ln -s /usr/include/jsoncpp/json/ /usr/include/json

b. Build NS-3

git clone https://github.com/S-kewen/NS3-DSRC
cd NS3-DSRC
./waf clean
./waf --build-profile=debug --enable-examples --enable-tests configure
./waf

c. Run

./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.

Acknowledgment

Part of our code refers to the work WaveTest.

Contribution

welcome to contribute to this repo, please feel free to contact us with any potential contributions.

About

This is a co-simulator for autonomous driving that can be used to generate KITTI-compatible and semantic3D-compatible datasets.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published