OpenNI - Error loading Oni file (Bad File extension)
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.Init();
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));
return;
}
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 1.5.4.0 in Ubuntu 12.04, and the file appears to have been created with 1.5.7.10....however, 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,