Home › Forums › Legacy SDKs › Go bindings
- This topic has 4 replies, 3 voices, and was last updated 8 years, 11 months ago by Johan Fogelström.
- AuthorPosts
- 11/02/2014 at 11:46 #430Johan FogelströmParticipant
Hi, me and some friends have some history working with eye trackers and are now looking into remaking our core product. For this, we choose Golang due to its many features that work well with external requirements. Problem is that there are no Go bindings for EyeX or Gaze SDK.
So we use the provided headerfiles of the C bindings are guidance in making our own.
We know we can use the provided DLL’s and communicate with them, since we can initialize the system and gets the OK value returned.But when attempting to create a context, it just sets the pointer we give it to 1. This does not match the expected behaviour. We expect to see a pointer to the context. Are we correct in this expectation and need to do further debugging or is it expected behaviour?
11/02/2014 at 16:46 #435AndersParticipantHi Johan,
cool that you’re using Go! There aren’t any reasons why it shouldn’t work.One possible cause of the problem that you describe is that the
txCreateContext
API call requires that the context handle passed into it (as a reference) is set toTX_EMPTY_HANDLE
before the call.11/02/2014 at 22:31 #439Johan FogelströmParticipantFound the problem. Error was in Go-land. An array holding function pointers to the DLL-functions was out of order with a list of constants naming the elements in the array. Turns out we have been calling
txUninitializeSystem
all this time.We will look into open sourcing the result when we are done if anyone is interested.
12/02/2014 at 09:08 #445Robert [Tobii]ParticipantGo go go!
28/12/2015 at 14:42 #3993Johan FogelströmParticipanthttps://github.com/BreamIO/gobii
After being stuck in various business decisions for quite a while, I can finally say that it has been open-sourced.
We finally decided to do this since it holds no value for anymore and it might inspire someone else to write eye tracker applications in Go.Included in the examples folder is some basic applications we have had great use of for debugging and other et related tasks (including a console-calibrator).
I would be a shame if all this was forgotten, which is why I post it here, with the hopes that it will be of use to someone.
- AuthorPosts
- You must be logged in to reply to this topic.