最終更新:2015-09-30 (水) 02:42:41 (3491d)
Leap Motion
Top / Leap Motion
https://www.leapmotion.com/setup
開発者向け
https://developer.leapmotion.com/
http://support.leapmotion.com/entries/25007288-My-Leap-Motion-Controller-doesn-t-work-
SDK
Unity
USBViewの出力
[Port1] : USB Composite Device Device Power State: PowerDeviceD0 ---===>Device Information<===--- English product name: "Leap Motion Controller" ConnectionStatus: Current Config Value: 0x01 -> Device Bus Speed: High Device Address: 0x07 Open Pipes: 2 ===>Endpoint Descriptor<=== bLength: 0x07 bDescriptorType: 0x05 bEndpointAddress: 0x82 -> Direction: IN - EndpointID: 2 bmAttributes: 0x03 -> Interrupt Transfer Type wMaxPacketSize: 0x0040 = 1 transactions per microframe, 0x40 max bytes bInterval: 0x08 ===>Endpoint Descriptor<=== bLength: 0x07 bDescriptorType: 0x05 bEndpointAddress: 0x83 -> Direction: IN - EndpointID: 3 bmAttributes: 0x02 -> Bulk Transfer Type wMaxPacketSize: 0x0200 = 0x200 max bytes bInterval: 0x01 ===>Device Descriptor<=== bLength: 0x12 bDescriptorType: 0x01 bcdUSB: 0x0200 bDeviceClass: 0xEF -> This is a Multi-interface Function Code Device bDeviceSubClass: 0x02 -> This is the Common Class Sub Class bDeviceProtocol: 0x01 -> This is the Interface Association Descriptor protocol bMaxPacketSize0: 0x40 = (64) Bytes idVendor: 0xF182 = Vendor ID not listed with USB.org as of 02-15-2012 idProduct: 0x0003 bcdDevice: 0x0000 iManufacturer: 0x01 English (United States) "Leap Motion" iProduct: 0x02 English (United States) "Leap Motion Controller" iSerialNumber: 0x00 bNumConfigurations: 0x01 ===>Configuration Descriptor<=== bLength: 0x09 bDescriptorType: 0x02 wTotalLength: 0x0163 -> Validated bNumInterfaces: 0x02 bConfigurationValue: 0x01 iConfiguration: 0x00 bmAttributes: 0x80 -> Bus Powered MaxPower: 0xFA = 500 mA ===>IAD Descriptor<=== bLength: 0x08 bDescriptorType: 0x0B bFirstInterface: 0x00 bInterfaceCount: 0x02 bFunctionClass: 0x0E -> Video Interface Class bFunctionSubClass: 0x03 -> Video Interface Collection bFunctionProtocol: 0x00 -> PC_PROTOCOL_UNDEFINED protocol iFunction: 0x00 ===>Interface Descriptor<=== bLength: 0x09 bDescriptorType: 0x04 bInterfaceNumber: 0x00 bAlternateSetting: 0x00 bNumEndpoints: 0x01 bInterfaceClass: 0x0E -> Video Interface Class bInterfaceSubClass: 0x01 -> Video Control Interface SubClass bInterfaceProtocol: 0x00 iInterface: 0x00 ===>Class-Specific Video Control Interface Header Descriptor<=== bLength: 0x0D bDescriptorType: 0x24 bDescriptorSubtype: 0x01 bcdVDC: 0x0100 wTotalLength: 0x0050 -> Validated dwClockFreq: 0x000003E8 = (1000) Hz bInCollection: 0x01 baInterfaceNr[1]: 0x01 USB Video Class device: spec version 1.0 ===>Video Control Input Terminal Descriptor<=== bLength: 0x12 bDescriptorType: 0x24 bDescriptorSubtype: 0x02 bTerminalID: 0x02 wTerminalType: 0x0201 = (ITT_CAMERA) bAssocTerminal: 0x00 iTerminal: 0x00 ===>Camera Input Terminal Data wObjectiveFocalLengthMin: 0x0000 wObjectiveFocalLengthMax: 0x0000 wOcularFocalLength: 0x0000 bControlSize: 0x03 bmControls : 0x28 0x02 0x00 D00 = 0 no - Scanning Mode D01 = 0 no - Auto-Exposure Mode D02 = 0 no - Auto-Exposure Priority D03 = 1 yes - Exposure Time (Absolute) D04 = 0 no - Exposure Time (Relative) D05 = 1 yes - Focus (Absolute) D06 = 0 no - Focus (Relative) D07 = 0 no - Iris (Absolute) D08 = 0 no - Iris (Relative) D09 = 1 yes - Zoom (Absolute) D10 = 0 no - Zoom (Relative) D11 = 0 no - PanTilt (Absolute) D12 = 0 no - PanTilt (Relative) D13 = 0 no - Roll (Absolute) D14 = 0 no - Roll (Relative) D15 = 0 no - Reserved D16 = 0 no - Reserved D17 = 0 no - Focus, Auto D18 = 0 no - Privacy D19 = 0 no - Focus, Simple D20 = 0 no - Window D21 = 0 no - Region of Interest D22 = 0 no - Reserved D23 = 0 no - Reserved ===>Video Control Processing Unit Descriptor<=== bLength: 0x0C bDescriptorType: 0x24 bDescriptorSubtype: 0x05 bUnitID: 0x05 bSourceID: 0x02 wMaxMultiplier: 0x0000 bControlSize: 0x03 bmControls : 0x7B 0x02 0x00 D00 = 1 yes - Brightness D01 = 1 yes - Contrast D02 = 0 no - Hue D03 = 1 yes - Saturation D04 = 1 yes - Sharpness D05 = 1 yes - Gamma D06 = 1 yes - White Balance Temperature D07 = 0 no - White Balance Component D08 = 0 no - Backlight Compensation D09 = 1 yes - Gain D10 = 0 no - Power Line Frequency D11 = 0 no - Hue, Auto D12 = 0 no - White Balance Temperature, Auto D13 = 0 no - White Balance Component, Auto D14 = 0 no - Digital Multiplier D15 = 0 no - Digital Multiplier Limit D16 = 0 no - Analog Video Standard D17 = 0 no - Analog Video Lock Status D18 = 0 no - Contrast, Auto D19 = 0 no - Reserved D20 = 0 no - Reserved D21 = 0 no - Reserved D22 = 0 no - Reserved D23 = 0 no - Reserved iProcessing : 0x00 ===>Video Control Extension Unit Descriptor<=== bLength: 0x1C bDescriptorType: 0x24 bDescriptorSubtype: 0x06 bUnitID: 0x06 guidExtensionCode: {FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF} bNumControls: 0x00 bNrInPins: 0x01 ===>List of Connected Units and Terminal ID's baSourceID[1]: 0x05 bControlSize: 0x03 bmControls : 0x00 0x00 0x00 D00 = 0 no - Vendor-Specific (Optional) D01 = 0 no - Vendor-Specific (Optional) D02 = 0 no - Vendor-Specific (Optional) D03 = 0 no - Vendor-Specific (Optional) D04 = 0 no - Vendor-Specific (Optional) D05 = 0 no - Vendor-Specific (Optional) D06 = 0 no - Vendor-Specific (Optional) D07 = 0 no - Vendor-Specific (Optional) D08 = 0 no - Vendor-Specific (Optional) D09 = 0 no - Vendor-Specific (Optional) D10 = 0 no - Vendor-Specific (Optional) D11 = 0 no - Vendor-Specific (Optional) D12 = 0 no - Vendor-Specific (Optional) D13 = 0 no - Vendor-Specific (Optional) D14 = 0 no - Vendor-Specific (Optional) D15 = 0 no - Vendor-Specific (Optional) D16 = 0 no - Vendor-Specific (Optional) D17 = 0 no - Vendor-Specific (Optional) D18 = 0 no - Vendor-Specific (Optional) D19 = 0 no - Vendor-Specific (Optional) D20 = 0 no - Vendor-Specific (Optional) D21 = 0 no - Vendor-Specific (Optional) D22 = 0 no - Vendor-Specific (Optional) D23 = 0 no - Vendor-Specific (Optional) iExtension: 0x00 ===>Video Control Output Terminal Descriptor<=== bLength: 0x09 bDescriptorType: 0x24 bDescriptorSubtype: 0x03 bTerminalID: 0x03 wTerminalType: 0x0101 = (TT_STREAMING) bAssocTerminal: 0x00 bSourceID: 0x06 iTerminal: 0x00 ===>Endpoint Descriptor<=== bLength: 0x07 bDescriptorType: 0x05 bEndpointAddress: 0x82 -> Direction: IN - EndpointID: 2 bmAttributes: 0x03 -> Interrupt Transfer Type wMaxPacketSize: 0x0040 = 1 transactions per microframe, 0x40 max bytes bInterval: 0x08 ===>Class-specific VC Interrupt Endpoint Descriptor<=== bLength: 0x05 bDescriptorType: 0x25 bDescriptorSubtype: 0x03 wMaxTransferSize: 0x0040 = (64) Bytes ===>Interface Descriptor<=== bLength: 0x09 bDescriptorType: 0x04 bInterfaceNumber: 0x01 bAlternateSetting: 0x00 bNumEndpoints: 0x01 bInterfaceClass: 0x0E -> Video Interface Class bInterfaceSubClass: 0x02 -> Video Streaming Interface SubClass bInterfaceProtocol: 0x00 iInterface: 0x00 ===>Video Class-Specific VS Video Input Header Descriptor<=== bLength: 0x0E bDescriptorType: 0x24 bDescriptorSubtype: 0x01 bNumFormats: 0x01 wTotalLength: 0x00DD -> Validated bEndpointAddress: 0x83 -> Direction: IN - EndpointID: 3 bmInfo: 0x00 -> Dynamic Format Change not Supported bTerminalLink: 0x03 bStillCaptureMethod: 0x00 -> No Still Capture bTriggerSupport: 0x00 -> No Hardware Triggering Support bTriggerUsage: 0x00 bControlSize: 0x01 Video Payload Format 1 0x00 D00 = 0 no - Key Frame Rate D01 = 0 no - P Frame Rate D02 = 0 no - Compression Quality D03 = 0 no - Compression Window Size D04 = 0 no - Generate Key Frame D05 = 0 no - Update Frame Segment D06 = 0 no - Reserved D07 = 0 no - Reserved ===>Video Streaming Uncompressed Format Type Descriptor<=== bLength: 0x1B bDescriptorType: 0x24 bDescriptorSubtype: 0x04 bFormatIndex: 0x01 bNumFrameDescriptors: 0x06 guidFormat: {32595559-0000-0010-8000-00AA00389B71} = YUY2 Format bBitsPerPixel: 0x10 bDefaultFrameIndex: 0x04 bAspectRatioX: 0x00 bAspectRatioY: 0x00 bmInterlaceFlags: 0x00 D0 = 0x00 Interlaced stream or variable: No D1 = 0x00 Fields per frame: 2 fields D2 = 0x00 Field 1 first: No D3 = 0x00 Reserved D4..5 = 0x00 Field patterns -> Field 1 only D6..7 = 0x00 Display Mode -> Bob only bCopyProtect: 0x00 -> Duplication Unrestricted *!*ERROR: no Color Matching Descriptor for this format ===>Video Streaming Uncompressed Frame Type Descriptor<=== bLength: 0x1E bDescriptorType: 0x24 bDescriptorSubtype: 0x05 bFrameIndex: 0x01 bmCapabilities: 0x00 wWidth: 0x0280 = 640 wHeight: 0x01E0 = 480 dwMinBitRate: 0x10D88000 dwMaxBitRate: 0x10D88000 dwMaxVideoFrameBufferSize: 0x00096000 dwDefaultFrameInterval: 0x0002A759 = 17.391300 mSec (57.50 Hz) bFrameIntervalType: 0x01 ===>Additional Discrete Frame Type Data dwFrameInterval[1]: 0x0002A759 = 17.391300 mSec (57.50 Hz) ===>Video Streaming Uncompressed Frame Type Descriptor<=== bLength: 0x1E bDescriptorType: 0x24 bDescriptorSubtype: 0x05 bFrameIndex: 0x02 bmCapabilities: 0x00 wWidth: 0x0280 = 640 wHeight: 0x00F0 = 240 dwMinBitRate: 0x10D88000 dwMaxBitRate: 0x10D88000 dwMaxVideoFrameBufferSize: 0x0004B000 dwDefaultFrameInterval: 0x000153AC = 8.695600 mSec (115.00 Hz) bFrameIntervalType: 0x01 ===>Additional Discrete Frame Type Data dwFrameInterval[1]: 0x000153AC = 8.695600 mSec (115.00 Hz) ===>Video Streaming Uncompressed Frame Type Descriptor<=== bLength: 0x1E bDescriptorType: 0x24 bDescriptorSubtype: 0x05 bFrameIndex: 0x03 bmCapabilities: 0x00 wWidth: 0x0280 = 640 wHeight: 0x0078 = 120 dwMinBitRate: 0x0FAC8000 dwMaxBitRate: 0x0FAC8000 dwMaxVideoFrameBufferSize: 0x00025800 dwDefaultFrameInterval: 0x0000B688 = 4.672800 mSec (214.00 Hz) bFrameIntervalType: 0x01 ===>Additional Discrete Frame Type Data dwFrameInterval[1]: 0x0000B688 = 4.672800 mSec (214.00 Hz) ===>Video Streaming Uncompressed Frame Type Descriptor<=== --->This is the Default (optimum) Frame index bLength: 0x1E bDescriptorType: 0x24 bDescriptorSubtype: 0x05 bFrameIndex: 0x04 bmCapabilities: 0x00 wWidth: 0x02F0 = 752 wHeight: 0x01E0 = 480 dwMinBitRate: 0x11364000 dwMaxBitRate: 0x11364000 dwMaxVideoFrameBufferSize: 0x000B0400 dwDefaultFrameInterval: 0x00030D40 = 20.000000 mSec (50.00 Hz) bFrameIntervalType: 0x01 ===>Additional Discrete Frame Type Data dwFrameInterval[1]: 0x00030D40 = 20.000000 mSec (50.00 Hz) ===>Video Streaming Uncompressed Frame Type Descriptor<=== bLength: 0x1E bDescriptorType: 0x24 bDescriptorSubtype: 0x05 bFrameIndex: 0x05 bmCapabilities: 0x00 wWidth: 0x02F0 = 752 wHeight: 0x00F0 = 240 dwMinBitRate: 0x11364000 dwMaxBitRate: 0x11364000 dwMaxVideoFrameBufferSize: 0x00058200 dwDefaultFrameInterval: 0x000186A0 = 10.000000 mSec (100.00 Hz) bFrameIntervalType: 0x01 ===>Additional Discrete Frame Type Data dwFrameInterval[1]: 0x000186A0 = 10.000000 mSec (100.00 Hz) ===>Video Streaming Uncompressed Frame Type Descriptor<=== bLength: 0x1E bDescriptorType: 0x24 bDescriptorSubtype: 0x05 bFrameIndex: 0x06 bmCapabilities: 0x00 wWidth: 0x02F0 = 752 wHeight: 0x0078 = 120 dwMinBitRate: 0x1059F000 dwMaxBitRate: 0x1059F000 dwMaxVideoFrameBufferSize: 0x0002C100 dwDefaultFrameInterval: 0x0000CD97 = 5.263100 mSec (190.00 Hz) bFrameIntervalType: 0x01 ===>Additional Discrete Frame Type Data dwFrameInterval[1]: 0x0000CD97 = 5.263100 mSec (190.00 Hz) ===>Endpoint Descriptor<=== bLength: 0x07 bDescriptorType: 0x05 bEndpointAddress: 0x83 -> Direction: IN - EndpointID: 3 bmAttributes: 0x02 -> Bulk Transfer Type wMaxPacketSize: 0x0200 = 0x200 max bytes bInterval: 0x01 ===>Additional Error Checking<=== PASS: number of uncompressed-frame frame descriptors (6) == number of frame descriptors (6) specified in uncompressed format descriptor(s)