Openni and Kinect on Hydro, OSX 10.8
I believe I have a clean install of Hydro on my OS X 10.8. This I did through Hydro tutorial for OSX.
I did the Desktop-Full Install through rosinstall_generator desktop_full --rosdistro hydro --deps --wet-only --tar > hydro-desktop-full-wet.rosinstall
and Hence built the packages.
I see that the "openni" stack is missing and I cannot run commands like
roslaunch openni_launch openni.launch
I also installed openni later through brew install openni
and below is the info of that.
openni: stable 1.5.7.10, devel 1.5.8.5, HEAD
http://www.openni.org/
/usr/local/Cellar/openni/1.5.7.10 (1614 files, 33M) *
Built from source
From: https://github.com/Homebrew/homebrew/commits/master/Library/Formula/openni.rb
==> Dependencies
Build: automake ✔, libtool ✔, doxygen ✔
Required: libusb ✔
==> Options
--universal
Build a universal binary
--devel
install development version 1.5.8.5
--HEAD
install HEAD version
After installing openni from brew, I built all the packages again. But still the openni stack is missing.
Now that openni is installed from brew, I followed the instructions @William has suggested me.
I did the following :
$ mkdir ~/openni_ws
$ cd ~/openni_ws
$ source /path/to/hydro/install/setup.bash
$ rosinstall_generator openni_launch --deps --exclude RPP --tar > openni-hydro.rosinstall
$ wstool init src -j8 openni-hydro.rosinstall
When I ran this : rosdep install --from-paths ./src --ignore-src -y
, I got the following error.
openni_camera: No definition of [libopenni-sensor-primesense-dev] for OS [osx]
Hence I did the following command :
rosdep install --from-paths ./src --ignore-src -y --skip-keys "libopenni-sensor-primesense-dev libopenni-dev"
After this I did catkin_make install
and got an error stream from which I inferred that is is not able to find the libopenni library, which I installed through brew already(as explained in first part).
-- checking for module 'libopenni'
-- package 'libopenni' not found
CMake Error at /usr/local/Cellar/cmake/2.8.12.2/share/cmake/Modules/FindPkgConfig.cmake:279 (message):
A required package was not found
Call Stack (most recent call first):
(Gist to error stream : https://gist.github.com/karthikkovala... )
I did brew unlink and link as well to make sure the openni that I installed from brew is properly linked.
I want to use my kinect through openni stack on ROS. This generally comes by default in Ubuntu. Could someone explain how I can do it on my Machine with OS X 10.8. I am really looking forward to his since the whole of my work depends on Kinect based TurtleBot navigation.
POST EDIT :
After @demmeln suggested the procedure, I get an error that I believe is related to the compiler somehow. After I do catkin_make install
, I get the following errors : (I am running xcode 5.1 at present and OSX 10.8). I am not clear on how to solve this.
Source space: /Users/Siva/openni_ws/src
Build space: /Users/Siva/openni_ws/build
Devel space: /Users/Siva/openni_ws/devel
Install space: /Users/Siva/openni_ws/install
####
#### Running command: "make cmake_check_build_system" in "/Users/Siva/openni_ws/build"
####
####
#### Running command: "make install -j4 -l4" in "/Users/Siva/openni_ws/build"
####
[ 6%] Built target openni_camera_gencfg ...
Well it is not finding `openni`, but I don't know why. You can also try libfreenect.
The openni libraries are installed at `/usr/local/Cellar/openni/1.5.7.10`. Is this creating a problem by any chance ? Should I modify any environment variable? Is the CMakeLists.txt going wrong some where? I installed freenect anyways but I need Openni for openni_launch on ros. Kindly Help