<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://theeyetribe.com/forum/feed.php?f=24&amp;t=639" />

<title>The Eye Tribe</title>
<subtitle>Developer Forum</subtitle>
<link href="http://theeyetribe.com/forum/index.php" />
<updated>2016-11-01T20:40:21+02:00</updated>

<author><name><![CDATA[The Eye Tribe]]></name></author>
<id>http://theeyetribe.com/forum/feed.php?f=24&amp;t=639</id>
<entry>
<author><name><![CDATA[aksel@akseltorgard.com]]></name></author>
<updated>2016-11-01T20:40:21+02:00</updated>
<published>2016-11-01T20:40:21+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2664#p2664</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2664#p2664"/>
<title type="html"><![CDATA[Re: pb sdk 0.9.77 ?]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2664#p2664"><![CDATA[
<blockquote><div><cite>Anders wrote:</cite><br />Great project. I strongly encourage you to make this forum aware of you github heatmap project by posting a new thread about it. Many could benefit from it.<br /></div></blockquote><br /><br />Thanks! Will do.<br /><br /><blockquote class="uncited"><div><br />I strongly encourage anyone doing GUI work to use JavaFX. Especially when all the hard work of setting up the needed Gradle routines is already done for you in the project you mention.<br /></div></blockquote><br /><br />Yeah, that's probably a good idea. I'm just used to Swing.<br /><br />I also just remembered why I added the Jar in the first place.<br />The project started out as a template I created way back. It is set up to use Maven, and I could never figure out how to add the SDK.<br /><br /><span style="color: #80BFBF">Adding the following snippet from BinTray to the pom.xml file gives me an error, telling me the dependency was not found.<br /><dl class="codebox"><dt>Code: </dt><dd><code>&lt;dependency&gt;<br />    &lt;groupId&gt;com.theeyetribe&lt;/groupId&gt;<br />    &lt;artifactId&gt;eyetribe-java&lt;/artifactId&gt;<br />    &lt;version&gt;0.9.77&lt;/version&gt;<br />    &lt;type&gt;pom&lt;/type&gt;<br />&lt;/dependency&gt;<br /></code></dd></dl><br />Any word on this? Does it only work with JCenter?</span><br /><br />EDIT: Nevermind, noticed you mention this in the readme file. Thanks again for the help!<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=12523">skataaksel@akseltorgard.com</a> — 01 Nov 2016, 20:40</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Anders]]></name></author>
<updated>2016-11-01T13:39:21+02:00</updated>
<published>2016-11-01T13:39:21+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2663#p2663</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2663#p2663"/>
<title type="html"><![CDATA[Re: pb sdk 0.9.77 ?]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2663#p2663"><![CDATA[
I am glad to hear we've solved your problem. <br /><br />On the other hand I'm sad to learn that corrupt Jars are being redistributed from somewhere and that this was the cause of the problems you've been facing.<br /><br />Other developers reading this should make sure to ONLY use releases from the <a href="https://github.com/EyeTribe/tet-java-client" class="postlink">official repository</a>. Also, I STRONGLY advice any developers wanting to use the EyeTribe Java SDK to use Gradle and JCenter to handle the library dependency. That is the modern and build system friendly approach to handling dependency complexities in Java projects.<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=120">skataAnders</a> — 01 Nov 2016, 13:39</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[f.maillet@wanadoo.fr]]></name></author>
<updated>2016-11-01T12:29:26+02:00</updated>
<published>2016-11-01T12:29:26+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2662#p2662</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2662#p2662"/>
<title type="html"><![CDATA[Re: pb sdk 0.9.77 ?]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2662#p2662"><![CDATA[
You're right Anders, the 0.9.77 jar file I have is smaller than the one you linked, and the gson structure is missing.<br />It seems I have found an incomplete 0.9.77 jar file but I just can't help you and tell where I initially got it. Aksel may be more precise as we probably faced the same problem.<br /><br />If I replace the jar file you linked in your last post, all is working perfectly.<br />Seems we have finally found the origin of the problem. My programs design wasn't so bad as they run nicely by now <img src="http://theeyetribe.com/forum/images/smilies/icon_e_wink.gif" alt=";)" title="Wink" /> but you're right, I have to check how to link through Bintray. I will cope with Gradle for my Attention Aware System university project. I'm on it by now.<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=10767">skataf.maillet@wanadoo.fr</a> — 01 Nov 2016, 12:29</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Anders]]></name></author>
<updated>2016-11-01T10:56:30+02:00</updated>
<published>2016-11-01T10:56:30+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2661#p2661</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2661#p2661"/>
<title type="html"><![CDATA[Re: pb sdk 0.9.77 ?]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2661#p2661"><![CDATA[
@f.maillet<br /><br /><blockquote class="uncited"><div><br />I made the checks you asked both of you.<br />-) I have the same behaviour in command line jar or from the netbeans ide.<br />-) the Anders project works fine with 0.9.77 sources<br /><br />Given this last result, I came back to all our tries and checked with 0.9.77 sources instead of jar file (and gson-2.3.1 + annotations-13.0 jar libraries) : ALL of them run nicely when build like this...<br />I then checked back again with the 0.9.77 jar file and it fails : this jar file always fails to activate gazemanager. But when the project is build from sources it works.<br /></div></blockquote><br /><br />The project I posted has a dependency to a <a href="https://bintray.com/eyetribe/maven/eyetribe-java" class="postlink">JCenter package, eyetribe-java</a>. It does _not_ contain the sourcecode. This is no different from using the Jar <a href="https://github.com/EyeTribe/tet-java-client/releases" class="postlink">downloaded from the EyeTribe Java SDK github page</a>.<br /><br /><blockquote class="uncited"><div><br />One strange thing : when checking back with the 0.9.77 jar, I firstly let the gson-2.31 library in the project : and then it worked (?!). I was firstly puzzled, you can imagine, before noticing the fact that I let the gson library in the project. When I remove it, I reproduce the gm activation fail problem...<br /></div></blockquote><br /><br />This sounds very strange and indicates that something is wrong with your JAR file or Netbeans project setup. Could you please check that the JAR file you are using has the exact same size as the one from the <a href="https://github.com/EyeTribe/tet-java-client/releases" class="postlink">EyeTribe Java SDK release page</a>? Could you also please check if your Netbeans project uses obfuscation (e.g. proguard) by default and turn that off if it is the case.<br /><br />Also, could you 'open' the JAR file you use with a Zip program (7zip or winzip) and check if the folder structure 'com\google\gson\' is contained within?<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=120">skataAnders</a> — 01 Nov 2016, 10:56</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Anders]]></name></author>
<updated>2016-11-01T10:24:08+02:00</updated>
<published>2016-11-01T10:24:08+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2660#p2660</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2660#p2660"/>
<title type="html"><![CDATA[Re: pb sdk 0.9.77 ?]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2660#p2660"><![CDATA[
@aksel<br /><br /><blockquote class="uncited"><div><br />I am the guy f.maillet mentioned in his previous post.<br /><br />While working on this project, I too had issues with 0.9.77. I used IntelliJ, but never tested with an exported jar.<br /></div></blockquote><br /><br />Great project. I strongly encourage you to make this forum aware of you github heatmap project by posting a new thread about it. Many could benefit from it.<br /><br /><blockquote class="uncited"><div><br />Note that both mine and f.maillet's applications use Swing for GUI.<br />Maybe that has something to do with it? I noticed the demo you offer comes with a JavaFX example.<br /></div></blockquote><br /><br />Hard to say. But since Swing is from the mid 90'es, maybe it's safe to say that it has passed it's expiry date. I strongly encourage anyone doing GUI work to use JavaFX. Especially when all the hard work of setting up the needed Gradle routines is already done for you in the project you mention.<br /><br /><blockquote class="uncited"><div><br />I sadly do not have access to an eye tracker any longer. I borrowed the one I had from my teacher.<br />I will get my hands one later this month, when I will start work on a more advanced heatmap application.<br />I will make sure to retry with 0.9.77, also with exported jars.<br /></div></blockquote><br /><br />Looking forward to it. I encourage you to use the package available through Bintray using Gradle instead of local JARs. It is faster and easier to maintain.<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=120">skataAnders</a> — 01 Nov 2016, 10:24</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[f.maillet@wanadoo.fr]]></name></author>
<updated>2016-11-01T09:44:32+02:00</updated>
<published>2016-11-01T09:44:32+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2659#p2659</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2659#p2659"/>
<title type="html"><![CDATA[Re: pb sdk 0.9.77 ?]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2659#p2659"><![CDATA[
Hello Aksel and Anders,<br />I made the checks you asked both of you.<br />-) I have the same behaviour in command line jar or from the netbeans ide.<br />-) the Anders project works fine with 0.9.77 sources<br /><br />Given this last result, I came back to all our tries and checked with 0.9.77 sources instead of jar file (and gson-2.3.1 + annotations-13.0 jar libraries) : ALL of them run nicely when build like this...<br />I then checked back again with the 0.9.77 jar file and it fails : this jar file always fails to activate gazemanager. But when the project is build from sources it works.<br /><br />One strange thing : when checking back with the 0.9.77 jar, I firstly let the gson-2.31 library in the project : and then it worked (?!). I was firstly puzzled, you can imagine, before noticing the fact that I let the gson library in the project. When I remove it, I reproduce the gm activation fail problem...<br />Not sure it is clear : for all the tests we have proposed so long (mines, Anders gitHub test, Aksel heatmap and threaded test, ...), and so whatever the design of the program may be <img src="http://theeyetribe.com/forum/images/smilies/icon_e_wink.gif" alt=";)" title="Wink" />, I have this constant behaviour :<br /><br />+) they do work with 0.9.66 jar library alone (and this is true within or outside netbeans ide)<br />-) they do not work when build with 0.9.77 jar library alone (and this is true within or outside netbeans ide)<br />+) they do work when build from 0.9.77 sources (of course given gson and annotations libraries too)<br />+) they do work when build with 0.9.77 jar library AND gson-2.3.1 jar library ! ?<br /><br />Hope that things get clearer for you. The last point may give you a cue that is far beyond my competencies.<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=10767">skataf.maillet@wanadoo.fr</a> — 01 Nov 2016, 09:44</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[aksel@akseltorgard.com]]></name></author>
<updated>2016-10-31T22:00:10+02:00</updated>
<published>2016-10-31T22:00:10+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2658#p2658</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2658#p2658"/>
<title type="html"><![CDATA[Re: pb sdk 0.9.77 ?]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2658#p2658"><![CDATA[
Hi Anders<br /><br />I am the guy f.maillet mentioned in his previous post.<br /><br />While working on <a href="https://github.com/torgard/eyetribe-heatmap" class="postlink">this project</a>, I too had issues with 0.9.77. I used IntelliJ, but never tested with an exported jar.<br /><br />Specifically, the GazeManager refused to activate. I am fairly certain there was an error output to the console, but I can't be sure. Any word on this, f.maillet?<br /><br />Note that both mine and f.maillet's applications use Swing for GUI.<br />Maybe that has something to do with it? I noticed the demo you offer comes with a JavaFX example.<br /><br />I sadly do not have access to an eye tracker any longer. I borrowed the one I had from my teacher.<br />I will get my hands one later this month, when I will start work on a more advanced heatmap application.<br />I will make sure to retry with 0.9.77, also with exported jars.<br /><br />And to f.maillet, please try running <a href="https://github.com/arnebp/eyetribe-java-gradlesetup" class="postlink">this project by Anders.</a><p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=12523">skataaksel@akseltorgard.com</a> — 31 Oct 2016, 22:00</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Anders]]></name></author>
<updated>2016-10-31T14:13:40+02:00</updated>
<published>2016-10-31T14:13:40+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2657#p2657</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2657#p2657"/>
<title type="html"><![CDATA[Re: pb sdk 0.9.77 ?]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2657#p2657"><![CDATA[
<blockquote class="uncited"><div><br /><dl class="codebox"><dt>Code: </dt><dd><code>//Endlessly looping thread.<br />        new Thread(new Runnable() {<br />            public void run() {<br />                while (gm.isActivated()) {<br />                    try {<br />                        //sleep for 1 second<br />                        Thread.sleep(1000);<br />                    } catch (InterruptedException e) {<br />                        e.printStackTrace();<br />                    }<br />                }<br />            }<br />        }).start();</code></dd></dl><br /></div></blockquote><br /><br />This code is not 'endless looping'. It only loops if gm.isActivated() is true.<br /><br />Try running the exact code of the project I created for you and check the console output.<br /><br />Also, what happens if you export your project to a JAR and run it from the cmd line instead of from NetBeans? Netbeans seems to be the common denominator for several devs who've had issues.<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=120">skataAnders</a> — 31 Oct 2016, 14:13</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[f.maillet@wanadoo.fr]]></name></author>
<updated>2016-10-31T13:35:54+02:00</updated>
<published>2016-10-31T13:35:54+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2656#p2656</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2656#p2656"/>
<title type="html"><![CDATA[Re: pb sdk 0.9.77 ?]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2656#p2656"><![CDATA[
Hello Anders,<br />I get the 0.9.77 jar file on gitHub.<br />I have tried the HeatMap gitHub program, which is quite a good piece of code and have the same problem : works fine with 0.9.66 but not with 0.9.77. Checking with his author, Aksel, he told me that he had previously the same problem with 0.9.77 sdk that lead him to switch back to 0.9.66. (we're together on the same windows 10 platform, netbeans 8.2 and jdk 1.8).<br /><br />We checked together the code below (which is good standard threaded as you asked) and have the same problem : the 0.9.77 sdk doesn't succeed in activating the GazeManager while the 0.9.66 works nicely.<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>package testeyetribe;<br /><br />import com.theeyetribe.clientsdk.GazeManager;<br />import com.theeyetribe.clientsdk.IGazeListener;<br />import com.theeyetribe.clientsdk.data.GazeData;<br /><br />public class TestMain {<br />    public static void main(String&#91;&#93; args) {<br />        final GazeManager gm = GazeManager.getInstance();<br />        gm.activate();<br />        gm.addGazeListener(new GazeListener());<br /><br />        //Endlessly looping thread.<br />        new Thread(new Runnable() {<br />            public void run() {<br />                while (gm.isActivated()) {<br />                    try {<br />                        //sleep for 1 second<br />                        Thread.sleep(1000);<br />                    } catch (InterruptedException e) {<br />                        e.printStackTrace();<br />                    }<br />                }<br />            }<br />        }).start();<br />    }<br /><br />    static class GazeListener implements IGazeListener {<br />        public void onGazeUpdate(GazeData gazeData) {<br />            System.out.println(gazeData.toString());<br />        }<br />    }<br />}</code></dd></dl><p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=10767">skataf.maillet@wanadoo.fr</a> — 31 Oct 2016, 13:35</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Anders]]></name></author>
<updated>2016-10-31T10:57:36+02:00</updated>
<published>2016-10-31T10:57:36+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2655#p2655</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2655#p2655"/>
<title type="html"><![CDATA[Re: pb sdk 0.9.77 ?]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2655#p2655"><![CDATA[
<blockquote class="uncited"><div><br />Do you mean that the litle above code with a simple frame and a JLabel following user gaze is ok with both libraries ?<br /></div></blockquote><br /><br />No. I mean that I have no trouble establishing connection when following the standard rules of controlling a Java program life-cycle. See the code of the project I posted.<br /><br /><blockquote class="uncited"><div><br />could it be that my jar file be corrupted in a way that allow compilation, but not execution ?<br /></div></blockquote><br /><br />Hard to say without knowing where you got the library from in the first place.<br /><br /><blockquote class="uncited"><div><br />May I have a &quot;fresh&quot; copy of the library ?<br /></div></blockquote><br /><br />As mentioned in my previous post, I have verified that the latest release of the github repo works as intended. Use that.<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=120">skataAnders</a> — 31 Oct 2016, 10:57</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[f.maillet@wanadoo.fr]]></name></author>
<updated>2016-10-28T14:20:50+02:00</updated>
<published>2016-10-28T14:20:50+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2654#p2654</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2654#p2654"/>
<title type="html"><![CDATA[Re: pb sdk 0.9.77 ?]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2654#p2654"><![CDATA[
Do you mean that the litle above code with a simple frame and a JLabel following user gaze is ok with both libraries ?<br />May I have a &quot;fresh&quot; copy of the library ? could it be that my jar file be corrupted in a way that allow compilation, but not execution ?<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=10767">skataf.maillet@wanadoo.fr</a> — 28 Oct 2016, 14:20</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Anders]]></name></author>
<updated>2016-10-28T11:17:47+02:00</updated>
<published>2016-10-28T11:17:47+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2653#p2653</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2653#p2653"/>
<title type="html"><![CDATA[Re: pb sdk 0.9.77 ?]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2653#p2653"><![CDATA[
I've set up a simple project on Github, see <a href="https://github.com/arnebp/eyetribe-java-gradlesetup" class="postlink">eyetribe-java-gradlesetup</a>. I am unable to reproduce any of the errors you seem to be experiencing. I've tried using both the Bintray package as well as the prebuilt JAR from the SDK 'releases' section. I establish connection immediately in both cases.<br /><br />I still believe that the issues you are experiencing are caused by your program architecture. My best advise is still to look into Java threading and look at the example projects available online. I do not know how else to help you.<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=120">skataAnders</a> — 28 Oct 2016, 11:17</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[f.maillet@wanadoo.fr]]></name></author>
<updated>2016-10-28T09:51:52+02:00</updated>
<published>2016-10-28T09:51:52+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2652#p2652</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2652#p2652"/>
<title type="html"><![CDATA[Re: pb sdk 0.9.77 ?]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2652#p2652"><![CDATA[
Hello Anders,<br />Nice to read you, I previously mentionned I was working under windows 10 in last Netbeans 8.2 IDE and using last 1.8.0_111 JDK.<br />you didn't succeed in running the above code ? It should be sufficient in order to check for the sdk I think.<br /><br />Anyway, you can find my university project here (not sure you will find it correctly proof coded, but as for now it works nicely with the 0.9.60 sdk (which may be sufficient for me, my post was only related to your notice that the latest sdk seems to be in trouble while activating the gazemanager)<br /><br /><!-- m --><a class="postlink" href="https://github.com/fmaillet/Projet-ACIT">https://github.com/fmaillet/Projet-ACIT</a><!-- m --><p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=10767">skataf.maillet@wanadoo.fr</a> — 28 Oct 2016, 09:51</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Anders]]></name></author>
<updated>2016-10-28T09:39:22+02:00</updated>
<published>2016-10-28T09:39:22+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2651#p2651</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2651#p2651"/>
<title type="html"><![CDATA[Re: pb sdk 0.9.77 ?]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2651#p2651"><![CDATA[
<blockquote class="uncited"><div><br />I am unable to help you without your source code or knowledge about the system you are running your program on.<br /></div></blockquote><br /><br />Could you share your entire project so I can inspect it? Could you share information of the system you are trying to run your program on (OS, Java version etc)?<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=120">skataAnders</a> — 28 Oct 2016, 09:39</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[f.maillet@wanadoo.fr]]></name></author>
<updated>2016-10-27T21:50:55+02:00</updated>
<published>2016-10-27T21:50:55+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2650#p2650</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2650#p2650"/>
<title type="html"><![CDATA[Re: pb sdk 0.9.77 ?]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=639&amp;p=2650#p2650"><![CDATA[
yes, the program terminates, but before terminating it says (System.out.println...) it hasn't succeeded in activating gazemanager...<br />So, let's build a program that doesn't terminate :<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>package testeyetribe;<br /><br />import com.theeyetribe.clientsdk.GazeManager;<br />import com.theeyetribe.clientsdk.IGazeListener;<br />import com.theeyetribe.clientsdk.data.GazeData;<br />import java.awt.Point;<br />import javax.swing.JFrame;<br />import static javax.swing.JFrame.EXIT_ON_CLOSE;<br />import javax.swing.JLabel;<br />import javax.swing.SwingUtilities;<br /><br /><br /><br /><br /><br /><br />public class TestMain <br />{<br />    static GazeManager gm ;<br />    static JFrame myFrame ;<br />    static JLabel gazePointer ;<br />    <br />    public static void main(String&#91;&#93; args) {<br />  <br />        gm = GazeManager.getInstance();  <br />        boolean success = gm.activate();<br />        System.out.println (success) ;<br />        final GazeListener gazeListener = new GazeListener();<br />        gm.addGazeListener(gazeListener);<br />        System.out.println (gm.isActivated()) ;<br />        <br />        //Add a window<br />        myFrame = new JFrame (&quot;Test EyeTribe&quot;) ;<br />        myFrame.setSize (700, 700) ;<br />        myFrame.setLayout(null);<br />        myFrame.setDefaultCloseOperation(EXIT_ON_CLOSE);<br />        myFrame.setLocationRelativeTo(null);<br />        myFrame.setVisible(true);<br />        //Add a label<br />        gazePointer = new JLabel (&quot;X&quot;) ;<br />        gazePointer.setBounds (350, 350, 20, 20) ;<br />        myFrame.getContentPane().add(gazePointer) ;<br />        gazePointer.setVisible (true) ;<br />        <br />    }<br />}<br />    <br />class GazeListener implements IGazeListener {<br />    <br />    @Override<br />    public void onGazeUpdate(GazeData gazeData)<br />    {<br />        Point p = new Point ((int) gazeData.smoothedCoordinates.x, (int) gazeData.smoothedCoordinates.y) ;<br />        SwingUtilities.convertPointFromScreen(p, TestMain.myFrame.getContentPane()) ;<br />        p.x = p.x - TestMain.gazePointer.getWidth() / 2 ;<br />        p.y = p.y - TestMain.gazePointer.getHeight() / 2 ;<br />        TestMain.gazePointer.setLocation ( p ) ;<br />    }<br />}<br />    </code></dd></dl><br /><br />Not so optimal and beautiful may be, but than now the program doesn't terminate, you have a little frame with a cross that should roughly follow user gaze. Is that a correct one ?<br />I've just tested this and I still have the same behaviour :<br />-) with the 0.9.60 sdk the cross is correctly following my gaze in the window boundaries<br />-) with the 0.9.77 sdk, the program doesn't terminate, the cross is still in the window and in the output, you have false and false, indicating the gazemanager isn'nt activated...<br /><br />ps: by the way, your link to gitHub is of limited interest, the three projects pointed out are written with old libraries (2014, 2015 and 0.9.60 for the more recent one), and therefore doesn't address the question of this post which is related to your last library. Nevertheless, I'll take some time this week-end to check the more recent one (heat-map) and compile it with the 0.9.77 library.<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=10767">skataf.maillet@wanadoo.fr</a> — 27 Oct 2016, 21:50</p><hr />
]]></content>
</entry>
</feed>