Home › Forums › Software Development › [Solved] Trouble Subscribing to EyeX GazeData Stream
- This topic has 5 replies, 2 voices, and was last updated 7 years, 4 months ago by Grant [Tobii].
- AuthorPosts
- 15/05/2017 at 18:38 #6872CharlesParticipant
I’m just trying to set up a ‘Hello World’ example in Python using an EyeX tracker. I’ve followed the guide given in the SDK documentation to subscribe to the GazeData stream, but my callback isn’t doing anything. Below is a link to a Gist with my short attempt. What am I missing?
https://gist.github.com/Skwidensky/62a9f1af11624a5607dd0e0e2111af31
Sample output:
Starting up
Found eye-tracker:
Address: tet-tcp://127.0.0.1
Model: EyeX_Controller
Serial numberEYEX2-030176009303
Subscribing to GazeData for eye tracker with serial number
EYEX2-030176009303
Unsubscribed from gaze data
Last received gaze package:
NoneAs you can see from the final print statement, my global_gaze_data variable is never assigned.
15/05/2017 at 22:42 #6874Grant [Tobii]KeymasterHi @chuck, could you kindly provide some information of what SDK you are using? There was a python binding created by a user for the Gaze SDK but that has now since been deprecated and replaced with our new low level API which you can get @
https://www.nuget.org/packages/Tobii.StreamEngine.Native/
https://www.nuget.org/packages/Tobii.StreamEngine/This is a low level API so please only use it if you know why you are doing it. Very little support is going to be provided.
16/05/2017 at 01:10 #6877CharlesParticipantThe command “pip list” shows that I downloaded tobii-research (1.0.4) with the “pip install tobii_research” command.
I’ll check out the StreamEngine and see how it works — thank you!
17/05/2017 at 23:26 #6891Grant [Tobii]KeymasterHi @chuck, thanks for the clarification. In fact this SDK (Tobii Pro SDK) is specifically designed to only work with Tobii Pro devices such as TX300, TX-120, etc and *NOT* the Tobii Tech range of trackers such as EyeX or C4.
Accordingly, these python bindings will not work with the EyeX.
Hopefully you manage to get up and running with our new low level Stream Engine… best of luck!
18/05/2017 at 02:17 #6892CharlesParticipantI did by using the .NET SDK instead and going from the minimal example provided. Thanks! 🙂
18/05/2017 at 21:09 #6899Grant [Tobii]KeymasterCool, glad you managed to get yourself up and running!
- AuthorPosts
- You must be logged in to reply to this topic.