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'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 concepts 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 Tobii Pro SDK , and download the latest version of the Tobii Pro SDK Matlab 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 command addpath(genpath('path'))
in order to add the folder where the Tobii Pro SDK is located. Now you should be able to access the Tobii Pro SDK methods and classes from anywhere in the Matlab environment.
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 Tobii 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 a ScreenBasedCalibration
object. The ScreenBasedCalibration
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 the function get_gaze_data
and the data will be returned as GazeData
.
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 code examples in the SDK reference guide. Just look for "PsychToolBoxExample" under the Examples node.