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

How can I use Kinect v2 with ROS in Ubuntu 14.04

asked 2015-05-18 01:15:31 -0500

Ros_junior gravatar image

updated 2015-05-18 02:25:27 -0500

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

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-05-18 03:25:16 -0500

updated 2015-05-28 04:29:45 -0500

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/micro... . 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
edit flag offensive delete link more

Comments

I really thank you for your advise. I try to follow your link. and I have some wodering parts.

Ros_junior gravatar image Ros_junior  ( 2015-05-25 13:18:48 -0500 )edit

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

Ros_junior gravatar image Ros_junior  ( 2015-05-25 13:30:02 -0500 )edit

and I command in my turminal

$cd ~/catkin_ws/src

$gedit CMakeLists.txt

Ros_junior gravatar image Ros_junior  ( 2015-05-25 13:31:56 -0500 )edit

and then copy the ' #LibUSB GET_ ~~~~~ bla bla bla'

and paste it in CMakeLists.txt 48~ 50 line

Do I follow right way???

Ros_junior gravatar image Ros_junior  ( 2015-05-25 13:35:27 -0500 )edit

link text

here is screen shot link

Ros_junior gravatar image Ros_junior  ( 2015-05-25 13:38:12 -0500 )edit

And, I have to use Kinect V2 beacause I can't buy v1 anymore in Korea T T

Ros_junior gravatar image Ros_junior  ( 2015-05-25 13:40:25 -0500 )edit

I can't open your screenshot. I just received my kinect2 so I'll try as well and let you know if that works.

Cyril Jourdan gravatar image Cyril Jourdan  ( 2015-05-27 10:15:37 -0500 )edit

Thank you T.T . I'm waiting your answer

Ros_junior gravatar image Ros_junior  ( 2015-05-27 10:59:37 -0500 )edit

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.

Cyril Jourdan gravatar image Cyril Jourdan  ( 2015-05-28 03:44:09 -0500 )edit

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 ?

Cyril Jourdan gravatar image Cyril Jourdan  ( 2015-05-28 05:06:10 -0500 )edit

why not run opennilaunch and view in rviz?

Raman gravatar image Raman  ( 2015-05-28 09:57:11 -0500 )edit

That worked for the kinect v1, but Protonect is a libfreenect2 example, not linked to ROS anyway.

Cyril Jourdan gravatar image Cyril Jourdan  ( 2015-05-28 10:32:52 -0500 )edit

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

Ros_junior gravatar image Ros_junior  ( 2015-05-28 14:36:47 -0500 )edit

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.

Ros_junior gravatar image Ros_junior  ( 2015-05-29 00:35:33 -0500 )edit

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.

Ros_junior gravatar image Ros_junior  ( 2015-05-29 00:41:43 -0500 )edit

Do I have to do this 'section 6 'Calibrate your sensor~' ? https://github.com/code-iai/iai_kinect2

Ros_junior gravatar image Ros_junior  ( 2015-05-29 00:59:09 -0500 )edit

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)

Cyril Jourdan gravatar image Cyril Jourdan  ( 2015-05-29 02:57:16 -0500 )edit

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.

Cyril Jourdan gravatar image Cyril Jourdan  ( 2015-05-29 03:04:13 -0500 )edit

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

Ros_junior gravatar image Ros_junior  ( 2015-05-29 12:00:56 -0500 )edit

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

Ros_junior gravatar image Ros_junior  ( 2015-05-29 13:06:36 -0500 )edit

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

Ros_junior gravatar image Ros_junior  ( 2015-05-30 08:06:00 -0500 )edit

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

Ros_junior gravatar image Ros_junior  ( 2015-05-30 08:11:17 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2015-05-18 01:14:52 -0500

Seen: 2,334 times

Last updated: May 28 '15