Giter VIP home page Giter VIP logo

Comments (12)

kidtronnix avatar kidtronnix commented on May 31, 2024 3

The correct line is... FROM nvidia/cudagl:9.0-devel

from redtail.

vijay609 avatar vijay609 commented on May 31, 2024

from redtail.

damien022 avatar damien022 commented on May 31, 2024

nvidia 390.30 installed on both host and container. When trying to launch gazebo I get libGL errors

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

I can run gazebo and other opengl gui applications when basing a container of nvidia/opengl:runtime

from redtail.

Alexey-Kamenev avatar Alexey-Kamenev commented on May 31, 2024

We are using nvidia-docker (v1) which works fine. My guess would be nvidia-docker2 is doing something different which causes this problem to appear. If you can, try running gazebo using nvidia-docker. Be aware that containers created by v1 and v2 are not compatible.

from redtail.

damien022 avatar damien022 commented on May 31, 2024

yes, nvidia-docker2 does not load the opengl drivers by default. starting the image from nvidia/opengl:runtime allows the running of gazebo / rviz with a vanilla kinetic / 16.04 installation. I will try and see if i can build a redtail image over the coming few days with nvidia-docker2.
I think nvidia-docker1 is being deprecated, so would be worth making it all work with v2...

from redtail.

kidtronnix avatar kidtronnix commented on May 31, 2024

+1

from redtail.

kidtronnix avatar kidtronnix commented on May 31, 2024

I found a fix for this. The Dokcerfile.kinetic should simply build from cudagl:devel.

If you do this make sure to do docker rm the previously created redtail container, so the run_redtail_docker.sh will not launch the old one.

from redtail.

daylanc avatar daylanc commented on May 31, 2024

@kidtronnix What do you mean by "the Dockerfile.kinetic should simply build from cudagl:devel"? Do I have to run the container differently from the wiki: run_redtail_docker.sh [container_name] [host_data_dir] [container_data_dir] ?
Also, what do you mean by "The correct line is... From nvidia/cudagl:9.0-devel"?

from redtail.

daylanc avatar daylanc commented on May 31, 2024

@Alexey-Kamenev For the simulation, do I need to install Cuda 9.0?
Currently I have the following installed:

  • NVIDIA Driver (version: 396.54)
  • NVIDIA Docker (version: 2.0.3)
    I also have the TensorRT 4.0.1.6 for Ubuntu 1604 and CUDA 9.0 tar package downloaded onto my computer. Do I need to install/download anything else to run the simulations properly?

from redtail.

damien022 avatar damien022 commented on May 31, 2024

@daylanc You need to replace the first line in redtail/tools/simulation/docker/Dockerfile.kinetic from
FROM nvidia/cuda:9.0-devel-ubuntu16.04
with
FROM nvidia/cudagl:9.0-devel
Then run the script tools/simulation/docker/build_redtail_image.sh as per the docs
cudagl adds the opengl libraries to the image, which means you can run gazebo in the container

from redtail.

Alexey-Kamenev avatar Alexey-Kamenev commented on May 31, 2024

CUDA is required in case you want to run full simulation which includes running TrailNet via caffe_ros package. TrailNet uses TensorRT, cuDNN and CUDA.
You can, however, run just the controller node, px4_controller, along with Gazebo without any CUDA dependency as mentioned in the wiki (that section of the wiki describes manual build of the container which is recommended only if default redtail Docker image does not suit your needs)

from redtail.

daylanc avatar daylanc commented on May 31, 2024

screenshot from 2018-10-04 16-53-34
When attempting to build the docker image via sudo ./build_redtail_image.sh /path/to/tensorrt/tar/file> I run into the error above. I updated pip to 18.0, but it's still stating that I'm using pip 8.1.1
Here are some sanity checks I ran:
$ sudo python --version
Python 2.7.12

$ sudo pip --version
pip 18.0 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)

I don't know why it's still saying I'm using pip 8.1.1..

from redtail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.