Home Forums Software Development Getting distance and fixation stability with ET5 ?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #21566
    fred
    Participant

    Hello everyone,
    I’m back with a new project with a newly acquired Tobii ET 5, I’m working on a serious game (c#) for dyslexic children and I want to interactively adapt the size of the stimulus with gaze distance and check for central fixation before presenting the stimuli. Two questions:
    1) since it is easier for me to get the Nuget Tobii pro library, and I am not recording any data, will it be possible to get eye distance and fixation data without a license?
    2) if not, is it possible with the stream engine library (I still have trouble including this library in my project, I am not a professional developer).
    Thanks for any information,
    –Frédéric

    #21591
    Grant [Tobii]
    Keymaster

    Hi @fmaillet, the only SDK that is provided for use with the Tobii ET5 is the Stream Engine API.

    You can download this API @ https://developer.tobii.com/software-downloads/

    So, to set up the C# Sample in .NET, please implement the following steps:

    1) Setup new VS Solution (Console App .NET Framework)
    2) Create a new folder called ‘tobii’ in the project directory
    3) Copy into the tobii folder the following directories from the Stream Engine ZIP; bindings, include, lib
    4) Within the VS Solution Explorer, make sure these directories are ‘included in project’ (You may need to select ‘view all files’ button)
    5) Paste into Program.cs the C# Sample Code found @ https://developer.tobii.com/product-integration/stream-engine/getting-started/
    6) Modify Program.cs, line 27: List urls;
    7) Modify Program.cs, line 39: Change TOBII_FIELD_OF_USE_INTERACTIVE to TOBII_FIELD_OF_USE_STORE_OR_TRANSFER_FALSE
    8) Modify Tobii.StreamEngine.Interop.cs, Line 23: public const string stream_engine_dll = “tobii\\lib\\tobii\\tobii_stream_engine”;
    9) Comment out Tobii.StreamEngine.Interop.cs, Lines 487 & 488
    //[DllImport(stream_engine_dll, CallingConvention = CallingConvention.Cdecl, EntryPoint = “tobii_calibration_stimulus_points_get”)]
    //public static extern tobii_error_t tobii_calibration_stimulus_points_get(IntPtr device, out tobii_calibration_stimulus_points_t stimulus_points);
    10) In VS Solution Explorer, find the tobii_stream_engine.dll and set copy to output directory as “Copy Always”
    11) Set Build Target to x64

    Try it out and let us know how you get on. Best Wishes.

    #21600
    fred
    Participant

    Hello Grant,
    Thank you very much for your detailed answer.
    I have already filled out the streaming engine API request form a few days ago. I don’t have any answer yet. But since I have an older version of this library, I was able to try your tuto.
    I managed to add all tobii folders to the project and the example code is now ok with the “using Tobii.StreamEngine” which is a big progress for me 🙂 and I applied all the changes you requested. I don’t have any error reported by VS, but the runtime fails with a System.DllNotFoundException: Unable to load ‘tobii_stream_engine’ DLL raised by the tobii_api_create method. Anticipating your question, I double checked that the ‘tobii_stream_engine.dll’ file property is correctly set to ‘Copy always’.

    I guess my old library is causing the problem? Your tutorial can probably work with the latest streaming engine library?

    #21605
    Grant [Tobii]
    Keymaster

    Hi Fred can you tell me the email address you used to register interest and I can follow up for you on the download request. Thanks

    #21607
    fred
    Participant

    yes, it’s [email protected]

    #21620
    Grant [Tobii]
    Keymaster

    Thanks Fred, I have raised this with the sales team who should get back to your promptly.

    #21656
    fred
    Participant

    Hi Grant,
    I finally get the last stream engine library and I’ve just finished to get the C# sample running fine ! I’m just so happy to see all gaze points running in the console window 😉
    Thanks for your help, I’m going now to adapt this to my project and get eyes distance from screen. Coming back to you if I get stuck,
    –Fred

    #21669
    Grant [Tobii]
    Keymaster

    Great! Glad to hear you got it all working 😀

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.