Skip to main content

Interface to Tobii eye trackers using Tobii Pro SDK

Project description

Downloads Citation Badge PyPI Latest Release image DOI

Usage instructions for using the Titta class (through its TittaMex and TittaPy interfaces) are found in the Titta documentation.

Building the mex files

Run makeTittaMex.m to build the mex file. You have to do this first if you want to use Titta from Octave, mex files for Octave are no longer bundled with Titta. However, it should be as simple as running that function once, since everything needed is contained in this repository. Mex files for MATLAB (Windows and Linux) are provided in this repository.

32-bit builds are no longer supported on Windows (they have never been on Linux). The last version of Titta/TittaMex supporting 32-bit Matlab is available here.

For building the Linux mex file the default gcc version 11.2.0 included with Ubuntu 22.04 was used. (The mex file currently does not build with gcc 9.3.0 provided in the mingw64 distribution that comes with Octave 6.4.0 on Windows.) For compatibility with an earlier version of Ubuntu, either install the right GLIBCXX version or recompile following the instructions here. See this issue for more information.

Working on the source

The enclosed Titta.sln file is to be opened and built with Visual Studio 2022 (last tested with version 17.8.4).

Required environment variables

Some environment variables must be set when working on the code or building it from Visual Studio. Here are the values i used (at the time of writing):

  • MATLAB_ROOT: C:\Program Files\MATLAB\R2023b
  • PYTHON_ROOT: C:\Program Files\PsychoPy

Dependencies

readerwriterqueue

readerwriterqueue located at deps/include/readerwriterqueue is required for compiling Titta. Make sure you clone the Titta repository including all submodules so that this dependency is available.

Tobii Pro SDK

