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

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

asked 2018-03-01 01:10:49 -0600

zahra.kh gravatar image

updated 2018-03-01 01:50:55 -0600

jayess gravatar image

hi, I'm trying to use usb_cam-test.launch in usb_cam package to read my web camera, but it keeps returning error:

Cannot identify '/dev/video0': 2, No such file or directory

Update:

when i run lsusb devices are:

Bus 002 Device 004: ID 045e:0772 Microsoft Corp. LifeCam Studio 
Bus 002 Device 003: ID 1c4f:0048 SiGma Micro 
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub 
Bus 003 Device 003: ID 045e:0772 Microsoft Corp. LifeCam Studio 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 
Bus 001 Device 004: ID 058f:a014 Alcor Micro Corp. Asus Integrated Webcam 
Bus 001 Device 003: ID 0cf3:3005 Atheros Communications, Inc. AR3011 Bluetooth 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

how can run my camera? i have two LifeCam Studio cameras.


Update 2:

when i run

ls -ltrh /dev/video*

this give:

crw-r--r-- 1 root root 81, 0 Mar 1 01:10 /dev/video0
edit retag flag offensive close merge delete

Comments

Please don't create a new question to add information to a previous one (#q284010). You can always edit your question instead.

jayess gravatar image jayess  ( 2018-03-01 01:22:26 -0600 )edit

@zahra.kh: I noticed that many of your questions have answers, but none are accepted as correct. Could you please take a few minutes and mark the ones that solved your problems as correct? It really helps out others that find your question so they may know a solution.

jayess gravatar image jayess  ( 2018-03-01 01:34:06 -0600 )edit

Please don't use an answer to provide more information about your question. This isn't a forum, please update your question instead. I moved the contents of your answer to your question.

jayess gravatar image jayess  ( 2018-03-01 01:42:48 -0600 )edit

The main part of my answer was to run

ls -ltrh /dev/video*

What does this give? Please update your question with a copy and paste of the output from the terminal using the preformatted text (101010) button.

jayess gravatar image jayess  ( 2018-03-01 01:44:28 -0600 )edit

when i run ls -ltrh /dev/video*, this give: crw-r--r-- 1 root root 81, 0 Mar 1 01:10 /dev/video0

zahra.kh gravatar image zahra.kh  ( 2018-03-01 01:47:11 -0600 )edit

Again, please update your question when giving more information. Comments aren't the appropriate place for that.

jayess gravatar image jayess  ( 2018-03-01 01:51:36 -0600 )edit

Is the camera turned on?

jayess gravatar image jayess  ( 2018-03-01 01:51:47 -0600 )edit

i connected two cameras to laptop usbs!

zahra.kh gravatar image zahra.kh  ( 2018-03-01 01:54:18 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-03-01 01:31:06 -0600

jayess gravatar image

updated 2018-03-01 02:08:48 -0600

From Ask Ubuntu:

To list all video devices picked up by the kernel

ls -ltrh /dev/video*

To list all devices attached to USB use lsusb ; to list all devices attached to PCI use lspci

Once you identify which device is your webcam, start the usb_cam_node node with

roslaunch usb_cam usb_cam-test.launch video_device:=<your-device>

where <your-device> is your webcam.


Edit:

Try adding yourself to the user group

sudo usermod -a -G dialout $USER

Now, I found this by some googling.

edit flag offensive delete link more

Comments

i run sudo usermod -a -G dialout $USER , but my problem isn't solved!

zahra.kh gravatar image zahra.kh  ( 2018-03-01 02:24:05 -0600 )edit

Again, please update your question with new information. Comments are not the appropriate place for updates.

jayess gravatar image jayess  ( 2018-03-01 02:27:26 -0600 )edit

Also,

but my problem isn't solved

isn't helpful. What is the result? (Please update your question with that information.)

jayess gravatar image jayess  ( 2018-03-01 02:36:40 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-03-01 01:10:49 -0600

Seen: 10,232 times

Last updated: Mar 01 '18