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.

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).

Building the mex files

Run makeTittaMex.m to build the mex file.

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.

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. The *.h include files are placed in \SDK_wrapper\deps\include
  2. The Windows Tobii_C_SDK\64\lib\tobii_research.lib link library is placed in \SDK_wrapper\deps\lib.
  3. The *.dll and *.so files are placed in the respective output directories, \SDK_wrapper\TittaMex\64\Windows and \SDK_wrapper\TittaMex\64\Linux, respectively.

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

TittaPy-1.3.1-cp313-cp313-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.13 Windows x86-64

TittaPy-1.3.1-cp313-cp313-manylinux_2_28_x86_64.whl (7.7 MB view details)

Uploaded CPython 3.13 manylinux: glibc 2.28+ x86-64

TittaPy-1.3.1-cp313-cp313-macosx_12_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.13 macOS 12.0+ x86-64

TittaPy-1.3.1-cp312-cp312-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.12 Windows x86-64

TittaPy-1.3.1-cp312-cp312-manylinux_2_28_x86_64.whl (7.7 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.28+ x86-64

TittaPy-1.3.1-cp312-cp312-macosx_12_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12 macOS 12.0+ x86-64

TittaPy-1.3.1-cp311-cp311-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.11 Windows x86-64

TittaPy-1.3.1-cp311-cp311-manylinux_2_28_x86_64.whl (7.7 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.28+ x86-64

TittaPy-1.3.1-cp311-cp311-macosx_12_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11 macOS 12.0+ x86-64

TittaPy-1.3.1-cp310-cp310-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.10 Windows x86-64

TittaPy-1.3.1-cp310-cp310-manylinux_2_28_x86_64.whl (7.6 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.28+ x86-64

TittaPy-1.3.1-cp310-cp310-macosx_12_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.10 macOS 12.0+ x86-64

TittaPy-1.3.1-cp39-cp39-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.9 Windows x86-64

TittaPy-1.3.1-cp39-cp39-manylinux_2_28_x86_64.whl (7.6 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.28+ x86-64

TittaPy-1.3.1-cp39-cp39-macosx_12_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.9 macOS 12.0+ x86-64

TittaPy-1.3.1-cp38-cp38-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.8 Windows x86-64

TittaPy-1.3.1-cp38-cp38-manylinux_2_28_x86_64.whl (7.6 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.28+ x86-64

TittaPy-1.3.1-cp38-cp38-macosx_12_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.8 macOS 12.0+ x86-64

File details

Details for the file TittaPy-1.3.1-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: TittaPy-1.3.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for TittaPy-1.3.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 576bf347bd2c7f494a765c66179bf50e3bd2923b6da11a8810552af951010d5e
MD5 01b382eb01bc8b652214cfedeb5bfb02
BLAKE2b-256 19b36adaa2eacebe2a7d0f6beefb0872797183f12c54ec8349f4d6640d7d3ed1

See more details on using hashes here.

File details

Details for the file TittaPy-1.3.1-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for TittaPy-1.3.1-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e2a9f37f55257846b0c5be7417f8cd5f5530565bb9eb995be86afbeeb341e4a8
MD5 bbc7d851b7cd9027222d594599a9e711
BLAKE2b-256 0824bbd4b6764c0b2761047d2f3ce47597d730b9ce5fc5fb5a30c460a1447614

See more details on using hashes here.

File details

Details for the file TittaPy-1.3.1-cp313-cp313-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for TittaPy-1.3.1-cp313-cp313-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 da0256c7d0c8024193cd4be91eeb207f35dc612be07a0ee45f3d0d9948e536de
MD5 666538b9ae69036dc217f3cdb8307307
BLAKE2b-256 7d4f67411318994e796eb73317bcb103b8af41cfa9013f7c9ea9f58d8e5f576e

See more details on using hashes here.

File details

Details for the file TittaPy-1.3.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: TittaPy-1.3.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for TittaPy-1.3.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dbaa88f27bdf9ece51baeeea3a03d56909f340c3853db1fed09e10421d3812b9
MD5 ddf17b6380c9727e7b11c884407d2b39
BLAKE2b-256 2ed914d069b73d008109150fa37b39d865a8adf2d04da8213f19199854f452a3

See more details on using hashes here.

File details

Details for the file TittaPy-1.3.1-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for TittaPy-1.3.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 491f1c6975c52cd50aeeb5b714c4392558f22071022c28e1e27acc4f15b80b4d
MD5 fa4b57f26268115538e59b9d61a24bb1
BLAKE2b-256 d55452fee8aab6672ccbfd37595a7a2011d4046de30655162006dbd4c076c7b8

See more details on using hashes here.

File details

Details for the file TittaPy-1.3.1-cp312-cp312-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for TittaPy-1.3.1-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 907faa883f45950f5f40f686f313f62d5ddc38924e69d99acdf43c403ed2639b
MD5 17b6b0f6b9f62483d83adeb6399ab5a8
BLAKE2b-256 2cf134a23fbf91a20959602b1d5e61953eb644cf07ed0b35966be64d753fad37

See more details on using hashes here.

File details

Details for the file TittaPy-1.3.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: TittaPy-1.3.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for TittaPy-1.3.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4e833a7936302860a3a366ab93f17967d9ff0c8ac0045a31233579572e7faf43
MD5 2fe58cbb44a43e80964f341353505d5e
BLAKE2b-256 a5e4a5a56b18695dcb7966200420419230f73dec17c43f2ec35f1162b5842ed5

See more details on using hashes here.

File details

Details for the file TittaPy-1.3.1-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for TittaPy-1.3.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 71a2cdc5c70297dcf227534c86bf4c4ccd7874f0fafd684c3ab2a9fd8fe2252f
MD5 6c9bbe7c9e5f9b1f88f13345828a7f55
BLAKE2b-256 98b75c45501fac853437c03d80ebfdcc5d1d31a75838e1a05eed3436ecf07580

See more details on using hashes here.

File details

Details for the file TittaPy-1.3.1-cp311-cp311-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for TittaPy-1.3.1-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 ed15e21e831d2de04e8f3e95ffde8f041563f60a6a07f05ba9689b65f515e52a
MD5 346ea1b46a8089fc2c4db0fd1ef7b465
BLAKE2b-256 58aaa95b677bf973ab515a71fec81c436adef6000ebf450c874d944ec2257f91

See more details on using hashes here.

File details

Details for the file TittaPy-1.3.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: TittaPy-1.3.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for TittaPy-1.3.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4a80d70d14e790a1a39af23799e0d6f236a33033fc9da809c068968b0080ca20
MD5 df98f71bd3ab70f2ede6dd365c5f5956
BLAKE2b-256 94cedc7d4137342171c29d4420250eeee623baa0310e7a5ae0fa784264d77f41

See more details on using hashes here.

File details

Details for the file TittaPy-1.3.1-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for TittaPy-1.3.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ccdce431deb1da7db224a21b6b87f4d53cd4b402ca8fade7d573de3476001bf9
MD5 accba8482bcbd5b2aacec45690001186
BLAKE2b-256 9d64c63e0f2246370e113c93f4ba9496d54e56496349b99cdd8a222fd19c6f7c

See more details on using hashes here.

File details

Details for the file TittaPy-1.3.1-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for TittaPy-1.3.1-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 b1e170e4a83d6220e410a4d1b39bd53f6bb86a3e66c4866504c5300d6c510288
MD5 2212e18a8a2a9c4236391760248fc2a6
BLAKE2b-256 04b722b2550d18233f228c72660a41ea4aa7b78eeb495ca77d6abacb2a235d94

See more details on using hashes here.

File details

Details for the file TittaPy-1.3.1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: TittaPy-1.3.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for TittaPy-1.3.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 07c907021c97e6435b6f00cb1c0adeec84b16c903602c1fecc2291d550492e4a
MD5 9c408bc31d1a3c5946a70858329ef261
BLAKE2b-256 940a11a01beeff4f820a89afa55408d34bd3fb99d66518eec31a27217eac2d7f

See more details on using hashes here.

File details

Details for the file TittaPy-1.3.1-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for TittaPy-1.3.1-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fe93f6d2161ed8b8f489bd77829336c8e28cedc90b75fa06a463acd0d8842db3
MD5 ed0f2901c70a81aa63e4d64bdcd9c094
BLAKE2b-256 4e27c6d28974566dc8ddc7d41674fd114d405a3e2c7fbb750b09e36dbaca1621

See more details on using hashes here.

File details

Details for the file TittaPy-1.3.1-cp39-cp39-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for TittaPy-1.3.1-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 f7fd3a25054ea7601ea0b8d3e797678b88b431f64f8d71f9cbc4557772597341
MD5 edea539bbba684f98c68d6ee0aceb181
BLAKE2b-256 3542286cf6a9f2350b30446e69234fe8b3f4cc3f231fabca846f8fe5a6332caf

See more details on using hashes here.

File details

Details for the file TittaPy-1.3.1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: TittaPy-1.3.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for TittaPy-1.3.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d1936c61e29c7ee520416211f8559063998e3ebd959f6115dd5efbbdfaf3e874
MD5 87ecba1dd4f0b2217b71db8a7c79a360
BLAKE2b-256 67156ba0c54120e3d8ff22db24c30439652fd9dd791dc38da54a91fa1634ed42

See more details on using hashes here.

File details

Details for the file TittaPy-1.3.1-cp38-cp38-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for TittaPy-1.3.1-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6c7269ba5e99d697373065f26106d1f0d5c372ae369709f813573a1d80b2d105
MD5 41187063ecafb0c5de81c1237b6ab41a
BLAKE2b-256 ee2680b45c6cbab071b353e91a09b30c2b167670bdc7d34b2d486bf78f5b1ed3

See more details on using hashes here.

File details

Details for the file TittaPy-1.3.1-cp38-cp38-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for TittaPy-1.3.1-cp38-cp38-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 ded27f9d1895dedb15cf4337fc798a20bb204e1473d0d89aba231a8cee5bd2bb
MD5 f68ea0da8b5eb90ad1903bb1b267c92e
BLAKE2b-256 7045ba543e7f9ffeff014768b58c02f2ddc2dd721ed034351c7245ce9b78041a

See more details on using hashes here.

Supported by

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