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

Can you use multiple Kinects with openni_launch?

asked 2012-12-03 13:28:48 -0600

MartinW gravatar image

updated 2016-10-24 09:01:43 -0600

ngrennan gravatar image

Hello,

We are using two kinects on our project and use openni_launch to access them. One program uses openni_launch openni.launch device_id:=#1 camera:=kinect1 and the other uses openni_launch openni.launch device_id:=#2 camera:=kinect2.

Both of these programs work separately but when we try to run both in parallel, the second kinect to launch doesn't respond. Is there a way to access multiple kinects at the same time?

Kind Regards, Martin

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-12-03 13:44:22 -0600

Are your devices connected to the same USB hub? I had problems with that before.

Make sure that each Kinect is connected to an independent hub on the mother board.

edit flag offensive delete link more

Comments

It appears that way from the outside. It's connected to a laptop and the two kinects are plugged in on opposing sides of the computer. Is there a way to check in the terminal?

MartinW gravatar image MartinW  ( 2012-12-03 14:25:23 -0600 )edit

You can take a look at the kernel messages when you plug in the Kinects. You should look for something like:

[239890.490560] usb 1-1.3: new high speed USB device number 5 using ehci_hcd

[239995.822980] usb 5-1.4: new high speed USB device number 3 using xhci_hcd

Martin Peris gravatar image Martin Peris  ( 2012-12-03 14:33:45 -0600 )edit

If I am not mistaken, this means that one kinect is connected to the bus 1 and the other to bus 5

Martin Peris gravatar image Martin Peris  ( 2012-12-03 14:36:03 -0600 )edit

Ahhh, yes. I checked out where the kinects were connected to and took this screenshot.(http://imgur.com/AAmUh) I believe they are connected on a separate bus. Do you have any other ideas? Thanks for your help!

MartinW gravatar image MartinW  ( 2012-12-04 08:05:21 -0600 )edit

mmmm yeah, they seem connected to separate buses. Are you trying to visualize both point clouds with rviz? If you are, remember to set a tf transform between both kinects, otherwise you will not be able to visualize the point clouds.

Martin Peris gravatar image Martin Peris  ( 2012-12-04 21:40:07 -0600 )edit

Thanks, Martin. We discovered that they were connected to two separate buses. Now the two kinects can run on the laptop, slowly, ha ha!

MartinW gravatar image MartinW  ( 2013-01-08 08:15:38 -0600 )edit

Dear MartinW, I've a request to you. I am going to start a bachelor thesis where i've to work on multiple kinect whish has to supported by open source program. can you please write here how you prepare your pc so that you could connect both the kinects. where can i code to chage the functions or develop the system? I highly appriciate your reply. Thank you.

Asif gravatar image Asif  ( 2013-11-04 23:14:49 -0600 )edit

Hello Asif, I think you just need to make sure the Kinects are running on separate buses and then you can just run openni_launch with the different device IDs to run multiple Kinects. You should be able to do this fairly easily, just make sure you have enough ports and processing power on your comp!

MartinW gravatar image MartinW  ( 2013-11-09 07:10:57 -0600 )edit

Question Tools

Stats

Asked: 2012-12-03 13:28:48 -0600

Seen: 1,773 times

Last updated: Dec 03 '12