To update the Tobii Pro C SDK used to build Titta against, you need to manually put the some files in the right place.

  1. Before you do so, for Windows, the tobii_research.dll needs to be renamed to tobii_research_v2.dll (N.B. version 1 is static, you'll never have to update this) not clash with the dll for SDK version 1.x. To do so, open an x64 Native tools command prompt for Visual Studio and run the tools\change_dll_name.py script on the downloaded dll.
  2. And before you do so, for Linux, the soname for tobii_research.so.2.x.x needs to be changed to tobii_research.so.2 as it is not interchangable with tobii_research.so.1 and we need to ensure the right version is loaded (N.B. version 1 is static, you'll never have to update tobii_research.so.1.11.0). To do so, issue: patchelf --set-soname libtobii_research.so.2 libtobii_research.so.2.x.x, where libtobii_research.so.2.x.x is the file to modify.
  3. The *.h include files are placed in \SDK_wrapper\deps\include\SDKv2 (you don't need to touch \SDKv1, it won't be updated).
  4. The Windows tobii_research_v2.lib link library generated in step 1 is placed in \SDK_wrapper\deps\lib.
  5. The *.dll and *.so files are placed in the respective output directories, \SDK_wrapper\TittaMex\64\Windows and \SDK_wrapper\TittaMex\64\Linux, respectively. For Linux, create symbolic links of tobii_research.so.2.x.x to tobii_research.so.2 and tobii_research.so.

PsychoPy and PyBind11

Please note that the code for the Python wrapper is currently not actively maintained and will not build as is now. However, assuming its updated, the following steps will build the code:

  1. Make sure the PsychoPy version you want to work with is installed.
  2. Make sure the PYTHON_ROOT environment variable is set to the location of your PsychoPy installation.
  3. Install PyBind11: in the root folder of your PsychoPy installation, execute python -m pip install pybind11. Alternatively, install pybind11 through a package manager like vcpkg.
  4. As per here, make sure you have the Python Development workload for visual studio installed. Note however that you can unselect the Python 3 installation, the web tools and the miniconda installation that it by default installs, as we will be using the PsychoPy installation's Python environment. Check the "Python native development tools" option.

Set up the Python environment for Visual Studio Python integration

Last, visual studio needs to be able to find your PsychoPy's Python environment. To do so, add a new Python environment, choose existing environment, and point it to the root of your PsychoPy install. In my case, that is C:\Program Files\PsychoPy.

Enabling native debugging

To be able to debug both the Python and C++ side of things with PsychoPy, you must install the debug symbols for the Python installation. This is done through the installer normally, but we don't have an option to do that with PyschoPy. So we have to add them manually. Here's how:

  1. For 64bit Python 3.8.10 (what I am using in the current example), navigate to this download location.
  2. Download all *_d.msi and *_pdb.msi files there (might be overkill, but better have them all).
  3. Open a cmd with admin privileges, navigate to your download location.
  4. Execute for each file a command like: core_d.msi TARGETDIR="C:\Program Files\PsychoPy", where the TARGETDIR is set to the location of your PsychoPy installation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tittapy-2.0.0-cp314-cp314-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.14Windows x86-64

tittapy-2.0.0-cp314-cp314-manylinux_2_34_x86_64.whl (11.5 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

tittapy-2.0.0-cp314-cp314-macosx_14_0_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.14macOS 14.0+ x86-64

tittapy-2.0.0-cp314-cp314-macosx_14_0_arm64.whl (648.9 kB view details)

Uploaded CPython 3.14macOS 14.0+ ARM64

tittapy-2.0.0-cp313-cp313-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.13Windows x86-64

tittapy-2.0.0-cp313-cp313-manylinux_2_34_x86_64.whl (11.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

tittapy-2.0.0-cp313-cp313-macosx_14_0_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 14.0+ x86-64

tittapy-2.0.0-cp313-cp313-macosx_14_0_arm64.whl (648.2 kB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

tittapy-2.0.0-cp312-cp312-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.12Windows x86-64

tittapy-2.0.0-cp312-cp312-manylinux_2_34_x86_64.whl (11.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

tittapy-2.0.0-cp312-cp312-macosx_14_0_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.12macOS 14.0+ x86-64

tittapy-2.0.0-cp312-cp312-macosx_14_0_arm64.whl (648.1 kB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

tittapy-2.0.0-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

tittapy-2.0.0-cp311-cp311-manylinux_2_34_x86_64.whl (11.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

tittapy-2.0.0-cp311-cp311-macosx_14_0_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.11macOS 14.0+ x86-64

tittapy-2.0.0-cp311-cp311-macosx_14_0_arm64.whl (645.9 kB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

tittapy-2.0.0-cp310-cp310-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.10Windows x86-64

tittapy-2.0.0-cp310-cp310-manylinux_2_34_x86_64.whl (11.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

tittapy-2.0.0-cp310-cp310-macosx_14_0_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.10macOS 14.0+ x86-64

tittapy-2.0.0-cp310-cp310-macosx_14_0_arm64.whl (644.3 kB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

tittapy-2.0.0-cp38-cp38-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.8Windows x86-64

tittapy-2.0.0-cp38-cp38-manylinux_2_34_x86_64.whl (11.4 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.34+ x86-64

tittapy-2.0.0-cp38-cp38-macosx_14_0_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.8macOS 14.0+ x86-64

tittapy-2.0.0-cp38-cp38-macosx_14_0_arm64.whl (644.2 kB view details)

Uploaded CPython 3.8macOS 14.0+ ARM64

File details

Details for the file tittapy-2.0.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: tittapy-2.0.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 2.4 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for tittapy-2.0.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 198d487e5b1cf2c3c2a48d0391b0131a1091b43a2ed58562aed9090b40fdce5b
MD5 3f151eb0087bf6c9f1e7dc6f5f8416bd
BLAKE2b-256 d77e21d5b42326048ce83a5c381243bae32813a2336fb85de6be64d4bc668358

See more details on using hashes here.

File details

Details for the file tittapy-2.0.0-cp314-cp314-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for tittapy-2.0.0-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 511ea32bdde73f83d4363baaf845ee2faa8ff92ba1753c5f230acbd185978a41
MD5 e5eb2a965ba6202c0c5a4250a6859ed2
BLAKE2b-256 2a26f5f4c6b89e631069675ad0e61096c7d8f4ac5cd3d69a1552d3d9d36c58f8

See more details on using hashes here.

File details

Details for the file tittapy-2.0.0-cp314-cp314-macosx_14_0_x86_64.whl.

File metadata

File hashes

Hashes for tittapy-2.0.0-cp314-cp314-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 a05984f7b2579270f51c134f148369e4be776cc66ee22cf69e0d8cb4f69337cf
MD5 83e736e70a08fbf82128b657c446bb25
BLAKE2b-256 a477e86a2d59b4738e8024a3a15f0366b864f9d69489b212991a9276fabe4bad

See more details on using hashes here.

File details

Details for the file tittapy-2.0.0-cp314-cp314-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for tittapy-2.0.0-cp314-cp314-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 758d8e65ab0427086f2e3eca14311e9baf1928dd8a066bd3753d209648d86d0d
MD5 b15d971a1ddea797400d11069bf94bcc
BLAKE2b-256 40135b1be869e6c51ea876a114a8c916212b9f8bc28b0b55619dfb1632edfe83

See more details on using hashes here.

File details

Details for the file tittapy-2.0.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: tittapy-2.0.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for tittapy-2.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5b69e182da59eba482ed205d6cfb09921cb6f207bf7850c9d7fde5e4376818b9
MD5 38bd9ff77ffbbef8c796461f6254f94f
BLAKE2b-256 33beb7389dd85c60106bd99040c0bd99a7f61ac513bf1bca161774bec63dae14

See more details on using hashes here.

File details

Details for the file tittapy-2.0.0-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for tittapy-2.0.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ed3693b92d57f3dae7d792552386950a3de67132cb6658f656bbce6dd29e988a
MD5 38be6a0a9b79b077fae64e83c112729e
BLAKE2b-256 894551bffe48a8651094c450b87051b898b17810aa6d95ae6ca2868324ed30e8

See more details on using hashes here.

File details

Details for the file tittapy-2.0.0-cp313-cp313-macosx_14_0_x86_64.whl.

File metadata

File hashes

Hashes for tittapy-2.0.0-cp313-cp313-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 b194fdf4b3e4893d05bd4414ebb1879b47eed537c7f3f5fc27980f85efcc0a2f
MD5 83a57023972674d9f6d471453fe31086
BLAKE2b-256 a25ec57824ea524ff54c9a1af210a2facbc5734a3bc2645499eeb6188a469821

See more details on using hashes here.

File details

Details for the file tittapy-2.0.0-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for tittapy-2.0.0-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 f987e0c7390596077251a3473159640e4225db64e2fbcc71a49240765b9ef16c
MD5 3b5af3607bf0c578e14fd79e0374915d
BLAKE2b-256 cd6f411b6b5b59fee9c4e310eac9444129ef452e084b341eadb51692b840c9eb

See more details on using hashes here.

File details

Details for the file tittapy-2.0.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: tittapy-2.0.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for tittapy-2.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7e0045300c7a608b2037eaf60951b648a627b22aea094160e26211ba599a85bc
MD5 0be468ce35123618346e11c86b48d355
BLAKE2b-256 7f576d02776b58a00b15fea2158f0233ff40c22dc4c4469facbe11afbec9bf35

See more details on using hashes here.

File details

Details for the file tittapy-2.0.0-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for tittapy-2.0.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 1c1dab77d81cb3bad2360231b3bcbbe9ab6cd9c6da2b2fd71838f6b944f743d7
MD5 4fa14813824c9022a0bbd0f15d5b90b8
BLAKE2b-256 dbc1635e99f036b5e4be7189af9128aaba6c269c3b44630f70945da52d6d13ab

See more details on using hashes here.

File details

Details for the file tittapy-2.0.0-cp312-cp312-macosx_14_0_x86_64.whl.

File metadata

File hashes

Hashes for tittapy-2.0.0-cp312-cp312-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 152302bed0252de6f382f92b8c1277be186950462d56ecede0aad8f9208647f1
MD5 0a23435b84d7de73907e783d79d078e4
BLAKE2b-256 13e76b2839bb0cf12401c8069fdf39dac6344fbd7d9803bada78a7465f685fed

See more details on using hashes here.

File details

Details for the file tittapy-2.0.0-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for tittapy-2.0.0-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 ba41dc0c55225c3268e49a4d94a43c15dc1992b274d7b2f06229f077be250d4e
MD5 7be6b77ac240a3ab59d9a0924860daad
BLAKE2b-256 d3c330622d3333e2886aa6c24dc580062ad49b1bd98b46667848ecc160483c8b

See more details on using hashes here.

File details

Details for the file tittapy-2.0.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: tittapy-2.0.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for tittapy-2.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 52dbb7c8254398632da7f74dc240d7caf5121f2b4c2df422a1edabbee0abf306
MD5 01ceca82c38ccace1c17640c45e30717
BLAKE2b-256 bedd8aec4954fa171112f6e9b33190beae90902b9d55383047c7ca25a5760592

See more details on using hashes here.

File details

Details for the file tittapy-2.0.0-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for tittapy-2.0.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 3c7e44af2c2140ea7c863bc46804e43f5eb8eeac9cb4e446d8e69ef993c845ef
MD5 37c8c0d84028aab7c78722de21612511
BLAKE2b-256 cfb1c20529ad6c0906ccc470445d649e7c9c8406af6ba510feeab6f97e77b4b2

See more details on using hashes here.

File details

Details for the file tittapy-2.0.0-cp311-cp311-macosx_14_0_x86_64.whl.

File metadata

File hashes

Hashes for tittapy-2.0.0-cp311-cp311-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 4affa832a920cb3bd3ee8e4bb86ccf7c02f92887557007cbde6c51b0954cb070
MD5 f4cf64eff269da3f84fe4445ddc46e03
BLAKE2b-256 8e2481980a0030ca36eee1cc3e8a523cb7c5cb0bb45ccb30f850494c0a75fafc

See more details on using hashes here.

File details

Details for the file tittapy-2.0.0-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for tittapy-2.0.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 0c410b7b34b321f96bb1af99cbfa2f8fdd03c6591eed9b53b74f25be17eeb0a2
MD5 1b0b4f611489aa0150e763c1e42cdcd6
BLAKE2b-256 ed9148b3210c96c175769a960d457ed8ea7471ef8e61958e0f5d1f82bbea878a

See more details on using hashes here.

File details

Details for the file tittapy-2.0.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: tittapy-2.0.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for tittapy-2.0.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cab10fb96b5152364a6bd24473a3005ecef58975389c0db8849391b3c1a27474
MD5 74a81b695a34edd4c0bf9d15518985fd
BLAKE2b-256 30ce900e441e087fb6f7d7f5f69480c8f889b6b282168f33d86a33563da9efb3

See more details on using hashes here.

File details

Details for the file tittapy-2.0.0-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for tittapy-2.0.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 e5fc05e75d36be3d4fe09db487b5ed77884ca8d5f6e7a1a218d1fd29442a035b
MD5 ebe86ba9db495647742d2d8abb3de9e6
BLAKE2b-256 d32a745d15bb8eaffb77b3b351b933e62b8518731b8ed473e74d326a4a10672b

See more details on using hashes here.

File details

Details for the file tittapy-2.0.0-cp310-cp310-macosx_14_0_x86_64.whl.

File metadata

File hashes

Hashes for tittapy-2.0.0-cp310-cp310-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 26a4dac78543febe3af409af642d474497c3da5a54759c9d237db3523fc53552
MD5 0d0a3db5179d8c55ba2109bd82bfba1e
BLAKE2b-256 931e93435af62fd020bc250914627387d19b9250c17b03d69ec17d1cd3c50f83

See more details on using hashes here.

File details

Details for the file tittapy-2.0.0-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for tittapy-2.0.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 a446891fd298cfd4ed048f0b9ddfed0c6bedae0c5ea423850cbb4fcad54f8324
MD5 797ea2feb4eb2189f97392e04dd66077
BLAKE2b-256 3ff722e636add368f91b72d8efd903280544fd2b89ef1beccb31200792f4e624

See more details on using hashes here.

File details

Details for the file tittapy-2.0.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: tittapy-2.0.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for tittapy-2.0.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0217c116e320c94cce8589d9bd48d1e86c9423d5692fa8b2d11f4aabac78cccc
MD5 76ab51dd8d29802edd709d56aa6b3c57
BLAKE2b-256 6e658c035f96e9706f66b39d44ac6ad9d05d1a9765e8f78501e8b16abc1f2450

See more details on using hashes here.

File details

Details for the file tittapy-2.0.0-cp38-cp38-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for tittapy-2.0.0-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ef82fee30eb73d08679bb75bcacb8d041c186d0b07af0ec22a0dbe9abe993106
MD5 02990577e600300f8981b9639e419649
BLAKE2b-256 eaa9dd91072678aa5d8219003be29f472dcbfb583f077cb685d908e92936477a

See more details on using hashes here.

File details

Details for the file tittapy-2.0.0-cp38-cp38-macosx_14_0_x86_64.whl.

File metadata

File hashes

Hashes for tittapy-2.0.0-cp38-cp38-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 cc8d6e40acef6973ff6be09702fad9da9810491fef18df76b766c1767d9ab669
MD5 779976cae6dc6f451a258f88f5de4481
BLAKE2b-256 2c2d708017f8336d1906aa0753f88944bdc400805a14a18932020ad0f78e57ff

See more details on using hashes here.

File details

Details for the file tittapy-2.0.0-cp38-cp38-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for tittapy-2.0.0-cp38-cp38-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 728378b1f92bd43a8932b6256c8a2982a3fa0b0a727f835ba45c07ff3a449a4a
MD5 ee3d9b0d1c604bfcdd125657f2a34479
BLAKE2b-256 a88b76a68bb30b145df3eeed5a2bdd8607e5b0ca5b03715f51e0fdd60efbea30

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page