CheckResult/TT_GetResultString
Posted: Thu Jul 26, 2012 10:54 am
I am working on interfacing with the Tracking Tools 2.5 API in Python using Cython. The only debugging function that appears to be available in the API is CheckResult. However, CheckResult is not defined in either header file (NPTrackingTools.h or trackablesettings.h). In order for me to be able to call CheckResult in Cython, it needs to be in the header file. What do I need to add to the header file to define CheckResult?
Alternatively, if anyone has experience with the Tracking Tools API and Cython (or other python wrappers) and has other suggestions about getting debug information, that would be great as well.
EDIT: After digging around a bit, the only definition for CheckResult was in the markers sample, which calls TT_GetResultString. I am able to successfully wrap TT_GetResultString except apparently for the input of 0. If I enter 0, TT_GetResultString return 'unknown' instead of 'success'.
When I run TT_Initialize(), it returns 0. At this point, I am unsure if 0 means success (it does not appear to) or is some random error. Any help would be much appreciated.
EDIT2: I am able to run things fine for now so I am not in dire need of debugging capabilities right now, but I am still curious as to why TT_GetResultString(0) = 'unknown.'
Alternatively, if anyone has experience with the Tracking Tools API and Cython (or other python wrappers) and has other suggestions about getting debug information, that would be great as well.
EDIT: After digging around a bit, the only definition for CheckResult was in the markers sample, which calls TT_GetResultString. I am able to successfully wrap TT_GetResultString except apparently for the input of 0. If I enter 0, TT_GetResultString return 'unknown' instead of 'success'.
When I run TT_Initialize(), it returns 0. At this point, I am unsure if 0 means success (it does not appear to) or is some random error. Any help would be much appreciated.
EDIT2: I am able to run things fine for now so I am not in dire need of debugging capabilities right now, but I am still curious as to why TT_GetResultString(0) = 'unknown.'