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

Accessing different Kinects with Openni_launch

asked 2012-10-26 11:08:17 -0600

MartinW gravatar image

updated 2014-04-20 14:09:21 -0600

ngrennan gravatar image

Hello all,

I was wondering how I can change which kinect the openni_launch openni.launch file selects? We have two kinects running on our machine and I want my program to use a specific one.

Thanks in advance!

Kind Regards, Martin

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-10-26 19:38:55 -0600

Hi Martin! (it is funny to greet someone with the same name as yourself xD)

openni_launch has a parameter named device_id that allows you to select the kinect that you want to use:

<!-- device_id can have the following formats:
     "B00367707227042B": Use device with given serial number
     "#1"              : Use first device found
     "2@3"             : Use device on USB bus 2, address 3
     "2@0"             : Use first device found on USB bus 2
<arg name="device_id" default="#1" />

so, for instance, you can do:

roslaunch openni_launch openni.launch device_id:=whateveryourdeviceidis

I hope this helps

edit flag offensive delete link more



I am actually having problem in making one device work..Only openni_camera package is working..Can you give me some suggestions on making Kinect work wih ROS Fuerte and ubuntu 12.04

sai gravatar image sai  ( 2012-10-26 23:28:27 -0600 )edit

Well... unfortunately the OpenNI driver is known to be not very stable on ROS Fuerte + Ubuntu 12.04. This question might shed some light:

Martin Peris gravatar image Martin Peris  ( 2012-10-27 00:21:57 -0600 )edit

answered 2012-10-30 08:23:45 -0600

MartinW gravatar image

Hey Martin!

I found that .launch file and was able to change the parameters in there. Unfortunately, I have come to another problem. My colleague is working with the libfreenect drivers and I am working with the openni drivers, and we are trying to combine our programs using two separate Kinects. However, we seem to be unable to run both in parallel. Is there a way to run two Kinects using two different drivers?

Kind Regards, Martin

edit flag offensive delete link more


Hi Martin. Sorry, I haven't worked with libfreenect yet so I couldn't say... Maybe you should open a new question for that.

Martin Peris gravatar image Martin Peris  ( 2012-10-30 14:48:50 -0600 )edit

Question Tools


Asked: 2012-10-26 11:08:17 -0600

Seen: 372 times

Last updated: Oct 30 '12