Home › Forums › Software Development › C#, Core SDK – Configuratoin not always happening
Tagged: Configuration
- This topic has 1 reply, 2 voices, and was last updated 4 years, 11 months ago by Grant [Tobii].
- AuthorPosts
- 19/12/2019 at 10:06 #12508PrachiParticipant
Hi!
I am using the Core SDK (API – Tobii Interaction version 0.7.3). I am using the following code to configure the device:
{
EngineStateProvider engineStateProvider = new EngineStateProvider(host.Context);
EngineStateObserver<EyeTrackingDeviceStatus> _engineStateObserverTrackerState = engineStateProvider.CreateEyeTrackingDeviceStatusObserver();
host.Context.LaunchConfigurationTool(ConfigurationTool.GuestCalibration, (data) => { });
_engineStateObserverTrackerState.Changed += EngineStateObserverTrackerStateOnChanged;
….}
private static void EngineStateObserverTrackerStateOnChanged(object sender, EngineStateValue<EyeTrackingDeviceStatus> e){…..
}
The configuration starts at a variable timestamp and sometimes doesn’t happen at all. So, how do I fix this?19/12/2019 at 13:47 #12513Grant [Tobii]KeymasterHi @prachi and thanks for your query. To correctly initialise the eye tracker in a Core SDK application, you can follow our tutorial to illustrate the correct syntax @ https://developer.tobii.com/consumer-eye-trackers/core-sdk/getting-started/
I am afraid that we do not support calling calibration programmatically but you can call a quick 3 point calibration using the windows command:
“c:\Program Files (x86)\Tobii\Tobii EyeX Config\Tobii.EyeX.Configuration.exe” –quick-calibration
Which you can still introduce into your code using the System.Diagnostics.Process.Start function within DotNet.
To see further examples of how to setup eye tracking in your applications, please check out the Core SDK samples @ https://github.com/Tobii/CoreSDK
- AuthorPosts
- You must be logged in to reply to this topic.