Hi,
I don't know if I am using the RB_LoadProfile function properly.
When going through the NPRESULT parameters, (in C++) I get an error at every paramater saying:
error C2065: 'InvalidFile' : undeclared identifier
error C2065: 'InvalidLicense' : undeclared identifier
error C2065: 'InvalidProfileCameraCount' : undeclared identifier
(etc..)
In void main, I call LoadProfile(filename)
In Void LoadProfile, I call RB_LoadProfile and check every parameter.
Thanks in advance
I just realized that there is no error for NPRESULT_SUCCESS
So, are the other parameters actually not defined, or how can I access them to gain more information on the why the call did not succeed?
Thanks
RB_LoadProfile
Re: RB_LoadProfile
I'll make sure these get in the next version of the rigid body header file, but for now, you can just add these to it:
#define NPRESULT_FileNotFound 1
#define NPRESULT_LoadFailed 2
#define NPRESULT_Failed 3
#define NPRESULT_CamerasAlreadyStarted 4
#define NPRESULT_CamerasNotRunning 5
#define NPRESULT_ProfileAlreadyLoaded 6
#define NPRESULT_CamerasRunning 7
#define NPRESULT_InvalidFile 8
#define NPRESULT_InvalidProfileCameraCount 9
#define NPRESULT_UnableToInitializeOptiTrackCameras 10
#define NPRESULT_InvalidLicense 11
#define NPRESULT_NoProfileLoaded 12
#define NPRESULT_PointCloudNotInitialized 13
#define NPRESULT_NoFrameAvailable 14
#define NPRESULT_UnableToAccessCameras 15
#define NPRESULT_FileNotFound 1
#define NPRESULT_LoadFailed 2
#define NPRESULT_Failed 3
#define NPRESULT_CamerasAlreadyStarted 4
#define NPRESULT_CamerasNotRunning 5
#define NPRESULT_ProfileAlreadyLoaded 6
#define NPRESULT_CamerasRunning 7
#define NPRESULT_InvalidFile 8
#define NPRESULT_InvalidProfileCameraCount 9
#define NPRESULT_UnableToInitializeOptiTrackCameras 10
#define NPRESULT_InvalidLicense 11
#define NPRESULT_NoProfileLoaded 12
#define NPRESULT_PointCloudNotInitialized 13
#define NPRESULT_NoFrameAvailable 14
#define NPRESULT_UnableToAccessCameras 15