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

kinect 2 No devices connected and image_view didnt show anything [closed]

asked 2015-11-16 03:29:48 -0600

peterlin300 gravatar image

updated 2015-11-16 03:47:57 -0600

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 runrqtandrosrun kinect2_bridge kinect2_bridge it can show something like image_depth


How should i do? and go to learn?

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by peterlin300
close date 2015-11-26 02:01:43.492660

3 Answers

Sort by ยป oldest newest most voted
0

answered 2015-11-16 13:20:09 -0600

Fredylucas gravatar image

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/micro...

edit flag offensive delete link more

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.

peterlin300 gravatar image peterlin300  ( 2015-11-19 02:28:31 -0600 )edit

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

Fredylucas gravatar image Fredylucas  ( 2015-11-19 22:07:43 -0600 )edit

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/rosit...

Fredylucas gravatar image Fredylucas  ( 2015-11-19 22:10:33 -0600 )edit

thanks!! ROS-Industrial tutorials looks so good. that's really helpful.

peterlin300 gravatar image peterlin300  ( 2015-11-21 00:39:06 -0600 )edit
0

answered 2015-11-16 07:14:35 -0600

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.

edit flag offensive delete link more

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.

peterlin300 gravatar image peterlin300  ( 2015-11-19 02:39:49 -0600 )edit

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.

MichaelKorn gravatar image MichaelKorn  ( 2015-11-19 04:57:21 -0600 )edit

thanks for your advice!!!!

peterlin300 gravatar image peterlin300  ( 2015-11-21 00:39:22 -0600 )edit
0

answered 2015-11-16 05:37:55 -0600

Akif gravatar image

updated 2015-11-16 06:48:46 -0600

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.

Reference: https://github.com/OpenKinect/libfree...

edit flag offensive delete link more

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.

peterlin300 gravatar image peterlin300  ( 2015-11-19 02:31:56 -0600 )edit

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.

Akif gravatar image Akif  ( 2015-11-19 02:46:26 -0600 )edit

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

peterlin300 gravatar image peterlin300  ( 2015-11-21 01:02:52 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-11-16 03:29:48 -0600

Seen: 1,658 times

Last updated: Nov 16 '15