Skip to content

Ubuntu 18.04 + ROS Melodic + Conda in a Docker container with Nvidia acceleration

Notifications You must be signed in to change notification settings

mjm522/ROS_melodic_nvidia_conda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steps

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.

  1. Clone this repository and cd to the directory.

  2. Install docker using instructions here. This installation instructions were tested on Ubuntu 18.04 with Docker version 19.03.3, build a872fc2f86.

  3. To run docker as a non-root user, follow the post installation instruction here.

  4. Install nvidia toolkit:Reference

 $ sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit
 $ sudo systemctl restart docker
  1. 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
  1. 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

  1. run $./install.sh

  2. The above instruction will automatically login you to the container.

  3. Once exited a new instance can be started by typing $rosdocker in the terminal. And to enter an already existing docker container run $newdockterm.

Possible Errors

  1. 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

  1. 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.

  1. [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.

About

Ubuntu 18.04 + ROS Melodic + Conda in a Docker container with Nvidia acceleration

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published