forked from 9thSenseRobotics/cameraControl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstructions_for_controlling_logitech_pan_and_tilt_camera
More file actions
121 lines (74 loc) · 2.79 KB
/
Copy pathinstructions_for_controlling_logitech_pan_and_tilt_camera
File metadata and controls
121 lines (74 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
to install logitech orbit cam stuff
http://www.quickcamteam.net/documentation/how-to/how-to-install-the-webcam-tools
sudo aptitude install subversion cmake build-essential libxml2-dev pkg-config gengetopt
svn co http://svn.quickcamteam.net/svn/qct/webcam-tools/trunk
follow the instructions. On my machine, the path turned out to be:
/usr/src/linux-source-2.6.32/drivers/media/video/uvc
usage of uvcdynctrl:
http://forums.quickcamteam.net/showthread.php?tid=212
next make a directory,
cameraControl
and download the code from github
you will have to set the ROS_PACKAGE_PATH to find it
do the ususal rosmake stuff
run it when you have the skype capture program running and it will drive the camera
Right now it drives the camera attached to video0
we can change that, but I am too sleepy to do it right now!
results:
no camera plugged in:
dbarry@pad:~/logitech_camera_control/webcam-tools/build$ uvcdynctrl -l
Listing available devices:
video1 WebcamStudio Video Device
orbitcam plugged in:
dbarry@pad:~/logitech_camera_control/webcam-tools/build$ uvcdynctrl -l
[libwebcam] Unknown V4L2 private control ID encountered: 0x0A046D03 (V4L2_CID_PRIVATE_BASE + 33844483)
[libwebcam] Unknown V4L2 private control ID encountered: 0x0A046D04 (V4L2_CID_PRIVATE_BASE + 33844484)
Listing available devices:
video1 WebcamStudio Video Device
video0 UVC Camera (046d:0994)
http://forums.quickcamteam.net/showthread.php?tid=291
$ mv ./ubuntu/media/usbvideo/uvcvideo.ko ./ubuntu/media/usbvideo/__uvc__video.k__o
$ rmmod uvcvideo
$ depmod
$ modprobe uvcvideo
$ modinfo uvcvideo
filename: /lib/modules/2.6.24-16-generic/usb/media/uvcvideo.ko
forums:
http://forums.quickcamteam.net/forumdisplay.php?fid=7%22%3EQuickCam%20Team%20discussion%20forums
OPTIONAL:
get luvcview:
svn co http://svn.quickcamteam.net/svn/luvcview
To compile luvcviewer, note that the README file has instructions, but it is somewhat out of date, so do this:
sudo apt-get install libsdl1.2-dev libsdl1.2debian (was already present in my build)
find the following include files and copy then to the luvcviewer directory:
uvcvideo.h
dynctrl-logitech.h
on my system:
usr/src/linux-source-2.6.32/drivers/media/video/uvc/uvcvideo.h
/home/dbarry/logitech_camera_control/webcam-tools/common/include/dynctrl-logitech.h
in uvcvideo.h, around line 59, replace
struct uvc_xu_control {
__u8 unit;
__u8 selector;
__u16 size;
__u8 __user *data;
};
with:
struct uvc_xu_control {
__u8 unit;
__u8 selector;
__u16 size;
// __u8 __user *data; <<<<<< remove __user:
__u8 *data;
};
then run
make
then
sudo make install
which returned this:
install -s -m 755 -g root -o root luvcview /usr/local/bin
rm -f /usr/local/bin/uvcview
run it:
./luvcview
nice!
Now you have a nice interface for controlling all the camera functions