Can't run nuitrack ni example

Hi,
I’m trying to run the nuitrack example with open NI.

I 've installed nuitrack and open NI 1.5.4.0-dev

But when I run nuitrack_ni_sample.exe, I get the following error message : Can’t create depth generator with error: Can’t create any node of the requested type!

When I try to compile the example of nuitrackSDK/Example/nuitrack_ni_sample with cmake, I get a lot of error :
In file included from C:\Users\RMS\Documents\SkeletonAnalyser\NuitrackSDK\Examples\nuitrack_ni_gl_sample\src\NiGLSample.h:4,
from C:\Users\RMS\Documents\SkeletonAnalyser\NuitrackSDK\Examples\nuitrack_ni_gl_sample\src\NiGLSample.cpp:1:
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnCppWrapper.h:10116:76: error: macro “XN_VALIDATE_NEW” passed 4 arguments, but takes just 2
XN_VALIDATE_NEW(pTrans, StateChangedCallbackTranslator, handler, pCookie);
^
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnCppWrapper.h:10175:75: error: macro “XN_VALIDATE_NEW” passed 4 arguments, but takes just 2
XN_VALIDATE_NEW(pTrans, StateChangedCallbackTranslator, handler, pCookie);
^
In file included from C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnPlatform.h:61,
from C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnStatus.h:24,
from C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnTypes.h:27,
from C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnOpenNI.h:27,
from C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnCppWrapper.h:27,
from C:\Users\RMS\Documents\SkeletonAnalyser\NuitrackSDK\Examples\nuitrack_ni_gl_sample\src\NiGLSample.h:4,
from C:\Users\RMS\Documents\SkeletonAnalyser\NuitrackSDK\Examples\nuitrack_ni_gl_sample\src\NiGLSample.cpp:1:
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/Win32/XnPlatformWin32.h:233:11: error: ‘warning’ has not been declared
__pragma(warning(push))
^~~~~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnCppWrapper.h:1399:3: note: in expansion of macro ‘XN_PRAGMA_START_DISABLED_WARNING_SECTION’
XN_PRAGMA_START_DISABLED_WARNING_SECTION(XN_UNALIGNED_ADDRESS_WARNING_ID);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/Win32/XnPlatformWin32.h:233:24: error: expected ‘;’ at end of member declaration
__pragma(warning(push))
^
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnCppWrapper.h:1399:3: note: in expansion of macro ‘XN_PRAGMA_START_DISABLED_WARNING_SECTION’
XN_PRAGMA_START_DISABLED_WARNING_SECTION(XN_UNALIGNED_ADDRESS_WARNING_ID);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/Win32/XnPlatformWin32.h:234:11: error: ‘warning’ has not been declared
__pragma(warning(disable: warnings))
^~~~~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnCppWrapper.h:1399:3: note: in expansion of macro ‘XN_PRAGMA_START_DISABLED_WARNING_SECTION’
XN_PRAGMA_START_DISABLED_WARNING_SECTION(XN_UNALIGNED_ADDRESS_WARNING_ID);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/Win32/XnPlatformWin32.h:234:26: error: expected ‘)’ before ‘:’ token
__pragma(warning(disable: warnings))
~ ^
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnCppWrapper.h:1399:3: note: in expansion of macro ‘XN_PRAGMA_START_DISABLED_WARNING_SECTION’
XN_PRAGMA_START_DISABLED_WARNING_SECTION(XN_UNALIGNED_ADDRESS_WARNING_ID);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/Win32/XnPlatformWin32.h:234:26: error: expected ‘)’ before ‘:’ token
__pragma(warning(disable: warnings))
~ ^
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnCppWrapper.h:1399:3: note: in expansion of macro ‘XN_PRAGMA_START_DISABLED_WARNING_SECTION’
XN_PRAGMA_START_DISABLED_WARNING_SECTION(XN_UNALIGNED_ADDRESS_WARNING_ID);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/Win32/XnPlatformWin32.h:237:11: error: ‘warning’ has not been declared
__pragma(warning(pop))
^~~~~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnCppWrapper.h:1406:3: note: in expansion of macro ‘XN_PRAGMA_STOP_DISABLED_WARNING_SECTION’
XN_PRAGMA_STOP_DISABLED_WARNING_SECTION;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/Win32/XnPlatformWin32.h:237:2: error: ‘int xn::AudioMetaData::__pragma(int)’ cannot be overloaded with ‘int xn::AudioMetaData::__pragma(int)’
__pragma(warning(pop))
^~~~~~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnCppWrapper.h:1406:3: note: in expansion of macro ‘XN_PRAGMA_STOP_DISABLED_WARNING_SECTION’
XN_PRAGMA_STOP_DISABLED_WARNING_SECTION;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/Win32/XnPlatformWin32.h:233:2: note: previous declaration ‘int xn::AudioMetaData::__pragma(int)’
__pragma(warning(push))
^~~~~~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnCppWrapper.h:1399:3: note: in expansion of macro ‘XN_PRAGMA_START_DISABLED_WARNING_SECTION’
XN_PRAGMA_START_DISABLED_WARNING_SECTION(XN_UNALIGNED_ADDRESS_WARNING_ID);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnCppWrapper.h: In member function ‘int xn::AudioMetaData::__pragma(…)’:
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/Win32/XnPlatformWin32.h:228:44: error: only constructors take member initializers
#define XN_UNALIGNED_ADDRESS_WARNING_ID 4366
^~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/Win32/XnPlatformWin32.h:234:28: note: in definition of macro ‘XN_PRAGMA_START_DISABLED_WARNING_SECTION’
__pragma(warning(disable: warnings))
^~~~~~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnCppWrapper.h:1399:44: note: in expansion of macro ‘XN_UNALIGNED_ADDRESS_WARNING_ID’
XN_PRAGMA_START_DISABLED_WARNING_SECTION(XN_UNALIGNED_ADDRESS_WARNING_ID);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/Win32/XnPlatformWin32.h:228:44: error: expected identifier before numeric constant
#define XN_UNALIGNED_ADDRESS_WARNING_ID 4366
^~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/Win32/XnPlatformWin32.h:234:28: note: in definition of macro ‘XN_PRAGMA_START_DISABLED_WARNING_SECTION’
__pragma(warning(disable: warnings))
^~~~~~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnCppWrapper.h:1399:44: note: in expansion of macro ‘XN_UNALIGNED_ADDRESS_WARNING_ID’
XN_PRAGMA_START_DISABLED_WARNING_SECTION(XN_UNALIGNED_ADDRESS_WARNING_ID);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/Win32/XnPlatformWin32.h:228:44: error: expected ‘{’ before numeric constant
#define XN_UNALIGNED_ADDRESS_WARNING_ID 4366
^~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/Win32/XnPlatformWin32.h:234:28: note: in definition of macro ‘XN_PRAGMA_START_DISABLED_WARNING_SECTION’
__pragma(warning(disable: warnings))
^~~~~~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnCppWrapper.h:1399:44: note: in expansion of macro ‘XN_UNALIGNED_ADDRESS_WARNING_ID’
XN_PRAGMA_START_DISABLED_WARNING_SECTION(XN_UNALIGNED_ADDRESS_WARNING_ID);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/Win32/XnPlatformWin32.h:228:44: warning: no return statement in function returning non-void [-Wreturn-type]
#define XN_UNALIGNED_ADDRESS_WARNING_ID 4366
^~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/Win32/XnPlatformWin32.h:234:28: note: in definition of macro ‘XN_PRAGMA_START_DISABLED_WARNING_SECTION’
__pragma(warning(disable: warnings))
^~~~~~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnCppWrapper.h:1399:44: note: in expansion of macro ‘XN_UNALIGNED_ADDRESS_WARNING_ID’
XN_PRAGMA_START_DISABLED_WARNING_SECTION(XN_UNALIGNED_ADDRESS_WARNING_ID);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\RMS\Documents\SkeletonAnalyser\NuitrackSDK\Examples\nuitrack_ni_gl_sample\src\NiGLSample.h:4,
from C:\Users\RMS\Documents\SkeletonAnalyser\NuitrackSDK\Examples\nuitrack_ni_gl_sample\src\NiGLSample.cpp:1:
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnCppWrapper.h: In static member function ‘static XnStatus xn::StateChangedCallbackTranslator::RegisterToUnderlying(xn::_XnRegisterStateChangeFuncPtr, XnNodeHandle, xn::StateChangedHandler, void*, void*&)’:
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnCppWrapper.h:10116:4: error: ‘XN_VALIDATE_NEW’ was not declared in this scope
XN_VALIDATE_NEW(pTrans, StateChangedCallbackTranslator, handler, pCookie);
^~~~~~~~~~~~~~~
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnCppWrapper.h: In member function ‘XnStatus xn::GeneralIntCapability::RegisterToValueChange(xn::StateChangedHandler, void*, void*&)’:
C:/Users/RMS/Documents/SkeletonAnalyser/NuitrackSDK/Examples/nuitrack_ni_gl_sample/OpenNI/Include/XnCppWrapper.h:10175:3: error: ‘XN_VALIDATE_NEW’ was not declared in this scope
XN_VALIDATE_NEW(pTrans, StateChangedCallbackTranslator, handler, pCookie);
^~~~~~~~~~~~~~~
mingw32-make[2]: *** [CMakeFiles\nuitrack_ni_gl_sample.dir\build.make:63: CMakeFiles/nuitrack_ni_gl_sample.dir/src/NiGLSample.cpp.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:75: CMakeFiles/nuitrack_ni_gl_sample.dir/all] Error 2
mingw32-make: *** [Makefile:83: all] Error 2

Thanks by advance,
Regards

Based on the logs, you are using Windows. Please provide us with the following info:

  • what sensor are you using?
  • what compiler do you use to build nuitrack_ni_gl sample?

I’am using intel realSense D435i with mingw32 to compile.

nuitrack_ni_gl_sample doesn’t work with RealSense cameras as it works only with the sensors with OpenNI support.

ok thank you for your reply, I have problem with the efficiency of the skeleton tracking when I crouch. Is it normal ?

thanks by advance

Nuitrack is not always able to correctly detect complex poses. At the moment, we are preparing for the release of Nuitrack AI beta, which is designed to recognize poses of this complexity.