RoboNetSim is a framework to integrate robot and network simulators. This repository contains files for docker to compile and run the integrated simulators in the preferred environment of Ubuntu 14.04. The Dockerfile is based on EduardoFF's repository with minor modifications.
Note: Your PC needs to have a Nvidia graphic card.
chmod u+x build.sh
./build.sh robonetsim
docker pull tidota/robonetsim
curl -s -L https://nvidia.github.io/nvidia-container-runtime/gpgkey | sudo apt-key add -
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-container-runtime/$distribution/nvidia-container-runtime.list | sudo tee /etc/apt/sources.list.d/nvidia-container-runtime.list
sudo apt-get update
sudo apt-get install nvidia-container-runtime
systemctl restart docker
XSOCK=/tmp/.X11-unix
XAUTH=/tmp/.docker.xauth
sudo xauth nlist :0 | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -
You need to run the network simulator first, and then run the robot simulator.
Run the docker container.
chmod u+x start.sh
./start.sh
Now the terminal shows the environment in the container.
Then, run the NS-3 network simulator.
cd /RoboNetSim/ns-3-dev-git
./start.sh
Open another terminal and access the docker container.
You can check the container's name by the command docker container list
.
docker exec -it <container's name> bash
Then, run the ARGoS2 robot simulator.
cd /RoboNetSim/argos2-RoboNetSim/example
./start.sh