Home › Forums › Software Development › Getting distance and fixation stability with ET5 ?
- This topic has 7 replies, 2 voices, and was last updated 2 years, 8 months ago by Grant [Tobii].
- AuthorPosts
- 19/01/2022 at 07:02 #21566fredParticipant
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éric19/01/2022 at 17:56 #21591Grant [Tobii]KeymasterHi @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: Listurls;
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 x64Try it out and let us know how you get on. Best Wishes.
20/01/2022 at 22:09 #21600fredParticipantHello 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?
21/01/2022 at 14:45 #21605Grant [Tobii]KeymasterHi 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
21/01/2022 at 19:54 #21607fredParticipantyes, it’s [email protected]
25/01/2022 at 12:05 #21620Grant [Tobii]KeymasterThanks Fred, I have raised this with the sales team who should get back to your promptly.
05/02/2022 at 09:05 #21656fredParticipantHi 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,
–Fred10/02/2022 at 13:31 #21669Grant [Tobii]KeymasterGreat! Glad to hear you got it all working 😀
- AuthorPosts
- You must be logged in to reply to this topic.