OpenNI UserCalibration.bin and skelton under ubuntu [closed]

asked 2011-10-13 04:01:57 -0500

nkint gravatar image

updated 2014-01-28 17:10:34 -0500

ngrennan gravatar image

Hello, mayebe i'm off topic because i'm not using ROS operating system. but i think that this could be a good place and you folks mayebe could help me. in case, sorry for the off topic.

i'm trying Openframeworks addons ofxOpenNI[1], under ubuntu 10.10 with openni version 1.4.1 and i can compile and i can detect skeltons and use correctly the function XnUserGenerator::GetUserPixels. But i get segmentation fault when i try to access to joint position with user_generator.GetSkeltonCap().GetSkeltonJointPosition

in particular i have seen than in the code i'm using everytime i try to acces to a joint position i fall down in this if branch:

XnSkeletonJointPosition a,b;
user_generator.GetSkeletonCap().GetSkeletonJointPosition(id, rLimb.start_joint, a);
user_generator.GetSkeletonCap().GetSkeletonJointPosition(id, rLimb.end_joint, b);
if(a.fConfidence < 0.3f || b.fConfidence < 0.3f) {
    cout << "dudee" << endl;
    rLimb.found = false; 

everytime i try to access a joint in consolle i have 'dudee' printed out.

I really don't know what to do and i am getting crazy with this problem.

I know i have to use a UserCalibration.bin file, i found it on the net and i'm using it but probabilly i have to redo it with my openni and my kinect version. i don't know how to do it. i've found some sources [2] but i'm getting this error:

userGen.Create : Can't create any node of the requested type! Segmentation fault

some help or also a simple nonsense advice could be appreciated. thanks



edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2013-02-03 07:53:03