Astra Failed to set USB interface
UPDATE :
I have followed all instructions on https://github.com/orbbec/ros_astra_camera and installed the launcher from : https://github.com/orbbec/ros_astra_launch , I also uninstalled ros-indigo-openni2-*
and configured 56-orbbec-usb.rules
. Now, I encountering a new issue when I start roslaunch astra_launch astra.launch
it shows fail info:
[ INFO] [1485844378.423165924]: Device "2bc5/0401@3/6" found.
[ INFO] [1485844378.430540517]: No matching device found.... waiting for devices. Reason: astra_wrapper::AstraDevice::AstraDevice(const string&) @ /home/dwikyerl/catkin_ws/src/ros_astra_camera/src/astra_device.cpp @ 76 : Device open failed
Could not open "2bc5/0401@3/6": Failed to set USB interface!
rosrun astra_camera astra_list_device
's output (no serial number ?) :
[ INFO] [1485844451.350552419]: Device "2bc5/0401@3/6" found.
Found 1 devices:
Device #0:
Uri: 2bc5/0401@3/6 (Vendor: Orbbec, Name: Astra, Vendor ID: 2bc5, Product ID: 401)
Serial number:
lsusb -v ouput
's output:
Bus 003 Device 011: ID 2bc5:0401
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x2bc5
idProduct 0x0401
bcdDevice 0.01
iManufacturer 1 (error)
iProduct 2 (error)
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 145
bNumInterfaces 3
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 3 (error)
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
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 1 Audio
bInterfaceSubClass 1 Control Device
bInterfaceProtocol 0
iInterface 4 (error)
AudioControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 1 (HEADER)
bcdADC 1.00
wTotalLength 43
bInCollection 1
baInterfaceNr( 0) 2
AudioControl Interface Descriptor:
bLength 12
bDescriptorType 36
bDescriptorSubtype 2 (INPUT_TERMINAL)
bTerminalID 1
wTerminalType 0x0201 Microphone
bAssocTerminal 0
bNrChannels 2
wChannelConfig 0x0003
Left Front (L)
Right Front (R)
iChannelNames 0
iTerminal 0
AudioControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 3 (OUTPUT_TERMINAL)
bTerminalID 2
wTerminalType 0x0101 USB Streaming
bAssocTerminal 0
bSourceID 3
iTerminal 0
AudioControl Interface Descriptor:
bLength 13
bDescriptorType 36
bDescriptorSubtype 6 (FEATURE_UNIT)
bUnitID 3
bSourceID 1
bControlSize 2
bmaControls( 0) 0x03
bmaControls( 0) 0x00
Mute Control
Volume Control
bmaControls( 1) 0x03
bmaControls( 1) 0x00
Mute Control
Volume Control
bmaControls( 2) 0x03
bmaControls( 2) 0x00
Mute Control
Volume Control
iFeature 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 1
bNumEndpoints 1
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 0
iInterface 0
AudioStreaming Interface Descriptor:
bLength 7
bDescriptorType 36
bDescriptorSubtype 1 (AS_GENERAL)
bTerminalLink 2
bDelay 1 frames
wFormatTag 1 PCM
AudioStreaming Interface Descriptor:
bLength 20
bDescriptorType 36
bDescriptorSubtype 2 (FORMAT_TYPE)
bFormatType 1 (FORMAT_TYPE_I)
bNrChannels 2
bSubframeSize 2
bBitResolution 16
bSamFreqType 4 Discrete
tSamFreq[ 0] 8000
tSamFreq[ 1] 16000
tSamFreq[ 2] 32000
tSamFreq[ 3] 48000
Endpoint Descriptor:
bLength 9
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 13
Transfer Type Isochronous
Synch Type Synchronous
Usage Type Data
wMaxPacketSize 0x00c0 1x 192 bytes
bInterval 4
bRefresh 0
bSynchAddress 0
AudioControl Endpoint Descriptor:
bLength 7
bDescriptorType 37
bDescriptorSubtype 1 (EP_GENERAL)
bmAttributes 0x01
Sampling Frequency
bLockDelayUnits 0 Undefined
wLockDelay 0 Undefined
Device Status: 0x0001
Self Powered
Can anyone help me?
Thank you
ORIGINAL :
Hello,
I'm new in ROS and I have a problem with my Astra camera, when I ran rosrun astra_launch astra.launch
or using turtlebot package : roslaunch turtlebot_bringup 3dsensor.launch
, the Astra get always gets stuck in
[ INFO] [1485769296.407770401]: Device "2bc5/0401@1/4" found.
Also when I want to stream image from topic /camera/rgb/image_raw
using image_view
it won't show anything. Later I found out using rostopic list
, the /camera/rgb/image_raw
is not published.
I have set udev
rules and configured the astra_camera
wrapper.
So has anyone face with this problem or how to fix this.
Thank you
Asked by dwikyerl on 2017-01-30 04:54:18 UTC
Answers
I was also facing this issue, here what I did to fix it:
sudo apt-get install ros-kinetic-astra-launch
roscd astra_camera
./scripts/create_udev_rules
Clone this in your workstation: git clone https://github.com/orbbec/ros_astra_camera
Make: catkin_make
Now, roslaunch astra_launch astra.launch
, should work.
More info: https://github.com/orbbec/ros_astra_camera
Asked by biginner on 2021-06-24 18:38:12 UTC
Comments
@jayess when I do chmod 777 /scripts/create_udev_rules
I get this
chmod: cannot access '/scripts/create_udev_rules': No such file or directory
Asked by distro on 2022-04-15 22:52:27 UTC
Remove the first '/'.
Asked by Armin Wolf on 2022-05-04 03:42:08 UTC
Comments
Have you tried run the standalone camera and reload udev system service? Type
$ sudo service udev reload; sudo service udev restart; roslaunch astra_launch astra.launch
and check output: e.g.$ rostopic echo /camera/depth/points
Asked by abrzozowski on 2017-01-30 05:20:09 UTC
I have done it, I checked /camera/depth/image topic and /camera/depth/image/compressed but it doesn't show anything. Also I noticed, everytime I run
roslaunch astra_launch astra.launch
and check the topics usingrostopic list
, some topics won't run e.g :/camera/rgb/image_raw
Asked by dwikyerl on 2017-01-30 06:07:17 UTC
I am guessing incompatible OpenNI library with Astra. You have probably installed OpenNI from
ros-*-openni2-*
, Astra doesn't working for me too with this package.Asked by abrzozowski on 2017-01-30 07:33:47 UTC
You can try uninstall it and call
ros-*-openni-camera
or even better take steps to https://3dclub.orbbec3d.com/t/universal-download-thread-for-astra-series-cameras/622Asked by abrzozowski on 2017-01-30 07:34:00 UTC
Yes, I installed openni2 from
ros-indigo-openni2-camera
. But I'm usingastra_camera
from here : https://github.com/orbbec/ros_astra_camera . Is theros-*-openni2-
affecting astra SDK ? Okay I will try install OpenNI2 from that link, thank youAsked by dwikyerl on 2017-01-30 07:58:29 UTC
Yes, It should be affected, even though https://github.com/orbbec/ros_astra_camera/blob/master/CMakeLists.txt#L21
Asked by abrzozowski on 2017-01-30 08:19:13 UTC
I have problem uninstalling
ros-indigo-openni2-*
because turtlebot packages depend on it. And how to fixDevice open failed Could not open "2bc5/0401@3/10": Failed to set USB interface!
?Asked by dwikyerl on 2017-01-30 08:31:12 UTC
hmm, maybe this post will help you: https://3dclub.orbbec3d.com/t/orbbec-openi-problem-with-usb/279/6 , it is only guessing, there is a lot of things that can go wrong.
Asked by abrzozowski on 2017-01-31 05:43:15 UTC
I think my astra is broken, I tried it on Windows 10 and other computer, it always produces same error. Maybe I'll replace it. Thank you for your help
Asked by dwikyerl on 2017-01-31 06:28:56 UTC