by c.s.chapman » Fri May 27, 2011 5:26 pm
Hello,
Has anyone tried the Tracking Tools API to Matlab interface with a newer version of Matlab and Tracking tools? I am running Matlab 7.10.0 (R2010a) and Tracking Tools 2.3.2. The load library seems to function OK (typical warnings and functions not found), but I seem get no respone from my Optitrak system. That is, when I run:
>> calllib('NPTrackingTools', 'TT_Initialize');
Nothing happens and a 0 is returned. I'm assuming this is not what is supposed to happen.
When I run:
>> calllib('NPTrackingTools', 'TT_LoadProject', project_file);
It returns a value of 3. What do these return values mean, and where can we learn more about them?
In any case, all of my functions don't do much of anything. However, it does seem to be able to count the cameras. That is, running:
>> calllib('NPTrackingTools', 'TT_CameraCount')
Correctly identifies the number of cameras that are currently attached. Similarly, if I unplug a camera, run "update" and then count the cameras again, it correctly identifies that I have one less.
In any case, I am looking for any way to get the Optitrak data into Matlab in realtime. Any suggestions?
Craig