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

Revision history [back]

Hello, I use the same platform as you. ubuntu12.04 + hydro + primesense 1.09. OpenNI has been installed with ros. When I use "roslaunch openni2_launch openni2.launch" to get the topics, the problem "No matching device found" appeared. So I searched for the solution and found one that worked out of box. First, you need to download OpenNI2, compile it and install it. The OpenNI2 can be found in https://github.com/OpenNI/OpenNI2. Then copy the include and lib to the system content.

sudo cp -r Include /usr/include/openni2
sudo cp -r Bin/x64-Release/OpenNI2 /usr/lib/
sudo cp Bin/x64-Release/libOpenNI2.* /usr/lib/

And then modify the configure file of openni /usr/lib/pkgconfig/libopenni2.pc. Like this: `prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include/openni2

Name: OpenNI2 Description: A general purpose driver for all OpenNI cameras. Version: 2.2.0.0 Cflags: -I${includedir} Libs: -L${libdir} -lOpenNI2 -L${libdir}/OpenNI2/Drivers -lDummyDevice -lOniFile -lPS1080.so

Hello, I use the same platform as you. ubuntu12.04 + hydro + primesense 1.09. OpenNI has been installed with ros. When I use "roslaunch openni2_launch openni2.launch" to get the topics, the problem "No matching device found" appeared. So I searched for the solution and found one that worked out of box. First, you need to download OpenNI2, compile it and install it. The OpenNI2 can be found in https://github.com/OpenNI/OpenNI2. Then copy the include and lib to the system content.

sudo cp -r Include /usr/include/openni2
sudo cp -r Bin/x64-Release/OpenNI2 /usr/lib/
sudo cp Bin/x64-Release/libOpenNI2.* /usr/lib/

And then modify the configure file of openni /usr/lib/pkgconfig/libopenni2.pc. Like this: `prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include/openni2this:

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include/openni2

Name: OpenNI2
Description: A general purpose driver for all OpenNI cameras.
Version: 2.2.0.0
Cflags: -I${includedir}
Libs: -L${libdir} -lOpenNI2 -L${libdir}/OpenNI2/Drivers -lDummyDevice -lOniFile -lPS1080.so-lPS1080.so

Last, you can test the openni2_launch for you device.