Skip to content

Installing ns 3

Bruce Allen edited this page Jun 4, 2019 · 1 revision

Install ns-3

We use the ns-3 Network Simulator to simulate Wifi communication between network namespaces. Your robots will run within these network namespaces.

Download ns-3.29 into ~/repos using Mercurial (hg):

sudo apt-get install mercurial
mkdir ~/repos
cd ~/repos
hg clone http://code.nsnam.org/ns-3-allinone
cd ns-3-allinone
./download.py -n ns-3.29

Fix ns-3.29 sudo bug: In file ~/repos/ns-3-allinone/ns-3.29/wscript change line program.create_task("SuidBuild") to program.create_task("SuidBuild_task").

Using the ns-3 waf build tool configure and build ns-3 from source:

cd ~/repos/ns-3-allinone/ns-3.29
./waf configure --enable-sudo
./waf build