![]() |
OpenNI 1.5.7
|
Sometimes an application enumerates for a specific node, and gets zero results. Aside for the obvious reason where no module implementing this node type is installed, other reasons may occur - a module might be installed but have no license, or a needed hardware device is currently disconnected.
OpenNI enables the application to get a full list of modules that failed to enumerate, and why each one failed. The list of 'failed' modules is obtained by using the xn::EnumerationErrors object.
For example, the following code tries to create a xn::HandsGenerator node, and if enumeration failed, checks all errors: