stereolabs / zed-ros2-wrapper

ROS 2 wrapper for the ZED SDK
https://www.stereolabs.com/docs/ros2/
Apache License 2.0
134 stars 139 forks source link

No GPU Detected #178

Closed sandipsharan closed 7 months ago

sandipsharan commented 9 months ago

Preliminary Checks

Description

Hello,

I'm trying to use the Dockerfile given in the zed-ros2-wrapper repository and build image to run the zed2.launch.py but it pops and error mentioning that no NVIDIA GPU is detected(Given in the 1st image). Tried changing the base image of the file and the arguments L4T_MAJOR and L4T_MINOR from 35.1.0 to 32.7.1 as my L4T version is 32.6.1 but it again threw an error. The error log is given below in the attached 2nd image

My L4T Version: # R32 (release), REVISION: 6.1

Steps to Reproduce

  1. Git clone the zed-ros2-wrapper repo
  2. Go into the docker directory in the package and build the image after mentioning the above changes given in the description using the command docker build -t -f Dockerfile.l4t35_1-humble-release . ...

Expected Result

Successfully running the launch file

Actual Result

Error mentioning No GPU detected Screenshot 2023-08-10 221543 Screenshot 2023-08-11 192353

ZED Camera model

ZED2

Environment

OS: Ubuntu 18.04
CPU: ARM
GPU: Jetson nano's integrated GPU

Anything else?

No response

Patrick-AA commented 8 months ago

Hello, to use docker you have to make all the image version match your OS version.

Then when running the image you have to use a command similar to:

docker run --runtime nvidia -it --privileged --ipc=host --pid=host -e DISPLAY \
  -v /dev/shm:/dev/shm -v /tmp/.X11-unix/:/tmp/.X11-unix \
  -v ${HOME}/zed_docker_ai/:/usr/local/zed/resources/ \
  <image_tag>
github-actions[bot] commented 7 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days