Log of Nuitrack::init(); when using a WIN32 application

Hey guys,

We are looking for a way to capture the details sent to the console when running Nuitrack::init();

When we run nuitrack inside a WIN32 application we dont see any of the initialization reporting. And even if we capture and open a console inside the application we still cant seem to capture the log - as seen when running a console application.

Is it possible for a callback function to be declared that reports each of the initialization step as they occur.
That would allow us to provide more interactive feedback to the end user who right now just sees what looks like a hung application as the device detection processes occur.


Something along the lines of:

nuitrack::connectOnInitialise(std::bind(&NuitrackSample::onInitialise, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3));

NuitrackSample::onInitialise(int statusCode, int errorCode , std:string logline)
{
// statusCode holds the stage of initialisation
// errorCode holdss any error messages
// logline holds any message

}

////////////////////////////////////////////////////////////////////////////////////
// with the callbacks being a log of the initialise process
1 0 “Looking for AstraProPerseeDepthProvider”
2 1 “AstraProPerseeDepthProvider can’t create RGB Stream (VideoCapture device ID is not valid”
3 0 “Looking for video camera”
4 1 “Can’t find video camera!”

This would greatly assist us with making our GUI interface more responsive during initialisation

Kind regards

Westa


ERROR: AstraProPerseeDepthProvider can’t create RGB Stream (VideoCapture device ID is not valid)
DepthProviderManager: AstraProPerseeDepthProvider can’t create RGB Stream (VideoCapture device ID is not valid)
Can’t find video camera!
Can’t find Depth camera!
ERROR: Couldn’t open device ( DeviceOpen using default: no devices found
)
DepthProviderManager: Couldn’t open device ( DeviceOpen using default: no devices found
)
ERROR: Can not create OpenNI depth generator (OpenNI Status: Can’t create any node of the requested type!)
DepthProviderManager: Can not create OpenNI depth generator (OpenNI Status: Can’t create any node of the requested type!)
Create DepthProvider: Realsense2DepthProvider

Hi Westa,

We’ll discuss this request at our next technical meeting.

Thanks Olga,

This will help greatly with integrating nuitrack into windows applications that dont use a console style interface.

Westa