Mainstream OpenNI support for Orbbec cameras

@bit-pirate I tried your suggestion there and I got the simple NI viewer running with that.

In the end I also got it running in ROS (could view pcl in RViz) I didn’t do any test in relation to correct depth calculations etc.
So here is how I got it running. I downloaded the Linux driver from the Dropbox. I replaced the library for OpenNi2 in /usr/lib with the one in Redist folder of the download. I also added the Orbbec library to /usr/lib/OpenNi2/Driver/ (there are already a few there) and I also replaced the libOniFile.so in that folder. Don’t forget to also copy the .ini file (just to be sure).
Then I also adjusted the .pc file which is in /usr/lib/pkgconfig/ I added the Orbbec library there. Then I recompiled the openni2_camera package of ROS and launched it through the openni2_launch package.

This is more like a temporary fix. Would appreciate it if the drivers where opensource available or neatly incorporated in OpenNi2. We would in the end like to run it on a Tegra.

Reminder: backup your original .so files before replacing them.

1 Like