kinect 2 No devices connected and image_view didnt show anything
i'm a newcomer in ROS ,and i am try to study Robot Vision and ros by using "ROS by example indigo"
i'm already installed libfreenect2 and iai_kinect2,the Open source drivers and tool for the Kinect for Windows v2 device in ROS, and when i try run the command
roslaunch freenect_launch freenect.launch
I get No devices connected.... waiting for devices to connect
i try to run lsusb it show:
Bus 003 Device 003: ID 046d:c077 Logitech, Inc.
Bus 003 Device 002: ID 8087:8000 Intel Corp.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 045e:02c4 Microsoft Corp.
Bus 002 Device 002: ID 045e:02d9 Microsoft Corp.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Readerte Controller
Controller
Bus 001 Device 004: ID 04ca:2006 Lite-On Technology Corp.
Bus 001 Device 003: ID 0bda:57b5 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 045e:02d9 Microsoft Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
i run `rosrun image_view image_view image:=/camera/rgb/image_raw
,
it pop up a small camera display but didnt show anything.but i can runrqt
androsrun kinect2_bridge kinect2_bridge
it can show something like image_depth
How should i do? and go to learn?
Asked by peterlin300 on 2015-11-16 04:29:48 UTC
Answers
You may be experiencing a permission issue. Please try the same thing with root permissions. If it works, save these lines:
# this file belongs in /etc/udev/rules.d/
# ATTR{product}=="Kinect2"
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02c4", MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02d8", MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02d9", MODE="0666"
to a file and name it as 90-kinect2.rules
. Then copy this file to /etc/udev/rules.d/
. After this re-plug the device.
Asked by Akif on 2015-11-16 06:37:55 UTC
Comments
thanks for your advice! by the way i already add root permissions named 90-kinect2.rules after i installed libfreenect2 . But it didnt work! Do you know any Robot Vision tutorial used kinect 2 in ROS? it seems i cant follow the book tutorial i mentioned by using kinect2.
Asked by peterlin300 on 2015-11-19 03:31:56 UTC
I'm using Kinect 2 with ROS and PCL but I do not know a tutorial to follow. I followed instructions on iai_kinect github page and it worked.
Asked by Akif on 2015-11-19 03:46:26 UTC
that shows you write the programs by c++ or python in ROS Workspace then use iai_kinect to show the screen what you want? like Face/body Detection Skeleton Tracking?? i dont have any ideal about how to Develop the program in linux.i jist have exprience in windows,but i need to use ROS in ubuntu now
Asked by peterlin300 on 2015-11-21 02:02:52 UTC
As far I know you can not use freenect_launch with kinect2! As you mention kinect2_bridge is working for you. If you want to use image_view you should use the right topic name. I think it should be /kinect2/hd/image_color or similar. The best way is to check which topics are offered after starting kinect2_bridg:
rostopic list
then you can use rviz to shows the intersecting topics. By the way: I can not use image_view to show the depth images from the new Kinect, but is working with the old Kinect. Rviz can show all topics of both Kinects.
Asked by MichaelKorn on 2015-11-16 08:14:35 UTC
Comments
thanks for your advice!. after i starting kinect2_bridg, i can see many topic by rqt. by the way:do you know any Robot Vision tutorial used kinect 2 in ROS? it seems i cant follow the book tutorial i mentioned by using kinect2.
Asked by peterlin300 on 2015-11-19 03:39:49 UTC
I don't know any Tutorial for Kinect 2. I would suggest to start with Kinect 1. The new Kinect has a better resolution but many, many drawbacks. For most robotic applications the old Kinect is better.
Asked by MichaelKorn on 2015-11-19 05:57:21 UTC
thanks for your advice!!!!
Asked by peterlin300 on 2015-11-21 01:39:22 UTC
In my experience, the problem may be due to the GPU or OpenGL drivers, depending on the graphics card may or may not serve the version of OpenGL, for example I have a IntelHD card and can only use OpenGL 3.0, so I can not use kinectV2; with an Nvidia card, you can upgrade to OpenGL 4.5 and use Kinect V2 without problems. I also recommend you to update the cmake, I also had problems with that when I worked with Kinect V2, as for the rest, Thiemo package works pretty well. http://www.ros.org/news/2014/09/microsoft-kinect-v2-driver-released.html
Asked by Fredylucas on 2015-11-16 14:20:09 UTC
Comments
thanks for your advice! by the way:do you know any Robot Vision tutorial used kinect 2 in ROS? it seems i cant follow the book tutorial i mentioned by using kinect2.
Asked by peterlin300 on 2015-11-19 03:28:31 UTC
Regrettably I don't know any tutorial for Kinect V2, I think it's better to work with an older device, because Kinect v2 is very new and not many people have worked with it (In fact I am working with Asus xtion sensor).
Asked by Fredylucas on 2015-11-19 23:07:43 UTC
On the other hand, for ROS in general, I recommend you the ROS-Industrial tutorials, these tutorials are really good. http://aeswiki.datasys.swri.edu/rositraining/default
Asked by Fredylucas on 2015-11-19 23:10:33 UTC
thanks!! ROS-Industrial tutorials looks so good. that's really helpful.
Asked by peterlin300 on 2015-11-21 01:39:06 UTC
Comments