Using 2 OpenNI devices
Has anyone used 2 Microsoft Kinect or 2 ASUS Xtion ? How can one do so ? Does ROS allow for 2 OpenNI devices with the same roscore ?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Has anyone used 2 Microsoft Kinect or 2 ASUS Xtion ? How can one do so ? Does ROS allow for 2 OpenNI devices with the same roscore ?
Openni and ROS do support multiple RGBD cameras. The first thing you need to do is make sure you have adequate hardware support. RGBD cameras transmit a lot of data via USB, going beyond what one bus can handle. Thus, you need to make sure that you have two separate USB2.0 buses/hubs available. (For Linux, the command 'lsusb' provides this information.) Once you do that, you can easily just call openni_launch multiple times, like so:
<!-- Entry point for using multiple RGBD devices -->
<launch>
<param name="use_sim_time" value="false" />
<include file="$(find openni_launch)/launch/openni.launch">
<arg name="camera" value="camera1" />
<arg name="device_id" value="#1" />
<arg name="depth_registration" value="true" />
</include>
<include file="$(find openni_launch)/launch/openni.launch">
<arg name="camera" value="camera2" />
<arg name="device_id" value="#2" />
<arg name="depth_registration" value="true" />
</include>
</launch>
Asked: 2013-03-05 23:34:54 -0500
Seen: 865 times
Last updated: Mar 06 '13
OpenNI compilation error, Diamondback, version mobile, ARM
Could NOT find openni [closed]
No devices connected... Waiting for devices to be connected
Convert a 16 bit compressed kinect depth image to something usable?
Asus Xtion Not enough bandwidth
Kinect Installation and Setup on Kinetic
How to install libopenni-sensor-pointclouds0 on Ubuntu 14.04?