PrimeSense / Sensor

PrimeSensor Modules for OpenNI
www.primesense.com
Apache License 2.0
380 stars 572 forks source link

USB events thread - failed to set priority ... Number devices connected: 2 #13

Open GianMeng opened 6 years ago

GianMeng commented 6 years ago

Hello, I got a problem when I tried to roslaunch openni_launch openni.launch with kinect v1 on my ubuntu16.04

-------------------------------------------------------------------

The main problem is Warning: USB events thread - failed to set priority. This might cause loss of data... [ INFO] [1532144223.689084031]: **Number devices connected: 2** [ INFO] [1532144223.789816257]: ** 1. device on bus 002:08 is a SensorKinect (2ae) from PrimeSense (45e) with serial id '0' ** [ INFO] [1532144223.789871737]: ** 2. device on bus 002:08 is a SensorV2 (2ae) from PrimeSense (45e) with serial id 'A00366902406104A' ** [ INFO] [1532144223.790564154]: Searching for device with index = 2 [ INFO] [1532144223.826063687]: Opened 'SensorV2' on bus 2:8 with serial number 'A00366902406104A' [ INFO] [1532144223.853133835]: rgb_frame_id = 'camera_rgb_optical_frame' [ INFO] [1532144223.854356984]: depth_frame_id = 'camera_depth_optical_frame' [ WARN] [1532144223.861493275]: Camera calibration file /home/neo/.ros/camera_info/rgb_A00366902406104A.yaml not found. [ WARN] [1532144223.861670175]: Using default parameters for RGB camera calibration. [ WARN] [1532144223.861811460]: Camera calibration file /home/neo/.ros/camera_info/depth_A00366902406104A.yaml not found. [ WARN] [1532144223.861931850]: Using default parameters for IR camera calibration.

It showed the computer connected to two kinects. But I only had one kinect connected.

------------------------------------------------------------------------------------------------------------------------

I Have asked on ROS ANSWER, here, but I get no reply.

-----------------------------------------------------------------------------------------------------------------------

So I have to ask help from here. I hope someone would help me with the issue. Thank you so much.

srisadhan commented 5 years ago

After a lot of struggle, I finally found an answer which solved the issue. Hope it helps you too.

In "SensorKinect/Platform/Linux/Redist/Sensor-Bin-Linux-x64-v5.1.2.1" Uninstall the driver - sudo ./install.sh -u https://github.com/ros-drivers/openni_camera/issues/54#issuecomment-316579511

abhinavtripathi95 commented 5 years ago

Thanks a lot @srisadhan for this solution. I had been stuck with this for over 24 hours, uninstalling and installing everything again but nothing worked. After uninstalling the driver, openni_launch file started working.