asrob-uc3m / rd2

RD2
0 stars 0 forks source link

Unable to launch camera #2

Closed PeterBowman closed 5 years ago

PeterBowman commented 5 years ago

From freshly recompiled CMake 3.5.2, YARP 2.3.72.1 w/ opencv_grabber and asrob-uc3m/yarp-devices:

pi@raspberrypi ~ $ yarpdev --device opencv_grabber --name /hey
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
libv4l2: error setting pixformat: Device or resource busy
HIGHGUI ERROR: libv4l unable to ioctl S_FMT
libv4l2: error setting pixformat: Device or resource busy
libv4l1: error setting pixformat: Device or resource busy
HIGHGUI ERROR: libv4l unable to ioctl VIDIOCSPICT

[ERROR]Unable to open camera for capture!
yarpdev: ***ERROR*** driver <opencv_grabber> was found but could not open
yarpdev: ***ERROR*** driver <grabber> was found but could not open
[ERROR]yarpdev: ***ERROR*** device not available.
[INFO]Suggestions:
[INFO]+ Do "yarpdev --list" to see list of supported devices.
[INFO]+ Or append "--verbose" option to get more information.
jgvictores commented 5 years ago

My first check would be a hardware error. Connect a decent webcam, and see what happens. I would not recomment RD2's which is cheap and can have a damaged cable, maybe Minoru could work if no other options (but it is also a bit special because of its internal hub).

Second checks would be to make sure v4l etc is installed.