Coder Social home page Coder Social logo

s-kewen / ns3-dsrc Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 24.73 MB

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

Python 63.88% Makefile 0.11% QMake 0.01% C++ 35.26% Shell 0.17% C 0.44% HTML 0.01% JavaScript 0.01% CSS 0.01% Gnuplot 0.01% MATLAB 0.06% Click 0.03% Perl 0.01% Batchfile 0.01% SWIG 0.01%
carla dsrc ns3

ns3-dsrc's Introduction

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.

ns3-dsrc's People

Contributors

s-kewen avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.