为设备手动设置USB传输类型
我尝试在ARM板(Pandown)上运行Asus xtion,我已经安装并使用了openni提供的示例(例如NiSimpleRead)。要在这个平台上运行这些示例,需要进行一些调整,其中之一是手动将UsbInterface设置为等时(在GlobalDefaults.ini中)。但在那之后一切都很顺利 现在我想使用PCL(基于openni)获取一些帧,但PCL不起作用。我认为pcl试图自行设置USB接口(它可能使用XnUSBLinux.cpp作为通用接口),并试图绕过GlobalDefaults.ini,而不是使用我手动设置的USB接口 我的问题是,我是否可以为设备将USB接口的选项设置为同步全局?或者如何更改XnUSBLinux.cpp使其运行 这是lsusb-v(简化为asus设备部分)的输出,显示了两种操作选项(批量和同步) 如果您能帮助您手动设置一个选项,那就太好了为设备手动设置USB传输类型,usb,kinect,openni,libusb,point-cloud-library,Usb,Kinect,Openni,Libusb,Point Cloud Library,我尝试在ARM板(Pandown)上运行Asus xtion,我已经安装并使用了openni提供的示例(例如NiSimpleRead)。要在这个平台上运行这些示例,需要进行一些调整,其中之一是手动将UsbInterface设置为等时(在GlobalDefaults.ini中)。但在那之后一切都很顺利 现在我想使用PCL(基于openni)获取一些帧,但PCL不起作用。我认为pcl试图自行设置USB接口(它可能使用XnUSBLinux.cpp作为通用接口),并试图绕过GlobalDefaults.
Bus 001 Device 006: ID 1d27:0600
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x1d27
idProduct 0x0600
bcdDevice 0.01
iManufacturer 2 PrimeSense
iProduct 1 PrimeSense Device
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 69
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0b70 2x 880 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x135c 3x 860 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x1040 3x 64 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 1
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 1
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)