우분투에서 kinect for windows를 연결해보니 주렁주렁 연결된다.
$ lsusb -t /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M |__ Port 2: Dev 4, If 0, Class=Hub, Driver=hub/2p, 480M |__ Port 1: Dev 5, If 0, Class=Vendor Specific Class, Driver=, 480M |__ Port 2: Dev 6, If 0, Class=Vendor Specific Class, Driver=kinect, 480M |__ Port 4: Dev 3, If 1, Class=Video, Driver=uvcvideo, 480M |__ Port 4: Dev 3, If 0, Class=Video, Driver=uvcvideo, 480M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M |
dmesg는 아래와 같이 오디오와 카메라만 뜬다.
$ dmesg [ 66.521305] usb 2-1.2: new high-speed USB device number 4 using ehci-pci [ 66.629876] usb 2-1.2: New USB device found, idVendor=045e, idProduct=02c2, bcdDevice= 0.01 [ 66.629884] usb 2-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 66.630696] hub 2-1.2:1.0: USB hub found [ 66.630913] hub 2-1.2:1.0: 2 ports detected [ 67.752503] usb 2-1.2.1: new high-speed USB device number 5 using ehci-pci [ 67.863100] usb 2-1.2.1: New USB device found, idVendor=045e, idProduct=02be, bcdDevice= 1.00 [ 67.863109] usb 2-1.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 67.863113] usb 2-1.2.1: Product: Microsoft Kinect Audio, © 2011 Microsoft Corporation. All rights reserved. [ 67.863117] usb 2-1.2.1: Manufacturer: Microsoft [ 67.863120] usb 2-1.2.1: SerialNumber: A22597V00343314A [ 70.833403] usb 2-1.2.2: new high-speed USB device number 6 using ehci-pci [ 70.948864] usb 2-1.2.2: New USB device found, idVendor=045e, idProduct=02bf, bcdDevice= 2.05 [ 70.948868] usb 2-1.2.2: New USB device strings: Mfr=2, Product=1, SerialNumber=3 [ 70.948870] usb 2-1.2.2: Product: Microsoft Kinect Camera [ 70.948871] usb 2-1.2.2: Manufacturer: Microsoft [ 70.948873] usb 2-1.2.2: SerialNumber: 0000000000000000 [ 70.969452] gspca_main: v2.14.0 registered [ 70.971380] gspca_main: kinect-2.14.0 probing 045e:02bf [ 70.971637] usbcore: registered new interface driver kinect |
freenect 라는 키워드를 본적이 있으니 한번 설치하고 프로그램 실행!
$ apt-cache search freenect freenect - library for accessing Kinect device -- metapackage libfreenect-bin - library for accessing Kinect device -- utilities and samples libfreenect-demos - library for accessing Kinect device -- dummy package libfreenect-dev - library for accessing Kinect device -- development files libfreenect-doc - library for accessing Kinect device -- documentation libfreenect0.5 - library for accessing Kinect device python-freenect - library for accessing Kinect device -- Python bindings $ sudo apt-get install freenect 패키지 목록을 읽는 중입니다... 완료 의존성 트리를 만드는 중입니다 상태 정보를 읽는 중입니다... 완료 다음 패키지가 자동으로 설치되었지만 더 이상 필요하지 않습니다: linux-hwe-5.4-headers-5.4.0-105 Use 'sudo apt autoremove' to remove it. 다음의 추가 패키지가 설치될 것입니다 : libfreenect-bin libfreenect-dev libfreenect-doc libfreenect0.5 다음 새 패키지를 설치할 것입니다: freenect libfreenect-bin libfreenect-dev libfreenect-doc libfreenect0.5 0개 업그레이드, 5개 새로 설치, 0개 제거 및 4개 업그레이드 안 함. 249 k바이트 아카이브를 받아야 합니다. 이 작업 후 1,386 k바이트의 디스크 공간을 더 사용하게 됩니다. 계속 하시겠습니까? [Y/n] |
feenect-glpcview가 윈도우용 키넥트 sdk의 기본 어플과 그나마 유사하게 나온다.
권한이 부족한지 장치를 열 수 없다고 배째니 root 권한으로 실행해야 한다.
$ free free freenect-cpp_pcview freenect-glview freenect-regtest freenect-wavrecord freenect-camtest freenect-cppview freenect-hiview freenect-regview freetype-config freenect-chunkview freenect-glpclview freenect-micview freenect-tiltdemo $ freenect-camtest Could not open camera: -3 Failed to open camera subdevice or it is not disabled.Failed to open motor subddevice or it is not disabled.Failed to open audio subdevice or it is not disabled. $ sudo freenect-glview Kinect camera test Number of devices found: 1 Could not open audio: -4 GL thread [Stream 70] Negotiated packet size 1920 write_register: 0x0105 <= 0x00 write_register: 0x0006 <= 0x00 write_register: 0x0012 <= 0x03 write_register: 0x0013 <= 0x01 write_register: 0x0014 <= 0x1e write_register: 0x0006 <= 0x02 write_register: 0x0017 <= 0x00 [Stream 80] Negotiated packet size 1920 write_register: 0x000c <= 0x00 write_register: 0x000d <= 0x01 write_register: 0x000e <= 0x1e write_register: 0x0005 <= 0x01 write_register: 0x0047 <= 0x00 'w' - tilt up, 's' - level, 'x' - tilt down, '0'-'6' - select LED mode, '+' & '-' - change IR intensity 'f' - change video format, 'm' - mirror video, 'o' - rotate video with accelerometer 'e' - auto exposure, 'b' - white balance, 'r' - raw color, 'n' - near mode (K4W only) raw acceleration: 0 0 0 mks acceleration: 0.000000 0.000000 0.000000 $ sudo freenect-glpclview Could not open audio: -1 [Stream 70] Expected 1748 data bytes, but got 948 |
freenect로 접속을 하면 새로운 장치로 인식되고 종료하면 장치가 제거되는 것 처럼 보이네
$ dmesg [ 214.203283] usb 2-1.2: new high-speed USB device number 7 using ehci-pci [ 214.323880] usb 2-1.2: New USB device found, idVendor=045e, idProduct=02c2, bcdDevice= 0.01 [ 214.323887] usb 2-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 214.324627] hub 2-1.2:1.0: USB hub found [ 214.324732] hub 2-1.2:1.0: 2 ports detected [ 215.447259] usb 2-1.2.1: new high-speed USB device number 8 using ehci-pci [ 215.558332] usb 2-1.2.1: New USB device found, idVendor=045e, idProduct=02be, bcdDevice= 1.00 [ 215.558340] usb 2-1.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 215.558344] usb 2-1.2.1: Product: Microsoft Kinect Audio, © 2011 Microsoft Corporation. All rights reserved. [ 215.558348] usb 2-1.2.1: Manufacturer: Microsoft [ 215.558351] usb 2-1.2.1: SerialNumber: A22597V00343314A [ 218.375074] usb 2-1.2.2: new high-speed USB device number 9 using ehci-pci [ 218.495073] usb 2-1.2.2: New USB device found, idVendor=045e, idProduct=02bf, bcdDevice= 2.05 [ 218.495079] usb 2-1.2.2: New USB device strings: Mfr=2, Product=1, SerialNumber=3 [ 218.495082] usb 2-1.2.2: Product: Microsoft Kinect Camera [ 218.495084] usb 2-1.2.2: Manufacturer: Microsoft [ 218.495087] usb 2-1.2.2: SerialNumber: 0000000000000000 [ 218.495827] gspca_main: kinect-2.14.0 probing 045e:02bf [ 243.488046] usb 2-1.2: USB disconnect, device number 7 [ 243.488054] usb 2-1.2.1: USB disconnect, device number 8 [ 243.488658] usb 2-1.2.2: USB disconnect, device number 9 |
'프로그램 사용 > kinect' 카테고리의 다른 글
kinect + rpi + ros = slam (0) | 2022.04.27 |
---|---|
azure kinect (0) | 2022.04.27 |
kinect 360 (0) | 2022.04.27 |
kinect for window 도착 그리고 윈도우10에서 시도 (0) | 2022.04.26 |
freenect (0) | 2022.04.23 |