Skip to content

tobiipro/prosdk-addons-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prosdk-addons-c - Calibration validation

What is it

Add-ons for the Tobii Pro SDK.

alt text

The Tobii Pro SDK is available at: https://www.tobiipro.com/product-listing/tobii-pro-sdk/
Documentation to the API: http://developer.tobiipro.com/c.html
Getting started: http://developer.tobiipro.com/c/c-getting-started.html

Do not hesitate to contribute to this project and create issues if you find something that might be wrong or could be improved.

Installation

Common instructions

  • Download or clone this folder.
  • Download the Tobii Pro SDK C for your operating system.

For Windows

  • Unzip the Tobii Pro SDK archive to a new directory sdk in root of the addons folder.
  • Open Visual Studio and load the solution in the win32 directory.
  • Build for the desired configuration (i.e. Debug/Release and x86/x64).
  • In order to use the library you need to manually load two DLLs (tobii_research_addons.dll and tobii_research.dll) in your source or link against their respective lib file. See sample project.

For Linux

  • Extract the Tobii Pro SDK tarball to a new directory sdk in root of the addons folder:
mkdir sdk
tar -xf <TobiiPro.SDK.C_Binding.LINUX.tar.gz> -C sdk
  • Build everything with make:
make all
  • In order to use the library you need to link against two shared libraries: libtobii_research.so and libtobii_research_addons.so. E.g.:
gcc -o test test.c -ltobii_research -ltobii_research_addons

For macOS:

  • Extract the Tobii Pro SDK tarball to a new directory sdk in root of the addons folder:
mkdir sdk
tar -xf TobiiPro.SDK.C_Binding.OSX.tar.gz -C sdk
  • Build everything with make:
make all
  • In order to use the library you need to link against two shared libraries: libtobii_research.so and libtobii_research_addons.so. E.g.:
clang -o test test.c -ltobii_research -ltobii_research_addons

Features

Calibration Validation

The package contains functionality for validating calibrations by calculating various statistics for different stimuli points. Note: There is no functionality for actually presenting the stimuli points on screen.

Example

See sample.c in the source directory for a working example.

Also, see screen_based_calibration_validation.h for documentation of the API.