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

cannot access '/dev/video*' [closed]

asked 2022-02-23 19:31:40 -0500

updated 2022-02-26 19:09:40 -0500

Hi there,

I am not sure if this is the right place to ask, but I would really appreciate your help.

I am having an issue with accessing to my web cam from my Lenovo Laptop (running Ubuntu 20.04).

yuxiang@yuxiang:/etc/modprobe.d$ ls /dev/video*
ls: cannot access '/dev/video*': No such file or directory


yuxiang@yuxiang:/etc/modprobe.d$ fswebcam -r 640x480 --no-banner image3.jpg
--- Opening /dev/video0...

yuxiang@yuxiang:~/catkin_ws$ roslaunch my_camera elp.launch
uvc_find_device: No such device (-4)
[ERROR] [1645657833.102061279, 1575.456000000]: Unable to open camera.
^C[libuvc_camera-2] killing on exit
[nodelet_manager-1] killing on exit
[ INFO] [1645657841.057052676, 1583.374000000]: Unloading nodelet /libuvc_camera from manager /nodelet_manager
shutting down processing monitor...



yuxiang@yuxiang:~/catkin_ws$ hwinfo --usb
02: USB 00.0: 0000 Unclassified device                          
  [Created at usb.122]
  Unique ID: Zj8l.Y_aYp4agq10
  Parent ID: pBe4.xYNhIwdOaa6
  SysFS ID: /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4:1.0
  SysFS BusID: 2-4:1.0
  Hardware Class: unknown
  Model: "Intel(R) RealSense(TM) Depth Camera 435"
  Hotplug: USB
  Vendor: usb 0x8086 "Intel Corp."
  Device: usb 0x0b07 "Intel(R) RealSense(TM) Depth Camera 435"
  Revision: "50.b1"
  Serial ID: "933623025074"
  Module Alias: "usb:v8086p0B07d50B1dcEFdsc02dp01ic0Eisc01ip00in00"
  Driver Info #0:
    Driver Status: uvcvideo is not active
    Driver Activation Cmd: "modprobe uvcvideo"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #14 (Hub)

03: USB 00.0: 0000 Unclassified device
  [Created at usb.122]
  Unique ID: POWV.ZGXmp31lfyE
  Parent ID: k4bc.2DFUsyrieMD
  SysFS ID: /devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.0
  SysFS BusID: 1-9:1.0
  Hardware Class: unknown
  Model: "Synaptics Unclassified device"
  Hotplug: USB
  Vendor: usb 0x06cb "Synaptics, Inc."
  Device: usb 0x00bd 
  Serial ID: "46be90c14e26"
  Speed: 12 Mbps
  Module Alias: "usb:v06CBp00BDd0000dcFFdsc10dpFFicFFisc00ip00in00"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #10 (Hub)

04: USB 00.1: 0000 Unclassified device
  [Created at usb.122]
  Unique ID: QR8P.z1tM_FB91k0
  Parent ID: k4bc.2DFUsyrieMD
  SysFS ID: /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.1
  SysFS BusID: 1-8:1.1
  Hardware Class: unknown
  Model: "Acer Integrated Camera"
  Hotplug: USB
  Vendor: usb 0x5986 "Acer, Inc"
  Device: usb 0x115f "Integrated Camera"
  Revision: "56.14"
  Serial ID: ""
  Speed: 480 Mbps
  Module Alias: "usb:v5986p115Fd5614dcEFdsc02dp01ic0Eisc02ip00in01"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #10 (Hub)


 yuxiang@yuxiang:~$ /usr/sbin/lsmod | sort

ac97_bus               16384  1 snd_soc_core
acpi_pad              184320  0
acpi_thermal_rel       16384  1 int3400_thermal
aesni_intel           372736  4
arp_tables             24576  0
aufs                  262144  0
autofs4                45056  2
binfmt_misc            24576  1
bluetooth             552960  11 btrtl,btintel,btbcm,bnep,btusb
bnep                   24576  2
bpfilter               32768  0
bridge                176128  1 br_netfilter
br_netfilter           28672  0
btbcm                  16384  1 btusb
btintel                24576  1 btusb
btrtl                  24576  1 btusb
btusb                  57344  0
ccm                    20480  6
cfg80211              708608  3 iwlmvm,iwlwifi,mac80211
coretemp               20480  0
crc32_pclmul           16384  0
crct10dif_pclmul       16384  1
cryptd                 24576  2 crypto_simd,ghash_clmulni_intel
crypto_simd            16384  1 aesni_intel
drm                   491520  16 drm_kms_helper,i915
drm_kms_helper        184320  1 i915
e1000e                258048  0
ecc                    28672  1 ecdh_generic
ecdh_generic ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by noname
close date 2022-10-18 19:59:23.864772

Comments

maybe this tutorial can help http://roboticsweekends.blogspot.com/...

bribri123 gravatar image bribri123  ( 2022-02-24 12:59:35 -0500 )edit

You do not seem to have loaded the video4linux2 drivers or the uvcvideo drivers into the linux kernel. Please edit your description to include the output of this terminal command:

/usr/sbin/lsmod | sort

Mike Scheutzow gravatar image Mike Scheutzow  ( 2022-02-26 09:10:38 -0500 )edit

Thanks for the help folks. I have added the output after /usr/sbin/lsmod | sort

noname gravatar image noname  ( 2022-02-26 19:12:02 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-02-28 07:02:40 -0500

Mike Scheutzow gravatar image

You have not loaded the video4linux2 drivers or the uvcvideo drivers into the linux kernel. There are many resources on the web to help you configure a usb webcam on linux. I suggest you get it working with an application like cheese before you try to use the camera in ROS.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2022-02-23 19:31:40 -0500

Seen: 1,301 times

Last updated: Feb 28 '22