-
Install docker using instructions here. This installation instructions were tested on Ubuntu 18.04 with Docker version 19.03.3, build a872fc2f86.
-
To run docker as a non-root user, follow the post installation instruction here.
-
Install nvidia toolkit:Reference
$ sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit
$ sudo systemctl restart docker
- Install nvidia-docker2: Reference](https://github.com/nvidia/nvidia-docker/wiki/Installation-(version-2.0))
$ sudo apt-get install nvidia-docker2
$ sudo pkill -SIGHUP dockerd
- Once the docker is installed there might be problem with using the sound card for the gazebo. To fix the possible errors (Refer error 1), add the sound devices to the group.
$sudo usermod -aG audio $USER
-
Clone this repository and
cd
to the directory and run$./install.sh
-
The above instruction will automatically login you to the container.
-
Once exited a new instance can be started by typing
$rosdocker
in the terminal. And to enter an already existing docker container run$newdockterm
.
-
AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse" ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
This error occurs when trying to open gazebo. The issue is because of not able to access sound card. It can be fixed by $sudo usermod -aG audio $USER
in the terminal before running the script. Reference
-
libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast X Error of failed request: GLXBadContext
The error occurs due to issues with not able to use nvidia drivers. The solution is to install nvidia-toolkit and nvidia-docker2 by following the next two instructions.
$sudo apt-get install nvidia-docker2
$sudo pkill -SIGHUP dockerd