TittaLSLPy


NameTittaLSLPy JSON
Version 1.3.0 PyPI version JSON
download
home_pagehttps://github.com/dcnieho/Titta
SummaryInterface for streaming and receiving Tobii eye tracker data using Lab Streaming Layer
upload_time2024-01-30 08:27:03
maintainer
docs_urlNone
authorDiederick C. Niehorster
requires_python>=3.8
license
keywords tobii psychopy eye-tracking streaming remote lsl
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Downloads](https://static.pepy.tech/badge/tittalslpy)](https://pepy.tech/project/tittalslpy)
[![PyPI Latest Release](https://img.shields.io/pypi/v/TittaLSLPy.svg)](https://pypi.org/project/TittaLSLPy/)
[![image](https://img.shields.io/pypi/pyversions/TittaLSLPy.svg)](https://pypi.org/project/TittaLSLPy/)

# TittaLSL
The TittaLSL tool is an extension to [Titta (and its TittaMex and TittaPy wrappers)](/readme.md#titta-tittamex-tittapy-classes). It allows to stream data from Tobii eye trackers in Titta's format using Lab Streaming Layer and to receive such data and access it through an API that is identical to that of Titta. That allows handling local and remote eye tracker data sources in a uniform manner, making it possible to design interesting experiments using multiple eye trackers.

TittaLSL is a C++ library that can be compiled and used as a static library without Matlab/Octave or Python. However, MATLAB and Python wrappers are also provided in the form of TittaLSLMex and TittaLSLPy, respectively.

In comparison to the the [Lab Streaming Layer TobiiPro Connector](https://github.com/labstreaminglayer/App-TobiiPro), Titta LSL provides access to all gaze data fields instead of only gaze position on the screen, as well as the eye image, external signal, time synchronization and positioning streams. Samples are furthermore properly timestamped using the timestamps from the eye tracker, where possible (all streams except for the positioning stream, which doesn't have timestamps).

## The `TittaLSL`, `TittaLSLMex` and `TittaLSLPy` classes
The functionality of TittaLSL is divided over two classes, `Sender` for making eye tracker data available on the network (AKA an outlet in Lab Streaming Layer terminology) and `Receiver` for recording from TittaLSL data streams available on the network (AKA an inlet). The below documents the available methods of these classes. The functionality below is exposed under the same names in MATLAB as `TittaLSL.Sender` and `TittaLSL.Receiver`, respectively. The same functionality is also available from `TittaLSLPy.Sender` and `TittaLSLPy.Receiver` instances, but in that case all function and property names as well as stream names use `snake_case` names instead of `camelCase`. In C++ all below functions and classes are in the `TittaLSL` namespace. See [here for example C++ code](/LSL_streamer/cppLSLTest/main.cpp) using the library, and [here for example Python code](/LSL_streamer/TittaLSLPy/test.py).

### Free functions
|Call|Inputs|Outputs|Description|
| --- | --- | --- | --- |
|`getTobiiSDKVersion()`||<ol><li>`SDKVersion`: A string containing the version of the Tobii SDK.</li></ol>|Get the version of the Tobii Pro SDK dynamic library that is used by TittaLSL.|
|`getLSLVersion()`||<ol><li>`LSLVersion`: An int32 scalar denoting the version of Lab Streaming Layer.</li></ol>|Get the version of the Lab Streaming Layer dynamic library that is used by TittaLSL.|

### Construction and initialization
|Call|Inputs|Notes|
| --- | --- | --- |
|`TittaLSL::Sender()` (C++)<br>`TittaLSL.Sender()` (MATLAB)<br>`TittaLSLPy.Sender` (Python)|<ol><li>`address`: address of the eye tracker to be made available on the network. A list of connected eye trackers and their addresses can be using the static function [`Titta.findAllEyeTrackers()` in the Titta library](/readme.md#titta-tittamex-tittapy-classes).</li></ol>||
|`TittaLSL::Receiver()` (C++)<br>`TittaLSL.Receiver()` (MATLAB)<br>`TittaLSLPy.Receiver` (Python)|<ol><li>`streamSourceID`: Source ID of LSL stream to record from. Must be a TittaLSL stream.</li><li>`initialBufferSize`: (optional) value indicating for how many samples memory should be allocated.</li><li>`doStartRecording`: (optional) value indicating whether recording from the stream should immediately be started.</li></ol>|The default initial buffer size should cover about 30 minutes of recording gaze data at 600Hz, and longer for the other streams. Growth of the buffer should cause no performance impact at all as it happens on a separate thread. To be certain, you can indicate a buffer size that is sufficient for the number of samples that you expect to record. Note that all buffers are fully in-memory. As such, ensure that the computer has enough memory to satify your needs, or you risk a recording-destroying crash.|

### Methods
The following method calls are available on a `TittaLSL.Sender` instance:

|Call|Inputs|Outputs|Description|
| --- | --- | --- | --- |
|`getEyeTracker()`||<ol><li>`eyeTracker`: information about the eyeTracker that TittaLSL is connected to.</li></ol>|Get information about the eye tracker that the TittaLSL instance is connected to and will stream data from.|
|`start()`|<ol><li>`stream`: a string, possible values: `gaze`, `eyeImage`, `externalSignal`, `timeSync` and `positioning`.</li><li>`asGif`: an (optional) boolean that is ignored unless the stream type is `eyeImage`. It indicates whether eye images should be provided gif-encoded (true) or a raw grayscale pixel data (false).</li></ol>|<ol><li>`success`: a boolean indicating whether sending of the stream was started. May be false if sending was already started.</li></ol>|Start providing data of a specified type on the network.|
|`setIncludeEyeOpennessInGaze()`|<ol><li>`include`: a boolean, indicating whether eye openness samples should be provided in the sent gaze stream or not. Default false.</li></ol>||Set whether calls to start or stop providing the gaze stream will include data from the eye openness stream. An error will be raised if set to true, but the connected eye tracker does not provide an eye openness stream.|
|`isStreaming()`|<ol><li>`stream`: a string, possible values: `gaze`, `eyeImage`, `externalSignal`, `timeSync` and `positioning`.</li></ol>|<ol><li>`streaming`: a boolean indicating whether the indicated stream type is being made available on the network.</li></ol>|Check whether the specified stream type from the connected eye tracker is being made available on the network.|
|`stop()`|<ol><li>`stream`: a string, possible values: `gaze`, `eyeImage`, `externalSignal`, `timeSync` and `positioning`.</li></ol>||Stop providing data of a specified type on the network.|


The following static calls are available for `TittaLSL.Receiver`:
|Call|Inputs|Outputs|Description|
| --- | --- | --- | --- |
|`GetStreams()`|<ol><li>`stream`: (optional) string, possible values: `gaze`, `eyeImage`, `externalSignal`, `timeSync` and `positioning`. If provided, only streams of this type are discovered on the network.</li></ol>|<ol><li>`streamInfoList`: list of objects containing info about discovered streams.</li></ol>|Discover what TittaLSL streams are available on the network.|

The following method calls are available on a `TittaLSL.Receiver` instance. Note that samples provided by the `consume*()` and `peek*()` functions are almost identical to those provided by their namesakes in `Titta` for a local eye tracker. The only difference is that the samples provided by TittaLSL have two extra fields, `remoteSystemTimeStamp` and `localSystemTimeStamp`. `remoteSystemTimeStamp` is the timestamp as provided by the Tobii SDK on the system where the eye tracker is connected. `localSystemTimeStamp` is the same timestamp, but expressed in the clock of the receiving machine. This local time is computed by using the offset provided by Lab Streaming Layer's `time_correction` function for the stream that the receiver is connected to. See [the Tobii SDK documentation](https://developer.tobiipro.com/commonconcepts.html) for a description of the other fields.

|Call|Inputs|Outputs|Description|
| --- | --- | --- | --- |
|`getInfo()`||<ol><li>`info`: object containing info about the remote stream.</li></ol>|Get info about the connected remote stream.|
|`getType()`||<ol><li>`stream`: a stream indicating what type of data this remote source provides. Possible values: `gaze`, `eyeImage`, `externalSignal`, `timeSync` and `positioning`.</li></ol>|Get data type provided by the remote stream.|
|`start()`|||Start recording data from this remote stream to buffer.|
|`isRecording()`||<ol><li>`status`: a boolean indicating whether data of the indicated type is currently being recorded to the buffer.</li></ol>|Check if data from this remote stream is being recorded to buffer.|
|`consumeN()`|<ol><li>`N`: (optional) number of samples to consume from the start of the buffer. Defaults to all.</li><li>`side`: a string, possible values: `first` and `last`. Indicates from which side of the buffer to consume N samples. Default: `first`.</li></ol>|<ol><li>`data`: struct containing data from the requested buffer, if available. If not available, an empty struct is returned.</li></ol>|Return and remove data from the buffer. See [the Tobii SDK documentation](https://developer.tobiipro.com/commonconcepts.html) for a description of the fields.|
|`consumeTimeRange()`|<ol><li>`startT`: (optional) timestamp indicating start of interval for which to return data. Defaults to start of buffer.</li><li>`endT`: (optional) timestamp indicating end of interval for which to return data. Defaults to end of buffer.</li><li>`timeIsLocalTime`: (optional) boolean value indicating whether time provided `startT` and `endT` parameters are in local system time (true, default) or remote time (false).</li></ol>|<ol><li>`data`: struct containing data from the requested buffer in the indicated time range, if available. If not available, an empty struct is returned.</li></ol>|Return and remove data from the buffer. See [the Tobii SDK documentation](https://developer.tobiipro.com/commonconcepts.html) for a description of the fields.|
|`peekN()`|<ol><li>`N`: (optional) number of samples to peek from the end of the buffer. Defaults to 1.</li><li>`side`: a string, possible values: `first` and `last`. Indicates from which side of the buffer to peek N samples. Default: `last`.</li></ol>|<ol><li>`data`: struct containing data from the requested buffer, if available. If not available, an empty struct is returned.</li></ol>|Return but do not remove data from the buffer. See [the Tobii SDK documentation](https://developer.tobiipro.com/commonconcepts.html) for a description of the fields.|
|`peekTimeRange()`|<ol><li>`startT`: (optional) timestamp indicating start of interval for which to return data. Defaults to start of buffer.</li><li>`endT`: (optional) timestamp indicating end of interval for which to return data. Defaults to end of buffer.</li><li>`timeIsLocalTime`: (optional) boolean value indicating whether time provided `startT` and `endT` parameters are in local system time (true, default) or remote time (false).</li></ol>|<ol><li>`data`: struct containing data from the requested buffer in the indicated time range, if available. If not available, an empty struct is returned.</li></ol>|Return but do not remove data from the buffer. See [the Tobii SDK documentation](https://developer.tobiipro.com/commonconcepts.html) for a description of the fields.|
|`clear()`|||Clear the buffer.|
|`clearTimeRange()`|<ol><li>`startT`: (optional) timestamp indicating start of interval for which to clear data. Defaults to start of buffer.</li><li>`endT`: (optional) timestamp indicating end of interval for which to clear data. Defaults to end of buffer.</li><li>`timeIsLocalTime`: (optional) boolean value indicating whether time provided `startT` and `endT` parameters are in local system time (true, default) or remote time (false).</li></ol>||Clear data within specified time range from the buffer.|
|`stop()`|<ol><li>`doClearBuffer`: (optional) boolean indicating whether the buffer of the indicated stream type should be cleared.</li></ol>||Stop recording data from this remote stream to buffer.|



## Working on the source
The enclosed Visual Studio project files can be opened using the `Titta.sln` file in the [SDK_wrapper directory](/SDK_wrapper). It is to be opened and built with Visual Studio 2022 (last tested with version 17.8.4).

### Building the mex files
Run `makeTittaLSLMex.m` to build the mex file.

For building the Linux mex file the default gcc version 11.2.0 included with Ubuntu 22.04 was used.
For compatibility with an earlier version of Ubuntu, either install the right GLIBCXX version or recompile following the instructions here. See [this issue](https://github.com/dcnieho/Titta/issues/40) 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
#### [Lab Streaming Layer library](https://github.com/sccn/liblsl)
To update the Lab Streaming Layer library used to build TittaLSL against, you need to manually put the some files in the right place:
1. The \*.h include files are placed in `\LSL_streamer\deps\include`
2. The Windows `lsl.lib` link library is placed in `\LSL_streamer\deps\lib`.
3. The \*.dll, \*.so and \*.dylib files are placed in the output directory, `\LSL_streamer\TittaLSLMex\+TittaLSL\+detail`.

#### [Titta](/SDK_wrapper)
TittaLSL also requires Titta and its dependencies to build. The build scripts are set up such that Titta is automatically built. However, ensure to check [Titta's dependencies](/SDK_wrapper/README.md#dependencies) and make sure they are available, or the build will fail.

## Acknowledgements
This project was made possible by funding from the [LMK foundation, Sweden](https://lmkstiftelsen.se/).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/dcnieho/Titta",
    "name": "TittaLSLPy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "Tobii PsychoPy Eye-tracking streaming remote LSL",
    "author": "Diederick C. Niehorster",
    "author_email": "diederick_c.niehorster@humlab.lu.se",
    "download_url": "",
    "platform": null,
    "description": "[![Downloads](https://static.pepy.tech/badge/tittalslpy)](https://pepy.tech/project/tittalslpy)\n[![PyPI Latest Release](https://img.shields.io/pypi/v/TittaLSLPy.svg)](https://pypi.org/project/TittaLSLPy/)\n[![image](https://img.shields.io/pypi/pyversions/TittaLSLPy.svg)](https://pypi.org/project/TittaLSLPy/)\n\n# TittaLSL\nThe TittaLSL tool is an extension to [Titta (and its TittaMex and TittaPy wrappers)](/readme.md#titta-tittamex-tittapy-classes). It allows to stream data from Tobii eye trackers in Titta's format using Lab Streaming Layer and to receive such data and access it through an API that is identical to that of Titta. That allows handling local and remote eye tracker data sources in a uniform manner, making it possible to design interesting experiments using multiple eye trackers.\n\nTittaLSL is a C++ library that can be compiled and used as a static library without Matlab/Octave or Python. However, MATLAB and Python wrappers are also provided in the form of TittaLSLMex and TittaLSLPy, respectively.\n\nIn comparison to the the [Lab Streaming Layer TobiiPro Connector](https://github.com/labstreaminglayer/App-TobiiPro), Titta LSL provides access to all gaze data fields instead of only gaze position on the screen, as well as the eye image, external signal, time synchronization and positioning streams. Samples are furthermore properly timestamped using the timestamps from the eye tracker, where possible (all streams except for the positioning stream, which doesn't have timestamps).\n\n## The `TittaLSL`, `TittaLSLMex` and `TittaLSLPy` classes\nThe functionality of TittaLSL is divided over two classes, `Sender` for making eye tracker data available on the network (AKA an outlet in Lab Streaming Layer terminology) and `Receiver` for recording from TittaLSL data streams available on the network (AKA an inlet). The below documents the available methods of these classes. The functionality below is exposed under the same names in MATLAB as `TittaLSL.Sender` and `TittaLSL.Receiver`, respectively. The same functionality is also available from `TittaLSLPy.Sender` and `TittaLSLPy.Receiver` instances, but in that case all function and property names as well as stream names use `snake_case` names instead of `camelCase`. In C++ all below functions and classes are in the `TittaLSL` namespace. See [here for example C++ code](/LSL_streamer/cppLSLTest/main.cpp) using the library, and [here for example Python code](/LSL_streamer/TittaLSLPy/test.py).\n\n### Free functions\n|Call|Inputs|Outputs|Description|\n| --- | --- | --- | --- |\n|`getTobiiSDKVersion()`||<ol><li>`SDKVersion`: A string containing the version of the Tobii SDK.</li></ol>|Get the version of the Tobii Pro SDK dynamic library that is used by TittaLSL.|\n|`getLSLVersion()`||<ol><li>`LSLVersion`: An int32 scalar denoting the version of Lab Streaming Layer.</li></ol>|Get the version of the Lab Streaming Layer dynamic library that is used by TittaLSL.|\n\n### Construction and initialization\n|Call|Inputs|Notes|\n| --- | --- | --- |\n|`TittaLSL::Sender()` (C++)<br>`TittaLSL.Sender()` (MATLAB)<br>`TittaLSLPy.Sender` (Python)|<ol><li>`address`: address of the eye tracker to be made available on the network. A list of connected eye trackers and their addresses can be using the static function [`Titta.findAllEyeTrackers()` in the Titta library](/readme.md#titta-tittamex-tittapy-classes).</li></ol>||\n|`TittaLSL::Receiver()` (C++)<br>`TittaLSL.Receiver()` (MATLAB)<br>`TittaLSLPy.Receiver` (Python)|<ol><li>`streamSourceID`: Source ID of LSL stream to record from. Must be a TittaLSL stream.</li><li>`initialBufferSize`: (optional) value indicating for how many samples memory should be allocated.</li><li>`doStartRecording`: (optional) value indicating whether recording from the stream should immediately be started.</li></ol>|The default initial buffer size should cover about 30 minutes of recording gaze data at 600Hz, and longer for the other streams. Growth of the buffer should cause no performance impact at all as it happens on a separate thread. To be certain, you can indicate a buffer size that is sufficient for the number of samples that you expect to record. Note that all buffers are fully in-memory. As such, ensure that the computer has enough memory to satify your needs, or you risk a recording-destroying crash.|\n\n### Methods\nThe following method calls are available on a `TittaLSL.Sender` instance:\n\n|Call|Inputs|Outputs|Description|\n| --- | --- | --- | --- |\n|`getEyeTracker()`||<ol><li>`eyeTracker`: information about the eyeTracker that TittaLSL is connected to.</li></ol>|Get information about the eye tracker that the TittaLSL instance is connected to and will stream data from.|\n|`start()`|<ol><li>`stream`: a string, possible values: `gaze`, `eyeImage`, `externalSignal`, `timeSync` and `positioning`.</li><li>`asGif`: an (optional) boolean that is ignored unless the stream type is `eyeImage`. It indicates whether eye images should be provided gif-encoded (true) or a raw grayscale pixel data (false).</li></ol>|<ol><li>`success`: a boolean indicating whether sending of the stream was started. May be false if sending was already started.</li></ol>|Start providing data of a specified type on the network.|\n|`setIncludeEyeOpennessInGaze()`|<ol><li>`include`: a boolean, indicating whether eye openness samples should be provided in the sent gaze stream or not. Default false.</li></ol>||Set whether calls to start or stop providing the gaze stream will include data from the eye openness stream. An error will be raised if set to true, but the connected eye tracker does not provide an eye openness stream.|\n|`isStreaming()`|<ol><li>`stream`: a string, possible values: `gaze`, `eyeImage`, `externalSignal`, `timeSync` and `positioning`.</li></ol>|<ol><li>`streaming`: a boolean indicating whether the indicated stream type is being made available on the network.</li></ol>|Check whether the specified stream type from the connected eye tracker is being made available on the network.|\n|`stop()`|<ol><li>`stream`: a string, possible values: `gaze`, `eyeImage`, `externalSignal`, `timeSync` and `positioning`.</li></ol>||Stop providing data of a specified type on the network.|\n\n\nThe following static calls are available for `TittaLSL.Receiver`:\n|Call|Inputs|Outputs|Description|\n| --- | --- | --- | --- |\n|`GetStreams()`|<ol><li>`stream`: (optional) string, possible values: `gaze`, `eyeImage`, `externalSignal`, `timeSync` and `positioning`. If provided, only streams of this type are discovered on the network.</li></ol>|<ol><li>`streamInfoList`: list of objects containing info about discovered streams.</li></ol>|Discover what TittaLSL streams are available on the network.|\n\nThe following method calls are available on a `TittaLSL.Receiver` instance. Note that samples provided by the `consume*()` and `peek*()` functions are almost identical to those provided by their namesakes in `Titta` for a local eye tracker. The only difference is that the samples provided by TittaLSL have two extra fields, `remoteSystemTimeStamp` and `localSystemTimeStamp`. `remoteSystemTimeStamp` is the timestamp as provided by the Tobii SDK on the system where the eye tracker is connected. `localSystemTimeStamp` is the same timestamp, but expressed in the clock of the receiving machine. This local time is computed by using the offset provided by Lab Streaming Layer's `time_correction` function for the stream that the receiver is connected to. See [the Tobii SDK documentation](https://developer.tobiipro.com/commonconcepts.html) for a description of the other fields.\n\n|Call|Inputs|Outputs|Description|\n| --- | --- | --- | --- |\n|`getInfo()`||<ol><li>`info`: object containing info about the remote stream.</li></ol>|Get info about the connected remote stream.|\n|`getType()`||<ol><li>`stream`: a stream indicating what type of data this remote source provides. Possible values: `gaze`, `eyeImage`, `externalSignal`, `timeSync` and `positioning`.</li></ol>|Get data type provided by the remote stream.|\n|`start()`|||Start recording data from this remote stream to buffer.|\n|`isRecording()`||<ol><li>`status`: a boolean indicating whether data of the indicated type is currently being recorded to the buffer.</li></ol>|Check if data from this remote stream is being recorded to buffer.|\n|`consumeN()`|<ol><li>`N`: (optional) number of samples to consume from the start of the buffer. Defaults to all.</li><li>`side`: a string, possible values: `first` and `last`. Indicates from which side of the buffer to consume N samples. Default: `first`.</li></ol>|<ol><li>`data`: struct containing data from the requested buffer, if available. If not available, an empty struct is returned.</li></ol>|Return and remove data from the buffer. See [the Tobii SDK documentation](https://developer.tobiipro.com/commonconcepts.html) for a description of the fields.|\n|`consumeTimeRange()`|<ol><li>`startT`: (optional) timestamp indicating start of interval for which to return data. Defaults to start of buffer.</li><li>`endT`: (optional) timestamp indicating end of interval for which to return data. Defaults to end of buffer.</li><li>`timeIsLocalTime`: (optional) boolean value indicating whether time provided `startT` and `endT` parameters are in local system time (true, default) or remote time (false).</li></ol>|<ol><li>`data`: struct containing data from the requested buffer in the indicated time range, if available. If not available, an empty struct is returned.</li></ol>|Return and remove data from the buffer. See [the Tobii SDK documentation](https://developer.tobiipro.com/commonconcepts.html) for a description of the fields.|\n|`peekN()`|<ol><li>`N`: (optional) number of samples to peek from the end of the buffer. Defaults to 1.</li><li>`side`: a string, possible values: `first` and `last`. Indicates from which side of the buffer to peek N samples. Default: `last`.</li></ol>|<ol><li>`data`: struct containing data from the requested buffer, if available. If not available, an empty struct is returned.</li></ol>|Return but do not remove data from the buffer. See [the Tobii SDK documentation](https://developer.tobiipro.com/commonconcepts.html) for a description of the fields.|\n|`peekTimeRange()`|<ol><li>`startT`: (optional) timestamp indicating start of interval for which to return data. Defaults to start of buffer.</li><li>`endT`: (optional) timestamp indicating end of interval for which to return data. Defaults to end of buffer.</li><li>`timeIsLocalTime`: (optional) boolean value indicating whether time provided `startT` and `endT` parameters are in local system time (true, default) or remote time (false).</li></ol>|<ol><li>`data`: struct containing data from the requested buffer in the indicated time range, if available. If not available, an empty struct is returned.</li></ol>|Return but do not remove data from the buffer. See [the Tobii SDK documentation](https://developer.tobiipro.com/commonconcepts.html) for a description of the fields.|\n|`clear()`|||Clear the buffer.|\n|`clearTimeRange()`|<ol><li>`startT`: (optional) timestamp indicating start of interval for which to clear data. Defaults to start of buffer.</li><li>`endT`: (optional) timestamp indicating end of interval for which to clear data. Defaults to end of buffer.</li><li>`timeIsLocalTime`: (optional) boolean value indicating whether time provided `startT` and `endT` parameters are in local system time (true, default) or remote time (false).</li></ol>||Clear data within specified time range from the buffer.|\n|`stop()`|<ol><li>`doClearBuffer`: (optional) boolean indicating whether the buffer of the indicated stream type should be cleared.</li></ol>||Stop recording data from this remote stream to buffer.|\n\n\n\n## Working on the source\nThe enclosed Visual Studio project files can be opened using the `Titta.sln` file in the [SDK_wrapper directory](/SDK_wrapper). It is to be opened and built with Visual Studio 2022 (last tested with version 17.8.4).\n\n### Building the mex files\nRun `makeTittaLSLMex.m` to build the mex file.\n\nFor building the Linux mex file the default gcc version 11.2.0 included with Ubuntu 22.04 was used.\nFor compatibility with an earlier version of Ubuntu, either install the right GLIBCXX version or recompile following the instructions here. See [this issue](https://github.com/dcnieho/Titta/issues/40) for more information.\n\n### Required environment variables\nSome 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):\n- `MATLAB_ROOT`: `C:\\Program Files\\MATLAB\\R2023b`\n- `PYTHON_ROOT`: `C:\\Program Files\\PsychoPy`\n\n### Dependencies\n#### [Lab Streaming Layer library](https://github.com/sccn/liblsl)\nTo update the Lab Streaming Layer library used to build TittaLSL against, you need to manually put the some files in the right place:\n1. The \\*.h include files are placed in `\\LSL_streamer\\deps\\include`\n2. The Windows `lsl.lib` link library is placed in `\\LSL_streamer\\deps\\lib`.\n3. The \\*.dll, \\*.so and \\*.dylib files are placed in the output directory, `\\LSL_streamer\\TittaLSLMex\\+TittaLSL\\+detail`.\n\n#### [Titta](/SDK_wrapper)\nTittaLSL also requires Titta and its dependencies to build. The build scripts are set up such that Titta is automatically built. However, ensure to check [Titta's dependencies](/SDK_wrapper/README.md#dependencies) and make sure they are available, or the build will fail.\n\n## Acknowledgements\nThis project was made possible by funding from the [LMK foundation, Sweden](https://lmkstiftelsen.se/).\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Interface for streaming and receiving Tobii eye tracker data using Lab Streaming Layer",
    "version": "1.3.0",
    "project_urls": {
        "Homepage": "https://github.com/dcnieho/Titta"
    },
    "split_keywords": [
        "tobii",
        "psychopy",
        "eye-tracking",
        "streaming",
        "remote",
        "lsl"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2cd5a589467ead614e6bce6ccfdfa723c722667e9621bd17035176c1e5c40287",
                "md5": "c9034749204c494dbcba57ef7aec3fd5",
                "sha256": "cc02dfd815a5ed312c20a396323afe48a911bd639a674185852d5c4973e86050"
            },
            "downloads": -1,
            "filename": "TittaLSLPy-1.3.0-cp310-cp310-macosx_10_14_x86_64.whl",
            "has_sig": false,
            "md5_digest": "c9034749204c494dbcba57ef7aec3fd5",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.8",
            "size": 2125075,
            "upload_time": "2024-01-30T08:27:03",
            "upload_time_iso_8601": "2024-01-30T08:27:03.506342Z",
            "url": "https://files.pythonhosted.org/packages/2c/d5/a589467ead614e6bce6ccfdfa723c722667e9621bd17035176c1e5c40287/TittaLSLPy-1.3.0-cp310-cp310-macosx_10_14_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "32a64a41b977537e3ab0c9cdc27b200c02ce9447147a66b8bdf48957724854ee",
                "md5": "08a6b161003c466a2045e6c198621060",
                "sha256": "4943a6f9bc2fe60dc892db65400a97346b980f74976fbb778796de4ad6a3ee23"
            },
            "downloads": -1,
            "filename": "TittaLSLPy-1.3.0-cp310-cp310-manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "08a6b161003c466a2045e6c198621060",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.8",
            "size": 7948383,
            "upload_time": "2024-01-30T08:27:05",
            "upload_time_iso_8601": "2024-01-30T08:27:05.891298Z",
            "url": "https://files.pythonhosted.org/packages/32/a6/4a41b977537e3ab0c9cdc27b200c02ce9447147a66b8bdf48957724854ee/TittaLSLPy-1.3.0-cp310-cp310-manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5e12bb881735426c7207a08345cdd41fb4d464924ced4a9aeb93bbfd3e5ebbcb",
                "md5": "af1bd8826a5c1e16e9d422c4c4c94870",
                "sha256": "2207168a9f53e299953f09ba3e46cfd797ee317f627390a5cfe417ac45538cfc"
            },
            "downloads": -1,
            "filename": "TittaLSLPy-1.3.0-cp310-cp310-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "af1bd8826a5c1e16e9d422c4c4c94870",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.8",
            "size": 2050325,
            "upload_time": "2024-01-30T08:27:08",
            "upload_time_iso_8601": "2024-01-30T08:27:08.041303Z",
            "url": "https://files.pythonhosted.org/packages/5e/12/bb881735426c7207a08345cdd41fb4d464924ced4a9aeb93bbfd3e5ebbcb/TittaLSLPy-1.3.0-cp310-cp310-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e5433af94e4405754be8c0a1cc299b14ba5463d5da90ec6040bf32b6b6d7f24c",
                "md5": "fc127ac1a846a97151d9c7130bf2a841",
                "sha256": "e4a31ed507db48b13adf050f29b3a569fd3e32c8ca8b18285f91cbaaaad53d7e"
            },
            "downloads": -1,
            "filename": "TittaLSLPy-1.3.0-cp311-cp311-macosx_10_14_x86_64.whl",
            "has_sig": false,
            "md5_digest": "fc127ac1a846a97151d9c7130bf2a841",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.8",
            "size": 2126353,
            "upload_time": "2024-01-30T08:27:09",
            "upload_time_iso_8601": "2024-01-30T08:27:09.928669Z",
            "url": "https://files.pythonhosted.org/packages/e5/43/3af94e4405754be8c0a1cc299b14ba5463d5da90ec6040bf32b6b6d7f24c/TittaLSLPy-1.3.0-cp311-cp311-macosx_10_14_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4f08f1d12f3e0a9e17bda39215a42b1df4fab30f32d4eb751b3567fb90a72a9f",
                "md5": "5e58fe3896b3c6a76c9f8218c385d907",
                "sha256": "20ed55092ce3f3fd62493785a7479454c6ab6db6fae17326167ffa75b8a05cf5"
            },
            "downloads": -1,
            "filename": "TittaLSLPy-1.3.0-cp311-cp311-manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "5e58fe3896b3c6a76c9f8218c385d907",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.8",
            "size": 7973066,
            "upload_time": "2024-01-30T08:27:11",
            "upload_time_iso_8601": "2024-01-30T08:27:11.542904Z",
            "url": "https://files.pythonhosted.org/packages/4f/08/f1d12f3e0a9e17bda39215a42b1df4fab30f32d4eb751b3567fb90a72a9f/TittaLSLPy-1.3.0-cp311-cp311-manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9fdb63061176a7951fdfea26efaa95bd40c9caede076f7d0b1852e7785d016a7",
                "md5": "17f269f80e1bbdae7fb9ab419a70d7d7",
                "sha256": "bea273451e2f806d827453cfafaa1916d8fa8718750967563f0fd81242584d54"
            },
            "downloads": -1,
            "filename": "TittaLSLPy-1.3.0-cp311-cp311-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "17f269f80e1bbdae7fb9ab419a70d7d7",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.8",
            "size": 2051469,
            "upload_time": "2024-01-30T08:27:13",
            "upload_time_iso_8601": "2024-01-30T08:27:13.057496Z",
            "url": "https://files.pythonhosted.org/packages/9f/db/63061176a7951fdfea26efaa95bd40c9caede076f7d0b1852e7785d016a7/TittaLSLPy-1.3.0-cp311-cp311-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e7c36c0af8f2a88d53fa502212fb0718294fa6c95f38884826a25b2c91ebe11e",
                "md5": "5031dcb81dba5e5fdcd098f90e29c8cc",
                "sha256": "1ba5880f5889760cc56fb428400a5c6efe8cb44730f23db85b4a81aabb9f9bcd"
            },
            "downloads": -1,
            "filename": "TittaLSLPy-1.3.0-cp312-cp312-macosx_10_14_x86_64.whl",
            "has_sig": false,
            "md5_digest": "5031dcb81dba5e5fdcd098f90e29c8cc",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.8",
            "size": 2127253,
            "upload_time": "2024-01-30T08:27:15",
            "upload_time_iso_8601": "2024-01-30T08:27:15.099753Z",
            "url": "https://files.pythonhosted.org/packages/e7/c3/6c0af8f2a88d53fa502212fb0718294fa6c95f38884826a25b2c91ebe11e/TittaLSLPy-1.3.0-cp312-cp312-macosx_10_14_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4dbf6376deded6a680db46de3bb9b2094c3870763514a3aa11e388bf95990f95",
                "md5": "8eb9b3c0de5f1f953832a242f92f536e",
                "sha256": "8e88b614287aa20610799506f9b9d6a47052e640b17d6ba698b0f148a3e466f9"
            },
            "downloads": -1,
            "filename": "TittaLSLPy-1.3.0-cp312-cp312-manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "8eb9b3c0de5f1f953832a242f92f536e",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.8",
            "size": 7971397,
            "upload_time": "2024-01-30T08:27:17",
            "upload_time_iso_8601": "2024-01-30T08:27:17.180926Z",
            "url": "https://files.pythonhosted.org/packages/4d/bf/6376deded6a680db46de3bb9b2094c3870763514a3aa11e388bf95990f95/TittaLSLPy-1.3.0-cp312-cp312-manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a2f06bdc184fff4ee4d230bd035c558253c9ad190cf900cb4a9dc2b695702523",
                "md5": "bbf93299d9a7e412c5c9108fce1a5777",
                "sha256": "1d14bea15e69231fdee092716e2b05ae3b2631facebd27954cfd22836bbfb588"
            },
            "downloads": -1,
            "filename": "TittaLSLPy-1.3.0-cp312-cp312-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "bbf93299d9a7e412c5c9108fce1a5777",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.8",
            "size": 2051439,
            "upload_time": "2024-01-30T08:27:19",
            "upload_time_iso_8601": "2024-01-30T08:27:19.373377Z",
            "url": "https://files.pythonhosted.org/packages/a2/f0/6bdc184fff4ee4d230bd035c558253c9ad190cf900cb4a9dc2b695702523/TittaLSLPy-1.3.0-cp312-cp312-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8de2dff499f18ab3442b22b9381edce24ef77123fe9098b93e12143fc231cbda",
                "md5": "2dd6e4bf839402091123b8c72ae7538b",
                "sha256": "6778a09014f25a082a6594fb95c3fc8d4966f9b0c8d2b8f6097c1119388fc114"
            },
            "downloads": -1,
            "filename": "TittaLSLPy-1.3.0-cp38-cp38-macosx_10_14_x86_64.whl",
            "has_sig": false,
            "md5_digest": "2dd6e4bf839402091123b8c72ae7538b",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 2124955,
            "upload_time": "2024-01-30T08:27:21",
            "upload_time_iso_8601": "2024-01-30T08:27:21.716909Z",
            "url": "https://files.pythonhosted.org/packages/8d/e2/dff499f18ab3442b22b9381edce24ef77123fe9098b93e12143fc231cbda/TittaLSLPy-1.3.0-cp38-cp38-macosx_10_14_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fa9ddc05bc7811a3d72c6fedfe8ee335e4c4ba16969640b4d8812d2bb2b836dc",
                "md5": "d4ff3f1dbbbf19a61db57510ff4138a2",
                "sha256": "1a9c8308c737d2b16e94bde6b5d3ddbd724bc0cc453e2fa20e2a38a6abdfe77a"
            },
            "downloads": -1,
            "filename": "TittaLSLPy-1.3.0-cp38-cp38-manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "d4ff3f1dbbbf19a61db57510ff4138a2",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 7957081,
            "upload_time": "2024-01-30T08:27:23",
            "upload_time_iso_8601": "2024-01-30T08:27:23.745485Z",
            "url": "https://files.pythonhosted.org/packages/fa/9d/dc05bc7811a3d72c6fedfe8ee335e4c4ba16969640b4d8812d2bb2b836dc/TittaLSLPy-1.3.0-cp38-cp38-manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9a640282fbc55c416cb4a4466786a3a1960727baf2e9e7ee59b52c6aab868967",
                "md5": "d0b48c24a1a5c69453e96ba77e8655fe",
                "sha256": "4fd14326a92b48eddfc4dc7037456b0416695cea7f94753303bec14dd26ed16d"
            },
            "downloads": -1,
            "filename": "TittaLSLPy-1.3.0-cp38-cp38-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "d0b48c24a1a5c69453e96ba77e8655fe",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 2070855,
            "upload_time": "2024-01-30T08:27:25",
            "upload_time_iso_8601": "2024-01-30T08:27:25.223479Z",
            "url": "https://files.pythonhosted.org/packages/9a/64/0282fbc55c416cb4a4466786a3a1960727baf2e9e7ee59b52c6aab868967/TittaLSLPy-1.3.0-cp38-cp38-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "981b32f6324fd9eb24ff23f304f7915c09d326cedaad9d471ce63e461c4c985e",
                "md5": "aaa0ec6efb9094edf3eeb62457bcc2fe",
                "sha256": "e354cd58ac1a0f9bc8ca1f775d61cd7e35331bf5c976c73679e792f44759101d"
            },
            "downloads": -1,
            "filename": "TittaLSLPy-1.3.0-cp39-cp39-macosx_10_14_x86_64.whl",
            "has_sig": false,
            "md5_digest": "aaa0ec6efb9094edf3eeb62457bcc2fe",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.8",
            "size": 2125281,
            "upload_time": "2024-01-30T08:27:27",
            "upload_time_iso_8601": "2024-01-30T08:27:27.173446Z",
            "url": "https://files.pythonhosted.org/packages/98/1b/32f6324fd9eb24ff23f304f7915c09d326cedaad9d471ce63e461c4c985e/TittaLSLPy-1.3.0-cp39-cp39-macosx_10_14_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "22f32c8aae703d2b00fd4ed2d2a050765ed106ff9f6129fa833a49c453d846ea",
                "md5": "b027832864900d0543cba218c2d1bfe9",
                "sha256": "fe2673cfc914c2b4973041b7a36ab14f2732a432c3e4d37528b9a278f3ad15b6"
            },
            "downloads": -1,
            "filename": "TittaLSLPy-1.3.0-cp39-cp39-manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "b027832864900d0543cba218c2d1bfe9",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.8",
            "size": 7949343,
            "upload_time": "2024-01-30T08:27:28",
            "upload_time_iso_8601": "2024-01-30T08:27:28.547508Z",
            "url": "https://files.pythonhosted.org/packages/22/f3/2c8aae703d2b00fd4ed2d2a050765ed106ff9f6129fa833a49c453d846ea/TittaLSLPy-1.3.0-cp39-cp39-manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f23ae1cf5e92477941caa688ca75c3de0b2c2e2f76617a21fa153dd1a2696ded",
                "md5": "61f46b3f849f439b75e5375c53599abf",
                "sha256": "80702c651a4d24af02a8c6aea5656bc05cf88c5bf1cc33a9b0fcc8c637d08758"
            },
            "downloads": -1,
            "filename": "TittaLSLPy-1.3.0-cp39-cp39-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "61f46b3f849f439b75e5375c53599abf",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.8",
            "size": 2049037,
            "upload_time": "2024-01-30T08:27:30",
            "upload_time_iso_8601": "2024-01-30T08:27:30.062003Z",
            "url": "https://files.pythonhosted.org/packages/f2/3a/e1cf5e92477941caa688ca75c3de0b2c2e2f76617a21fa153dd1a2696ded/TittaLSLPy-1.3.0-cp39-cp39-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-30 08:27:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dcnieho",
    "github_project": "Titta",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "tittalslpy"
}
        
Elapsed time: 0.17439s