With this SDK you will be able to easily find and get data from your Tobii eye tracker. If you are new to eye tracking we recommend that you spend some time exploring the content in Tobii Pro's Learn & Support section of the Tobii Pro website . There you will find a lot of information about how eye tracking works in general and how to design studies.
In the Common concepts section of this website, you will find information about concept referenced in the SDK documentation which are common for all SDK languages. This includes, but are not limited to, things like the different coordinate systems used as well as how time stamps are defined.
Visit our download site for the Pro SDK , and download the latest version of the Tobii Pro SDK Matlab/Octave Binding for your platform. The package includes all files you will need to develop an application that communicates with a Tobii Pro eye tracker. Extract the files and put them where you usually keep your development files.
After extracting the files to the desired folder, the Matlab/Octave command
addpath(genpath('path')) in order to add the folder where the Pro SDK is located. Now you should be able to access the Pro SDK methods and classes from anywhere in the Matlab or Octave environment.
* Note: HMD eye trackers are currently not supported by Eye Tracker Manager.
Most eye tracking applications follow the same pattern in terms of in which order functionality is used. The order is usually as follows:
To do this with the Pro SDK is very simple:
Start with creating an
EyeTrackingOperations object and use either the
find_all_eyetrackers function to get a list of available eye trackers or the
get_eyetracker function that returns one eye tracker. The last function requires an URI to the eye tracker.
The objects returned from these functions are instances of
EyeTracker objects that you can easily interact with.
To calibrate the eye tracker, use either a
ScreenBasedCalibration, or a
HMDBasedCalibration object (depending on the type of eye tracker). The
HMDBasedCalibration class requires an
EyeTracker object in the constructor. More information about how a calibration works can be found in the section Calibration.
When you have the
EyeTracker object and want to listen to gaze data, use either the function
get_hmd_gaze_data (depending on the type of eye tracker) and the data will be returned as
On the Step-by-step page, there's a detailed description on how to perform these steps.
A quick and easy way to create an eye tracking study is by using Psychtoolbox. You can find a comprehensive guide in the form of a code example among the Matlab/Octave code examples in the SDK reference guide. Just look for "PsychToolBoxExample" under the Examples node.