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.
The Tobii Pro SDK for .NET is designed to be a natural part of the .NET Framework and, as such, there are two ways you can install it; either by downloading it and installing it manually, or by using NuGet which requires an internet connection.
If you do not already have NuGet installed, you can download and install it from here .
To install the Pro SDK with NuGet in Visual Studio (2017), follow these steps:
Visit our download site for the Pro SDK , and download the latest version of the Tobii Pro SDK .NET Binding. 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.
Since the Tobii Pro SDK is using some other DLLs needed to communicate with the eye trackers, make sure they get included in the build by including them in your project. To do this, follow these steps:
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 the
EyeTrackingOperations, a static class residing in
Use either the
FindAllEyeTrackers function to get a list of available eye trackers or the
GetEyeTracker function that only returns one eye tracker specified by the eye tracker URI.
The objects returned from the functions
GetEyeTracker are instances of the class
Through those objects you can interact with the eye trackers.
To calibrate the eye tracker, use either a
ScreenBasedCalibration or a
HMDBasedCalibration object (depending on the type of eye tracker).
ScreenBasedCalibration / HMDBasedCalibration class requires an
IEyeTracker object in the constructor.
More information about how a calibration works can be found in the section Calibration.
When you have the
IEyeTracker object and want to subscribe to gaze data, subscribe to either the
GazeDataReceived or the
HMDGazeDataReceived event (depending on the type of eye tracker).
The data will be available as