Home Forums Software Development C#, Core SDK – Configuratoin not always happening

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12508
    Prachi
    Participant

    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?

    #12513
    Grant [Tobii]
    Keymaster

    Hi @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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.