<?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=399" />

<title>The Eye Tribe</title>
<subtitle>Developer Forum</subtitle>
<link href="http://theeyetribe.com/forum/index.php" />
<updated>2015-03-17T00:12:14+02:00</updated>

<author><name><![CDATA[The Eye Tribe]]></name></author>
<id>http://theeyetribe.com/forum/feed.php?f=24&amp;t=399</id>
<entry>
<author><name><![CDATA[JorgeCardoso]]></name></author>
<updated>2015-03-17T00:12:14+02:00</updated>
<published>2015-03-17T00:12:14+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1872#p1872</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1872#p1872"/>
<title type="html"><![CDATA[Re: TET Java SDK &amp; processing.org]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1872#p1872"><![CDATA[
Hi, <br /><br />Just to update:<br /><br />I have made a very preliminary version of a Processing library that you can download here: <!-- m --><a class="postlink" href="http://jorgecardoso.eu/processing/EyeTribeProcessing/">http://jorgecardoso.eu/processing/EyeTribeProcessing/</a><!-- m --><br /><br />It provides gaze and eye position, and calibration within Processing.<br /><br />I hope to be able to polish it a bit and add more examples in the next months. (Development is a bit slow because I don't have constant access to a computer that supports USB 3.)<br /><br />Any feedback will be welcomed!<br /><br />Cheers,<br />jorge<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=5806">skataJorgeCardoso</a> — 17 Mar 2015, 00:12</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[m.w.a.wijntjes@tudelft.nl]]></name></author>
<updated>2015-01-30T21:51:29+02:00</updated>
<published>2015-01-30T21:51:29+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1696#p1696</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1696#p1696"/>
<title type="html"><![CDATA[Re: TET Java SDK &amp; processing.org]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1696#p1696"><![CDATA[
Hi Jorge, <br /><br />Very good idea, please keep us (at least me) updated about this. For now, what I have works fine for me. I only have to program an experimental flow, with good data handling, and a script to show a simple heat map and maybe some other analysis. <br /><br />Ideally, I would like to have calibration within Processing. Now I use the eyeTribeGUI, but ideally you would like to do some intermediate calibrations, or checks that you are still recording a reasonably accurate signal. I think that is a central thing program if you want to make a good library.<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=5637">skatam.w.a.wijntjes@tudelft.nl</a> — 30 Jan 2015, 21:51</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[JorgeCardoso]]></name></author>
<updated>2015-01-27T13:37:07+02:00</updated>
<published>2015-01-27T13:37:07+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1677#p1677</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1677#p1677"/>
<title type="html"><![CDATA[Re: TET Java SDK &amp; processing.org]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1677#p1677"><![CDATA[
Hi,<br /><br />I'm about to start developing a Processing library for the Eye Tribe.<br /><br />Is there any recommendation/feature that you would like to see?<br /><br />Thanks,<br />Jorge<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=5806">skataJorgeCardoso</a> — 27 Jan 2015, 13:37</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[m.w.a.wijntjes@tudelft.nl]]></name></author>
<updated>2015-01-23T16:22:21+02:00</updated>
<published>2015-01-23T16:22:21+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1673#p1673</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1673#p1673"/>
<title type="html"><![CDATA[Re: TET Java SDK &amp; processing.org]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1673#p1673"><![CDATA[
Thanks both of you, it works great! Just use full screen presentation in Processing (better than simply using a large screen, because in that case there is still an offset from you dock and menu bar, at least for mac). I'll play around with it a bit more and keep you updated if I find something worth sharing.<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=5637">skatam.w.a.wijntjes@tudelft.nl</a> — 23 Jan 2015, 16:22</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Anders]]></name></author>
<updated>2015-01-23T13:34:10+02:00</updated>
<published>2015-01-23T13:34:10+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1672#p1672</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1672#p1672"/>
<title type="html"><![CDATA[Re: TET Java SDK &amp; processing.org]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1672#p1672"><![CDATA[
<blockquote class="uncited"><div><br />1. Pupil size can't be converted from Double to float. Error: &quot;Cannot cast from Double to float&quot;<br /></div></blockquote><br /><br />This is a general Java issue. You are trying to implicitly cast a Double object to float primitive. Try using Double.floatValue() instead.<br /><br /><blockquote class="uncited"><div><br />2. Processing uses the gaze coordinates from the whole screen in the applet window.<br /></div></blockquote><br /><br />Gaze coordinates are relative to screen size. If you want to map these into a smaller window, then you need to do that yourself using size difference between screen and desired window.<br /><br /><blockquote class="uncited"><div><br />3. As state, I get the numbers 4 or 7. What does that mean?<br /></div></blockquote><br /><br />I advice you to consult the <a href="http://dev.theeyetribe.com/api/" class="postlink">API documentation</a> if in doubt about a value. The 'state' is a bitmasked value. Check out GazeData.stateToString() and you'll see how to make sense out of it.<br /><br />Hope that helps!<br /><br />/Anders<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=120">skataAnders</a> — 23 Jan 2015, 13:34</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[hallo@pgraesser.de]]></name></author>
<updated>2015-01-22T19:26:45+02:00</updated>
<published>2015-01-22T19:26:45+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1671#p1671</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1671#p1671"/>
<title type="html"><![CDATA[Re: TET Java SDK &amp; processing.org]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1671#p1671"><![CDATA[
Thanks for your replies!<br />I had the same problem with the error because of the Java 1.6 .jar file, but compiled it myself in eclipse, as m.w.a.wijntjes said.<br />To the gson thing: You have to put a gson.jar into the code folder, but you don't have to import it in the code.<br />I followed the steps and managed to receive the various eye tracking data in processing and added some lines to the class, so they get converted into datatypes, that can be used by processing functions.<br /><br />Main<br /><dl class="codebox"><dt>Code: </dt><dd><code>//IMPORT LIBRARIES<br />import com.theeyetribe.client.*;<br /><br />//SETUP<br />void setup() {<br />  GazeManager gm=GazeManager.getInstance();<br />  boolean success = gm.activate(GazeManager.ApiVersion.VERSION_1_0, GazeManager.ClientMode.PUSH);<br />  GazeListener gazeListener = new GazeListener();<br />  gm.addGazeListener(gazeListener);<br />  size(800, 800);<br />}<br /><br />//DRAW<br />void draw() {<br />ellipse(gazeRaw.x, gazeRaw.y, 10, 10);<br />}</code></dd></dl><br /><br />Class<br /><dl class="codebox"><dt>Code: </dt><dd><code>boolean fixation;<br />int msTimeStamp, state;<br />String timeStamp;<br />float lPupilSize, rPupilSize;<br />PVector <br />gazeRaw, gazeSmooth,<br />lPupilPos, rPupilPos,<br />lGazeRaw, rGazeRaw,<br />lGazeSmooth, rGazeSmooth;      <br />      <br /><br />private class GazeListener implements IGazeListener<br />{<br />  @Override<br />    public void onGazeUpdate(GazeData gazeData)<br />  {    <br /><br />      //GENERAL//<br />      <br />      //integer: state<br />      state = gazeData.state;<br />      <br />      //integer: time stamp in ms<br />      msTimeStamp = int(gazeData.timeStamp);<br />      <br />      //string: time stamp<br />      timeStamp = gazeData.timeStampString;<br /><br />      <br />      //BOTH EYES//<br />      <br />      //boolean: is fixation?<br />      fixation = gazeData.isFixated;<br />      <br />      //from double to PVector: raw gaze coordinates of both eyes<br />      gazeRaw = new PVector((float)gazeData.rawCoordinates.x, (float)gazeData.rawCoordinates.y);<br />      <br />      //from double to PVector: smooth gaze x and y coordinates of both eyes<br />      gazeSmooth = new PVector((float)gazeData.smoothedCoordinates.x, (float)gazeData.smoothedCoordinates.y);<br /><br />      <br />      //LEFT AND RIGHT EYE//<br />      <br />      //from double to float: pupil size of left and right eye<br />      //lPupilSize = (float)gazeData.leftEye.pupilSize;<br />      //rPupilSize = (float)gazeData.rightEye.pupilSize;<br />      ////ERROR: CANNOT CAST FROM DOUBLE TO FLOAT      <br /><br />      //from double to PVector: pupil position of left eye<br />      lPupilPos = new PVector((float)gazeData.leftEye.pupilCenterCoordinates.x, (float)gazeData.leftEye.pupilCenterCoordinates.y);<br />      <br />      //from double to PVector: pupil position of right eye<br />      rPupilPos = new PVector((float)gazeData.rightEye.pupilCenterCoordinates.x, (float)gazeData.rightEye.pupilCenterCoordinates.y);<br />      <br />      //from double to PVector: raw gaze coordinates of left eye<br />      lGazeRaw = new PVector((float)gazeData.leftEye.rawCoordinates.x, (float)gazeData.leftEye.rawCoordinates.y);<br />      <br />      //from double to PVector: raw gaze coordinates of right eye<br />      rGazeRaw = new PVector((float)gazeData.rightEye.rawCoordinates.x, (float)gazeData.rightEye.rawCoordinates.y);<br />      <br />      //from double to PVector: smooth gaze of left eye<br />      rGazeSmooth = new PVector((float)gazeData.leftEye.smoothedCoordinates.x, (float)gazeData.leftEye.smoothedCoordinates.y); <br />      <br />      //from double to float: smooth gaze coordinates of right eye<br />      rGazeSmooth = new PVector((float)gazeData.rightEye.smoothedCoordinates.x, (float)gazeData.rightEye.smoothedCoordinates.y);<br />      <br />  }<br />}</code></dd></dl><br /><br />Problems:<br />1. Pupil size can't be converted from Double to float. Error: &quot;Cannot cast from Double to float&quot;<br />2. Processing uses the gaze coordinates from the whole screen in the applet window.<br />3. As state, I get the numbers 4 or 7. What does that mean?<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=4999">skatahallo@pgraesser.de</a> — 22 Jan 2015, 19:26</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Anders]]></name></author>
<updated>2015-01-22T10:51:30+02:00</updated>
<published>2015-01-22T10:51:30+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1668#p1668</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1668#p1668"/>
<title type="html"><![CDATA[Re: TET Java SDK &amp; processing.org]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1668#p1668"><![CDATA[
<blockquote class="uncited"><div><br />... it should be compiled for Java 1.6, and this one is later<br /></div></blockquote><br /><br />That must be an error from our side. The Java SDK should be 1.6 compliant to ensure support for Android. I'll look into that and make sure it is fixed for the next release.<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=120">skataAnders</a> — 22 Jan 2015, 10:51</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[m.w.a.wijntjes@tudelft.nl]]></name></author>
<updated>2015-01-21T21:56:23+02:00</updated>
<published>2015-01-21T21:56:23+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1667#p1667</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1667#p1667"/>
<title type="html"><![CDATA[Re: TET Java SDK &amp; processing.org]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1667#p1667"><![CDATA[
Thanks, Anders, I hadn't seen that one. I tried it out and got an error due to Processing (not your fault): for some reason it should be compiled for Java 1.6, and this one is later. So compiling it yourself (e.g. with Eclipse) will solve this problem.<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=5637">skatam.w.a.wijntjes@tudelft.nl</a> — 21 Jan 2015, 21:56</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Anders]]></name></author>
<updated>2015-01-21T13:19:15+02:00</updated>
<published>2015-01-21T13:19:15+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1664#p1664</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1664#p1664"/>
<title type="html"><![CDATA[Re: TET Java SDK &amp; processing.org]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1664#p1664"><![CDATA[
For the record, the TET Java SDK is open source and available from the <a href="https://github.com/EyeTribe/tet-java-client/releases" class="postlink">release section of the GitHub repo</a>. Package includes Gson, so no need for additional files.<br /><br />Forthermore, reading the <a href="http://dev.theeyetribe.com/java/" class="postlink">basic introduction to the Java SDK</a> on the developer website may help you out.<br /><br />BR,<br />Anders<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=120">skataAnders</a> — 21 Jan 2015, 13:19</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[m.w.a.wijntjes@tudelft.nl]]></name></author>
<updated>2015-01-20T22:12:02+02:00</updated>
<published>2015-01-20T22:12:02+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1663#p1663</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1663#p1663"/>
<title type="html"><![CDATA[Re: TET Java SDK &amp; processing.org]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1663#p1663"><![CDATA[
Not yet, I'm also trying it out. But feel free to help. What I got now is:<br />1) make a .jar file of the java sdk (I did it in Eclipse, if you want I can send it), and put it into a folder &quot;Code&quot;, in you sketch folder<br />2) Get the gson package from somewhere and also put it in the folder<br />3) open the EyeTribeUI, and perform calibration (server will now also start)<br />4) Run the code I paste below<br />5) It does actually connect, but it outputs weird hexadecimal stuff. <br /><br />Note that I'm not so experienced, so if anyone can help, please do!<br /><br />Processing code:<br /><dl class="codebox"><dt>Code: </dt><dd><code>import com.google.gson.Gson;<br />import com.theeyetribe.client.*;<br />void setup() {<br />  GazeManager gm=GazeManager.getInstance();<br />  boolean success = gm.activate(GazeManager.ApiVersion.VERSION_1_0, GazeManager.ClientMode.PUSH);<br />  GazeListener gazeListener = new GazeListener();<br />  gm.addGazeListener(gazeListener);<br />  size(640, 360);<br />}<br /><br />void draw() {<br />}<br /><br />private static class GazeListener implements IGazeListener<br />{<br />  @Override<br />    public void onGazeUpdate(GazeData gazeData)<br />  {<br />    System.out.println(&quot;weird hexadecimal stuf: &quot;+gazeData.toString());<br />  }<br />}<br /></code></dd></dl><p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=5637">skatam.w.a.wijntjes@tudelft.nl</a> — 20 Jan 2015, 22:12</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[hallo@pgraesser.de]]></name></author>
<updated>2015-01-08T11:53:07+02:00</updated>
<published>2015-01-08T11:53:07+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1621#p1621</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1621#p1621"/>
<title type="html"><![CDATA[TET Java SDK &amp; processing.org]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=399&amp;p=1621#p1621"><![CDATA[
Hi everybody!<br /><br />I was wondering, if anybody successfully imported the TET Java Library in Processing?<br />Any ideas how this could work?<br /><br />Thanks!<br />Philipp<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=4999">skatahallo@pgraesser.de</a> — 08 Jan 2015, 11:53</p><hr />
]]></content>
</entry>
</feed>