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

How to link OpenNI and NITE as external libraries.

asked 2013-02-26 14:52:11 -0600

moyashi gravatar image

updated 2013-02-26 14:55:19 -0600

I'd like to link OpenNI and NITE to my own package as external libraries.
How can I do it?

I'm using ROS groovy with Ubuntu 12.04.

In order to rosmake my package which uses OpenNI and NITE,
I installed ros-groovy-openni-*.
Next, I compiled and linked it with rosmake and rosmake was successed.

However, when running my package I have a error with
xn::Context::InitFromXmlFile(const XnChar *strFileName, EnumerationErrors *pErrors=NULL) method.

The error is "This operation is invalid".

Surprisingly, the error didn't appear with ROS electric, Ubuntu 10.04, and ros-electric-openni-kinect.
I think that it is a problem of the version of OpenNI and NITE.
So I'm trying to use OpenNI and NITE as external libraries instead of ros packages.

How can I link OpenNI and NITE to my package as external libraries?
Isn't it recommended ?
Any other people who have the same problem with ros-openni-* ?

Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-02-26 21:55:00 -0600

After installing ros-groovy-openni*, you should first uninstall NITE 1.5.2, then install NITE 1.5.2.

As I said here, it seems that uninstalling NITE first is needed... Otherwise some various problems appear.

Let me know,



edit flag offensive delete link more

Question Tools


Asked: 2013-02-26 14:52:11 -0600

Seen: 654 times

Last updated: Feb 26 '13