A script is given (in the scripts folder) to install steps 1 to 5. So if you are fresh Ubuntu install just run $pre-install.sh
. To manually install follow the steps 1 to 5. If installing with the pre-install script, jump to step 6.
-
Clone this repository and
cd
to the directory. -
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
-
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 follow step 4.
[Err] [REST.cc:205] Error in REST request libcurl: (51) SSL: no alternative certificate subject name matches target host name 'api.ignitionfuel.org'
Solution: Update the following file ~/.ignition/fuel/config.yaml
as following;
change url: https://api.ignitionfuel.org
to url: https://api.ignitionrobotics.org
.