How can I use Kinect v2 with ROS in Ubuntu 14.04
Hello, I'm a Korean and I have some problem to understand the datas which are in this website in English.
But I try to understand .
Anyway, My problem is how to use kinect v2 for using SLAM in ROS
I tried to follow manuals from all most forum ,blogs and googling. And, Write at terminal in Ubuntu.
Some sentances were right working , but after other sentances ,
My computer said
[ INFO] [1431517558.554472710]: No matching devi에ce found.... waiting for devices. Reason: std::string openni2wrapper::OpenNI2Driver::resolveDeviceURI(const string&) @ /tmp/buildd/ros-indigo-openni2-camera-0.2.3-0trusty-20150327-0611/src/openni2driver.cpp @ 623 : Invalid device number 1, there are 0 devices connected.
I need to install a tool for using Kinect v2.
Help me , please and I will thank you if you give me a manual which I can follow easily.
Asked by Ros_junior on 2015-05-18 01:14:52 UTC
Answers
Hello, I think we'll need more information to help, can you specify more clearly which packages you are trying to use and what error messages you have ? Some people got the kinect v2 working on ROS : http://www.ros.org/news/2014/09/microsoft-kinect-v2-driver-released.html . Do you really have to use kinect v2 to do that ? Otherwise, you could do 2D SLAM quite easily with a kinect v1 on ROS.
EDIT : I managed to build and install libfrennect2 : While installing libfrennect2, configure of libusb failed because some dependencies were missing, so no Makefile was generated, and the script install_ubuntu.sh failed. If you have this error saying libusb.h is missing, try this first, as described in the iai_kinect2 github page , it worked for me :
sudo apt-get install build-essential libturbojpeg libtool autoconf libudev-dev cmake mesa-common-dev freeglut3-dev libxrandr-dev doxygen libxi-dev libopencv-dev
Asked by Cyril Jourdan on 2015-05-18 03:25:16 UTC
Comments
I really thank you for your advise. I try to follow your link. and I have some wodering parts.
Asked by Ros_junior on 2015-05-25 13:18:48 UTC
Oh, Why I can not upload my screen shot ??? ..... Sorry, I just ask you with writing.
I opened this link ' https://github.com/code-iai/iai_kinect2 '
and read this title
Modifications to Upstream libfreenect2
CMakeLists.txt: Replace line 48 to 50 with # LibUSB GET_FILENAME_C
Asked by Ros_junior on 2015-05-25 13:30:02 UTC
and I command in my turminal
$cd ~/catkin_ws/src
$gedit CMakeLists.txt
Asked by Ros_junior on 2015-05-25 13:31:56 UTC
and then copy the ' #LibUSB GET_ ~~~~~ bla bla bla'
and paste it in CMakeLists.txt 48~ 50 line
Do I follow right way???
Asked by Ros_junior on 2015-05-25 13:35:27 UTC
And, I have to use Kinect V2 beacause I can't buy v1 anymore in Korea T T
Asked by Ros_junior on 2015-05-25 13:40:25 UTC
I can't open your screenshot. I just received my kinect2 so I'll try as well and let you know if that works.
Asked by Cyril Jourdan on 2015-05-27 10:15:37 UTC
Thank you T.T . I'm waiting your answer
Asked by Ros_junior on 2015-05-27 10:59:37 UTC
I'm trying to install libfreenect2, for now I have an error with a libusb.h missing, because there is no makefile that build the libusb_src library in the depends folder.
Asked by Cyril Jourdan on 2015-05-28 03:44:09 UTC
I can run and see the camera picture. I have to run with the cpu option to see the ir depth and registered.
./Protonect cpu
Anyone sees it in normal OpenGL mode ?
Asked by Cyril Jourdan on 2015-05-28 05:06:10 UTC
why not run opennilaunch and view in rviz?
Asked by Raman on 2015-05-28 09:57:11 UTC
That worked for the kinect v1, but Protonect is a libfreenect2 example, not linked to ROS anyway.
Asked by Cyril Jourdan on 2015-05-28 10:32:52 UTC
Thank you. I can install driver due to your help. But I have met another problem..... Does not it work on 'kinect for xbox one'?? ??? I use it this model and I thought It will drive in same driver but.... I couldn't connect.....
Asked by Ros_junior on 2015-05-28 14:36:47 UTC
Uhm. I have changed power supply and command $rosrun kinect2_bridge kinect2_bridge .
when I do it , my terminal give a message, 'found 1 devices' . but In real, My device does not run in lighting. Am I following right ??? lol.
Asked by Ros_junior on 2015-05-29 00:35:33 UTC
If you don't mind, I want to show you my window screenshot in email..... I tried to upload screenshot.png but ' >5 point required ' ????? I don't understand.
I'm sorry to bother you.
Asked by Ros_junior on 2015-05-29 00:41:43 UTC
Do I have to do this 'section 6 'Calibrate your sensor~' ? https://github.com/code-iai/iai_kinect2
Asked by Ros_junior on 2015-05-29 00:59:09 UTC
I am also using Kinect for xbox one, with the adapter for power supply and USB3. First, can you run and see kinect2 data (camera, IR, depth) with Protonect from libfreenect2 ? I also can't run kinect2_bridge, it's trying to use OpenCL and fail with : ERROR: clGetPlatformIDs(-1001)
Asked by Cyril Jourdan on 2015-05-29 02:57:16 UTC
Sure you can send me your screenshot on my email you'll find on my profile page. I'm still stuck at section 5 to run kinect2_bridge, after that work yes I guess we have to calibrate the sensor as described.
Asked by Cyril Jourdan on 2015-05-29 03:04:13 UTC
Uhm.... I can't find out your email-addr in your profile page. I can just only see your website and your name. Would you give me an e-mail to 'cheeryun@gmail.com ' . I take pictures and snap shots
Asked by Ros_junior on 2015-05-29 12:00:56 UTC
I also connected ' the robotstudio'? in facebook and there isn't your e-mail address . Mybe I can't see your address in this website
Asked by Ros_junior on 2015-05-29 13:06:36 UTC
(2015-5-30) I understand what './Protonect' mean and I command in terminal $cd /libfreenect2/examples/protonect/bin after that ./Protonect cpu . than I could get screens(ir,depth,camera) .
Asked by Ros_junior on 2015-05-30 08:06:00 UTC
but, I have another question. When I used kinect2 with kinect2 SDK in windows 8.1 , The kinect2 device ran in turnning on inner fan and xbox mark was lighting
Asked by Ros_junior on 2015-05-30 08:11:17 UTC
with libfreenect2 in ubuntu is different running it. I think because maybe work with cpu not graphic card ?? is It right? or not?
after that. how can I use this data in ros rviz??? what is 'rosrun kinect2_bridge' for?
Sorry to I bother you , I need more your help
Asked by Ros_junior on 2015-05-30 08:14:52 UTC
Comments