Soy-Robotics / Ros2Bot

upgraded version of turtlebot2
7 stars 4 forks source link

Don't move Kinect Bridge #1

Closed bingyo closed 7 years ago

bingyo commented 8 years ago

I am referring to Ros2Bot. Thank you very much.

I was a setup using the procedure. However, kinect2_bridge did not work.

$ rosrun kinect2_bridge kinect2_bridge
・・・
・・・
[kinect2_bridge] depth processing: ~nanHz (nanms) publishing rate: ~0Hz
[kinect2_bridge] color processing: ~301.53Hz (3.31642ms) publishing rate: ~7.65098Hz
・・・
・・・

I was investigating the cause. kinect2_bridge did not work but Protonect can work. So I entered the following command.

$ ldd /catkin_ws/devel/lib/kinect2_bridge | grep usb
libusb-1.0.so.0 => /home/ubuntu/Downloads/old_libfreenect2/libfreenect2/depends/libusb/lib/libusb-1.0.so.0 (0xb5185000)
$ ldd  ~/libfreenect2/examples/protonect/bin/Protonect | grep usb
libusb-1.0.so.0 => /home/ubuntu/libfreenect2/examples/protonect/../../depends/libusb/lib/libusb-1.0.so.0 (0xb6a51000)

Please tell me if you know the cause.

bingyo commented 8 years ago

extlinux.conf, 90-kinect2.rules, rw permission is OK. But don't work same. I was worried about idProduct(045e:02d9) same.No problem?

$lsusb
Bus 002 Device 005: ID 045e:02c4 Microsoft Corp. 
Bus 002 Device 004: ID 045e:02d9 Microsoft Corp. 
Bus 001 Device 005: ID 045e:02d9 Microsoft Corp. 
ubuntu@tegra-ubuntu:~$ ls -l /dev/bus/usb/002/005 
crw-rw-rw- 1 root root 189, 132 Jan 15 13:17 /dev/bus/usb/002/005
ubuntu@tegra-ubuntu:~$ ls -l /dev/bus/usb/002/004 
crw-rw-rw- 1 root root 189, 131 Jan 15 13:17 /dev/bus/usb/002/004
ubuntu@tegra-ubuntu:~$ ls -l /dev/bus/usb/001/005 
crw-rw-rw- 1 root root 189, 4 Jan 15 13:17 /dev/bus/usb/001/005
Soy-Robotics commented 8 years ago

same number doesn't create any problem. You can copy the same into confg file. How about usb_owner infr=2? are you following the steps in removing usb in each restart and plugging once complete restart?? when running ./Protonect, try to sudo it sudo ./Protonect

Please provide complete output of the result

bingyo commented 8 years ago

How about usb_ownerinfr=2?

I did set "use_port_owner_info=2"

are you following the steps in removing usb in each restart and plugging once complete restart??

Yes. removing usb -> reboot -> plugging usb

When running sudo ./Downloads/libfreenect2/build/bin/Protonect outputSudoProtonect.txt

Does @GaiTech-Robotics use libusb-1.0-0.dev of version 1.0.17?

bingyo commented 8 years ago

@GaiTech-Robotics @xlz Please give me some advice...

Soy-Robotics commented 8 years ago

@bingyo , sorry for the late reply. was not available.

We use libusb version 1.0.20

bingyo commented 8 years ago

@GaiTech-Robotics Thank you answers. Humm, I updated libusb-1.0-0-dev. And rebuild libfreenect2. But same don't work kinect_bridge and Pronect...

bingyo commented 8 years ago

@xlz I uploaded wrong files of dmesg and LIBUSB_DEBUG=3. I'm sorry.

I run sudo LIBUSB_DEBUG=3 ./Protonect LIBUSB_3_debug.txt

after output dmesg dmesg.txt

Please check files. I use OpenKinect/ libfreenect v0.1 now.

Soy-Robotics commented 7 years ago

I will closed this issues due to too long time.