ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Running usb_cam across VNC and getting Cannot identify '/dev/video0'

asked 2019-06-03 13:16:55 -0500

Kolohe113 gravatar image

updated 2019-06-03 13:18:28 -0500

Hello guys, I was running a docker container that contains the normal ros packages and usb_cam. I visualized the ubuntu interface through a VNC (localhost:5900) and tried roslaunch usb_cam usb_cam-test.launch in the VNC viewer. However, I got:

[ERROR] [1559585420.922861365]: Cannot identify '/dev/video0': 2, No such file or directory

When I tried ls -ltrh /dev/video*, I got ls: cannot access '/dev/video*': No such file or directory. Everything works when I tried the aboves on my local computer, are there any additional steps I need to make so I can use my webcam in a docker image?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-06-03 14:20:20 -0500

gvdhoorn gravatar image

Everything works when I tried the aboves on my local computer, are there any additional steps I need to make so I can use my webcam in a docker image?

yes: mount the device file into your Docker container (using -v or --volume), similar to how you would do that with other files and directories.

This is not really a ROS issue btw: I would suggest you try to search for how to make Linux device files available to/in Docker containers.

edit flag offensive delete link more

Comments

Solved by following instruction described here: https://medium.com/@zwinny/docker-usi...

Kolohe113 gravatar image Kolohe113  ( 2019-06-03 14:20:45 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2019-06-03 13:16:55 -0500

Seen: 888 times

Last updated: Jun 03 '19