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 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, use Matlab's 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 environment.
The Eye Tracker Manager (ETM) is an independent tool that can be handy to use when developing eye tracking applications. With the ETM you can browse and change settings, as well as perform calibrations, on all screen based eye trackers* compatible with the Pro SDK as well as update the firmware on some eye tracker models. The ETM can also be used to troubleshoot your own application for connection errors since if the ETM can find and interact with an eye tracker, then the SDK should be able to do the same. The ETM can be downloaded from here .
* 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.