ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Astra Failed to set USB interface

asked 2017-01-30 03:54:18 -0500

dwikyerl gravatar image

updated 2017-01-31 00:34:56 -0500

UPDATE :

I have followed all instructions on https://github.com/orbbec/ros_astra_c... and installed the launcher from : https://github.com/orbbec/ros_astra_l... , 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 ...
(more)
edit retag flag offensive close merge delete

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

abrzozowski gravatar image abrzozowski  ( 2017-01-30 04:20:09 -0500 )edit

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 using rostopic list, some topics won't run e.g : /camera/rgb/image_raw

dwikyerl gravatar image dwikyerl  ( 2017-01-30 05:07:17 -0500 )edit

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.

abrzozowski gravatar image abrzozowski  ( 2017-01-30 06:33:47 -0500 )edit

You can try uninstall it and call ros-*-openni-camera or even better take steps to https://3dclub.orbbec3d.com/t/univers...

abrzozowski gravatar image abrzozowski  ( 2017-01-30 06:34:00 -0500 )edit

Yes, I installed openni2 from ros-indigo-openni2-camera. But I'm using astra_camera from here : https://github.com/orbbec/ros_astra_c... . Is the ros-*-openni2- affecting astra SDK ? Okay I will try install OpenNI2 from that link, thank you

dwikyerl gravatar image dwikyerl  ( 2017-01-30 06:58:29 -0500 )edit

Yes, It should be affected, even though https://github.com/orbbec/ros_astra_c...

abrzozowski gravatar image abrzozowski  ( 2017-01-30 07:19:13 -0500 )edit

I have problem uninstalling ros-indigo-openni2-* because turtlebot packages depend on it. And how to fix Device open failed Could not open "2bc5/0401@3/10": Failed to set USB interface! ?

dwikyerl gravatar image dwikyerl  ( 2017-01-30 07:31:12 -0500 )edit

hmm, maybe this post will help you: https://3dclub.orbbec3d.com/t/orbbec-... , it is only guessing, there is a lot of things that can go wrong.

abrzozowski gravatar image abrzozowski  ( 2017-01-31 04:43:15 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-06-24 18:38:12 -0500

biginner gravatar image

updated 2021-06-24 18:58:25 -0500

jayess gravatar image

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_c...

edit flag offensive delete link more

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
distro gravatar image distro  ( 2022-04-15 22:52:27 -0500 )edit

Remove the first '/'.

Armin Wolf gravatar image Armin Wolf  ( 2022-05-04 03:42:08 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-01-30 03:54:18 -0500

Seen: 5,031 times

Last updated: Jun 24 '21