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.4.2-cp313-cp313-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.13Windows x86-64

TittaPy-1.4.2-cp313-cp313-manylinux_2_28_x86_64.whl (7.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.13macOS 12.0+ x86-64

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

Uploaded CPython 3.12Windows x86-64

TittaPy-1.4.2-cp312-cp312-manylinux_2_28_x86_64.whl (7.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.12macOS 12.0+ x86-64

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

Uploaded CPython 3.11Windows x86-64

TittaPy-1.4.2-cp311-cp311-manylinux_2_28_x86_64.whl (7.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.11macOS 12.0+ x86-64

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

Uploaded CPython 3.10Windows x86-64

TittaPy-1.4.2-cp310-cp310-manylinux_2_28_x86_64.whl (7.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.10macOS 12.0+ x86-64

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

Uploaded CPython 3.9Windows x86-64

TittaPy-1.4.2-cp39-cp39-manylinux_2_28_x86_64.whl (7.5 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.9macOS 12.0+ x86-64

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

Uploaded CPython 3.8Windows x86-64

TittaPy-1.4.2-cp38-cp38-manylinux_2_28_x86_64.whl (7.5 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.8macOS 12.0+ x86-64

File details

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

File metadata

  • Download URL: TittaPy-1.4.2-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/6.0.1 CPython/3.12.8

File hashes

Hashes for TittaPy-1.4.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b5ee53411813d8083fd065d53089e9d828cdb53cf63dd658dcac7c7c5fbc8413
MD5 3dd9b3490614d1491f7e4b02fed8b531
BLAKE2b-256 628ac3233b97d8e6fd7c417b92bb96eb7df59e8d940d9c703ce6d415d2212e2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TittaPy-1.4.2-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2040505acbc8f6d0e6fa121a1467c50ae4aabd272b0823ca6894ffebba276bb6
MD5 7367c63aefc82c03315f43e268bc3560
BLAKE2b-256 075f16b64d259ecfc752831a9d4cf6b54a38a00f0acfe2903025931ef8874b42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TittaPy-1.4.2-cp313-cp313-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 d8b4948b80addbc7667bd79dcb4a0d0443efc2f13050cbabe2301cb50aa85f93
MD5 458263ead7c7e3e3a056abb4c3b5487c
BLAKE2b-256 a97b2aa4c146e46da91bc184e706b9d23db6b0d48628bb532051ae62c7d915b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: TittaPy-1.4.2-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/6.0.1 CPython/3.12.8

File hashes

Hashes for TittaPy-1.4.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 672388bb08a97cdd3d911a894a272e09fbd3a86379e42a444a24314018633a8e
MD5 8073983676e9496e431264d63b24f091
BLAKE2b-256 dcf099657d61550ff691f71eff99c2ec5fbca60ac6280e9a8a02e0bafd60cead

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TittaPy-1.4.2-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fdf67121b27a99c2a49f27790948669dd2e3c3505b10b702cc25520444d47f95
MD5 c4bf91a9bdbed8a7f9e4494ea2fc57cf
BLAKE2b-256 14efa5f34abec589fb054b39bd32e49fde7832ffdc389dec7cbd2ceedfb76944

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TittaPy-1.4.2-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 0e8e53734b4979b155ef4528d5d8bb9656ba02004044e84fe1ca77df456988cc
MD5 c2ee74144cd089cae687c2d1d5dda615
BLAKE2b-256 8a2ca1e70b0a2ab76c244d57ea6aa1b1eaf8aad385960df677c87932356b74c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: TittaPy-1.4.2-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/6.0.1 CPython/3.12.8

File hashes

Hashes for TittaPy-1.4.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4e2b5ce25091d7140f457822004e8258090c29d44be4df9210fd96e8e1a87610
MD5 d4cfdd3fc3199457435ce48bef360b14
BLAKE2b-256 e5b5cdb8848f58b2b921dfb511cb0547473db02ef092b977d0d04a06ffccdcd6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TittaPy-1.4.2-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fd1b2d563e28982d29ea85d5178520493f8083f8fca3e66176d7c78101a56520
MD5 458b8440f478865526a277f75732dd49
BLAKE2b-256 450b8957c7128cc621b19bc1057b004b59ad1251c9244ce4c73c2fef449075e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TittaPy-1.4.2-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 56a5f63215d46084160b81e7cc8d03e280df9d31bdfd22545e3f6170476c2dd4
MD5 44487dc692729f7c2b3d6f0793fa50a6
BLAKE2b-256 3f83fa06d492b199ee512307bc054bc1e6d67a57669f1c1827550282e023d11a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: TittaPy-1.4.2-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/6.0.1 CPython/3.12.8

File hashes

Hashes for TittaPy-1.4.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 84eb6139c040d0c91cf4a11516b3f6cf0ca9bc56ea5e04cf9da3499bdffb781f
MD5 9c5aaa56a3e9c79bf58f14648ca09519
BLAKE2b-256 8c577325e221f3c9e61bc19b5f71f2c0762a4d254cead302956d7d4a794e1133

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TittaPy-1.4.2-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 47243e002c5c01809d65096b54272e1236f700360396e1583b0cb87849b89516
MD5 9e41bfd97414daf11e3f1a6413cf92aa
BLAKE2b-256 a43936b840f677d63ac2d8f6d2f798cdc00442e40f6488fa34232b0267603b46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TittaPy-1.4.2-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 19cd10122c1f67ce3dc5d4da4d9a99fe37fe1ab60dfaf0db7e58fd5670165d14
MD5 3f9872310404b9628e6226d85c1593b0
BLAKE2b-256 8dcfd5382cc4e512eec267b686e7439dbf8987df493f4b30f02d171c3664b9d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: TittaPy-1.4.2-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/6.0.1 CPython/3.12.8

File hashes

Hashes for TittaPy-1.4.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4ce638d4638557cadbd4b0a2fa028b53cdb6095f3d0054174bc1f809d98bbea2
MD5 ec5c929a8ba9ec75cd73bad562052679
BLAKE2b-256 559277a9f1a410302b99dbaaf47d2f423e099d3b8f82abf5c4beb1b292e75610

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TittaPy-1.4.2-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1e0e6080e0eb469e910e1f8a4d467dc9788d44e901dacc76c78b2373176e29ab
MD5 1def1009276983e4ae5a0ca13b54a505
BLAKE2b-256 902928622bbd1abb69d60c94eb0ec02465cf1b7d968ab91705063de796cbd261

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TittaPy-1.4.2-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 ffb6b985fc2f2b6521bca387107db545de05bcbdd11fb9345de0ce1881d7e8b2
MD5 6efa2498174b76fc0237489e0e9c4ce1
BLAKE2b-256 eed25602aa009a0992cf16ed441f11ed63a42ecc49b2ea2f7fc6a35137c59f39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: TittaPy-1.4.2-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/6.0.1 CPython/3.12.8

File hashes

Hashes for TittaPy-1.4.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2f48a9cb90df729916969f882a969f729acaf0352e955333f3e34131dbd63d82
MD5 f03d36c7f4aa68a4f0a33d650fca8627
BLAKE2b-256 7972ebef07d801d53ae8291219ab5e09ed292a279cddfa3a941727e1d12e77a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TittaPy-1.4.2-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 32fd112a4599c093b59bfa2bcfd1a4f4a3c30eaf42f95bc735214ea76367bf75
MD5 c6e1fca789362c7bb5aa57727c0518b6
BLAKE2b-256 ec455fae451540967c390f14fea9b77760c7672814903cb6e2c05ac286915b57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TittaPy-1.4.2-cp38-cp38-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 4789b67576d34343dfb0d71d9e5b56849ec6be73719e59cee748432d7ce72b47
MD5 fd58e4e31087e32dbe093829390386f8
BLAKE2b-256 416ba0671979d532fff3c77cb528af6c6eed070ab3792569554adaebd9be8cc1

See more details on using hashes here.

Supported by

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