FreeTrack Forum

Welcome, you're not connected. ( Log in - Register )

RSS >  Interfacing FreeTrack with Matlab
Ezraneut #1 10/02/2012 - 13h29

Class : Apprenti
Posts : 18
Registered on : 06/02/2012

Off line

Hi,

I'm working on an IR tracking project for which i am using the FreeTrack software.

I need to log the data from the 6DOF so i can research ie how precise the system I made is. I want to use Matlab for this. I found the .m files in the SDK folder, but am not sure if they are used for this.

Where do I start when i want to save the 6DOF data?

Gr.
Ezra
Ezraneut #2 13/02/2012 - 12h16

Class : Apprenti
Posts : 18
Registered on : 06/02/2012

Off line

I'm getting the following error when I try to compile 'compile_freetrack.m':

mex -output freetrack "src/mex_dll_core.c" "src/freetrack_mex_interface.c"
Writing library for freetrack.mexw32
c:\docume~1\599013\locals~1\temp\mex__d~1\mex_dll_core.obj .text: undefined reference to '_max'

 C:\PROGRA~1\MATLAB\R2011B\BIN\MEX.PL: Error: Link of 'freetrack.mexw32' failed.

Error using mex (line 206)
Unable to complete successfully.

Error in build_mex (line 84)
eval(build_command)
Error in compile_freetrack (line 27)
build_mex('freetrack',src_files,[],[],[],[],debug, verbose);

Does anybody know what might be the problem? FYI, I cant find the folder /mex__d~1/ and also the 'd' in the folder name changes every time.
Edited by Ezraneut on 13/02/2012 at 12h19.
Ezraneut #3 14/02/2012 - 12h07

Class : Apprenti
Posts : 18
Registered on : 06/02/2012

Off line

I figured out my own problem: I uncommented the lines:

#define max(a,b) ((a)>(b)? (a):(b))
#define min(a,b) ((a)<(b)? (a):(b))

in mex_dll_core.h, and now compiling works.

 >  Fast reply

Message

 >  Stats

1 user(s) connected during the last 10 minutes (0 member(s) and 1 guest(s)).