OpenNI - Error loading Oni file (Bad File extension)

asked 2014-09-25 14:53:53 -0500

altella gravatar image

I am trying to use OpenNI and Nite from ROS Hydro (Ubuntu 12.04, 32 bit). Everything compiles without problems, but in execution, the first task I want to do is load an existing oni file to reproduce its content. After having a look at the working code, I have this piece of code that appears everywhere:

ROS_INFO("Init OpenNi for Point Gesture");
nRetVal = g_context.OpenFileRecording("//home//alberto//desktop//recording.oni", g_player);
if (nRetVal != XN_STATUS_OK)
      printf("Can't open recording %s\n", xnGetStatusString(nRetVal));

The file exists, the path is OK, I have tested it many times, but I always obtain the same error:

 "Can't open recording Bad file extension"

Could it be because the Oni file has been created with a higher version of Open NI? Mine is in Ubuntu 12.04, and the file appears to have been created with, I do not have this version available.

How could I read and open this Oni file without errors? I can not continue with the rest of the application.

Thank you all very much in advance,

edit retag flag offensive close merge delete