eyetribe / tet-java-client Goto Github PK
View Code? Open in Web Editor NEWJava SDK for The Eye Tribe Tacker
License: BSD 2-Clause "Simplified" License
Java SDK for The Eye Tribe Tacker
License: BSD 2-Clause "Simplified" License
Hello,
I am trying to use the sample calibration in "javafx-sample" and I found a bug. The ImageView "gazeIndicator" is not placed in the preview well. The gaze point does not correspondent with the center of the circle-image. I think the method "getGazeIndicatorAnchor" in SceneController should be written in a different way.
I've tried to open the gradle project on Netbeans but it doesn't work at all.
Can you make available a Netbeans project instead?
thank you.
The build is not working with the more current versions of Java.
Exception in Application start method
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
Caused by: java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(LauncherImpl.java:182)
at java.lang.Thread.run(Thread.java:745)
Caused by: javafx.fxml.LoadException:
/Users/cory/Downloads/tet-java-client/javafx-sample/build/resources/main/scene_main.fxml:46
at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2601)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2579)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2409)
at com.theeyetribe.javafx.Main.loadScene(Main.java:112)
at com.theeyetribe.javafx.Main.loadMainScene(Main.java:84)
at com.theeyetribe.javafx.Main.start(Main.java:46)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
Caused by: java.lang.RuntimeException: ControlsFX Error: ControlsFX 8.40.10 requires at least Java Version 8 Update 40
at impl.org.controlsfx.version.VersionChecker.doVersionCheck(VersionChecker.java:96)
at org.controlsfx.control.ControlsFXControl.<init>(ControlsFXControl.java:35)
at org.controlsfx.control.Rating.<init>(Rating.java:151)
at org.controlsfx.control.Rating.<init>(Rating.java:141)
at org.controlsfx.control.Rating.<init>(Rating.java:131)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at sun.reflect.misc.ReflectUtil.newInstance(ReflectUtil.java:51)
at javafx.fxml.FXMLLoader$InstanceDeclarationElement.constructValue(FXMLLoader.java:1009)
at javafx.fxml.FXMLLoader$ValueElement.processStartElement(FXMLLoader.java:746)
at javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2707)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2527)
The line ControlsFX Error: ControlsFX 8.40.10 requires at least Java Version 8 Update 40
convinced me it was a version issue. I have Java 8 Update 111 currently installed. Updating ControlsFX to 8.40.12 in javafx-sample/build.gradle resolved the problem on my machine.
The JavaDoc at http://eyetribe.github.io/tet-java-client/ that is linked from README.md shows version 0.9.60, not the current version 0.9.77.
Hi,
I'm using an VirtualBox machine running Windows 10 to use Eyetribe Server/UI on Ubuntu 16.04 host. All USB devices are readable except the EyeTribe. Any add-on or protection to fix/disable ? Should I open ticket on VirtualBox support ?
Regards,
Kannar.
I found that two of the fives constants of the class GazeData do not correspond the constants values of the class. Maybe the field gd is not correctly updated
gd = 7 in gaze state while STATE_TRACKING_GAZE = 1
gd = 6 in eyes state while STATE_TRACKING_EYES = 2
The GazeData object is retrieved via the onGazeUpdate implemented method of the interface IGazeListener.
Sincerely,
Francis
It seems that the only reason why I am not able to use bintray (eyetribe) is because you are not publishing an index at bintray (if I got it right...).
It is really annoying not to be able to connect to jcenter or bintray jfrog with Netbeans.
Any help you can provide me?
Thank you.
Hi,
Does your jar and sdk api works on linux ?
:)
KannarFR.
Hi,
When you calibrate with the "EyeTribe UI" outside a Java application, the listener method onCalibrationChanged() is only called after the first calibration, not after the next ones.
Moreover, the calibration average error in degrees seems not to be updated (it equals 0.0) when you use either:
But, if you desactivate and then reactivate the server, the attribute GazeData.getLastCalibrationResult().averageErrorDegree is updated.
Sincerely,
Francis
GazeManagerCore
offers many publicly accessible methods that overload activate() and take an ApiVersion
parameter, as in the example in http://dev.theeyetribe.com/java/:
public static void main(String[] args)
{
final GazeManager gm = GazeManager.getInstance();
boolean success = gm.activate(ApiVersion.VERSION_1_0, ClientMode.PUSH);
}
Because GazeManagerCore
is package-protected, it is not possible to access GazeManagerCore.ApiVersion
from outside com.theeyetribe.clientsdk
. Maybe turning ApiVersion
from a nested to a top-level enum would solve this problem.
Hello,
I am new to eye tribe and unity both. I want to know how are the gaze points (pixels) recorded from the use of Eye tribe ? I mean in Unity (0, 0) is the bottom left corner in pixel coordinates, and the top-right corner is (Screen.width, Screen.height). So if we use Unity with Eye Tribe does it follow the same pixel coordinates ?
(Usually for our computer system (0,0) begins on the top left corner. So I am confused regarding this.)
Any help would be greatly appreciated. Thank you
I sorry, know that this is not the place but lost my dev kit for mac and there is no way to downloaded from the site of the eye tribe, can someone contact me and help me with that? thanks
I print the string response message but when converted to json, all x y values are 0s.
I use Windows 7, 64 bit, JDK1.7, Netbeans 7.4
Here is my EyeTribe1.java Code:
public class EyeTribe1 implements GazeApiResponseListener {
public void onGazeApiResponse(String strResponse) {
Gson gson = new Gson();
System.out.println(strResponse); // response is gaze data
GazeData msg = gson.fromJson(strResponse, GazeData.class);
}
public static void main(String[] args) throws AWTException, InterruptedException {
GazeApiManager gm = new GazeApiManager(new EyeTribe1());
boolean res = gm.connect("localhost", 6555);
gm.requestTracker(GazeManager.ClientMode.PUSH, GazeManager.ApiVersion.VERSION_1_0);
while (true) { }
}
}
It will be extremely useful if you add a java class with main() that uses the callback function, and do something simple, like print to screen but after the GazeData object is formed.
Thank you,
Kris
Hello,
I am trying to use the new SDK (v.0.9.60) and the code from your websites gives mi no output - I can not get the gaze data from the eye tribe.
package com.theeyetribe.javafx;
import com.theeyetribe.clientsdk.GazeManager;
import com.theeyetribe.clientsdk.IGazeListener;
import com.theeyetribe.clientsdk.data.GazeData;
public class TETSimple {
public static void main(String[] args) {
final GazeManager gm = GazeManager.getInstance();
boolean success = gm.activate();
final GazeListener gazeListener = new GazeListener();
gm.addGazeListener(gazeListener);
Runtime.getRuntime().addShutdownHook(new Thread() {
@Override
public void run() {
gm.removeGazeListener(gazeListener);
gm.deactivate();
}
});
}
private static class GazeListener implements IGazeListener {
@Override
public void onGazeUpdate(GazeData gazeData) {
System.out.println(gazeData.toString());
}
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.