Tobii Pro SDK C API
get_hmd_lens_configuration.c
#include <stdio.h>
void get_hmd_lens_configuration_example(TobiiResearchEyeTracker* eyetracker) {
TobiiResearchStatus status = tobii_research_get_hmd_lens_configuration(eyetracker, &lens_configuration);
char* serial_number = NULL;
tobii_research_get_serial_number(eyetracker, &serial_number);
printf("Got lens configuration from tracker with serial number %s with status %i:\n", serial_number, status);
printf("Left: (%f, %f, %f)\n",
lens_configuration.left.x,
lens_configuration.left.y,
lens_configuration.left.z);
printf("Right: (%f, %f, %f)\n",
lens_configuration.right.x,
lens_configuration.right.y,
lens_configuration.right.z);
}
TobiiResearchPoint3D::y
float y
Definition: tobii_research.h:402
tobii_research_get_hmd_lens_configuration
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_get_hmd_lens_configuration(TobiiResearchEyeTracker *eyetracker, TobiiResearchHMDLensConfiguration *lens_configuration)
Gets the current lens configuration of the HMD based eye tracker. The lens configuration describes ho...
TobiiResearchHMDLensConfiguration::left
TobiiResearchPoint3D left
Definition: tobii_research_eyetracker.h:263
tobii_research_get_serial_number
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_get_serial_number(TobiiResearchEyeTracker *eyetracker, char **serial_number)
Gets the serial number of the eye tracker. All physical eye trackers have a unique serial number.
tobii_research_eyetracker.h
Functionality for an eye tracker.
TobiiResearchPoint3D::x
float x
Definition: tobii_research.h:398
tobii_research_free_string
TOBII_RESEARCH_API void TOBII_RESEARCH_CALL tobii_research_free_string(char *str)
Free memory allocation for a string allocated by the SDK.
TobiiResearchHMDLensConfiguration::right
TobiiResearchPoint3D right
Definition: tobii_research_eyetracker.h:267
TobiiResearchEyeTracker
struct TobiiResearchEyeTracker TobiiResearchEyeTracker
Definition: tobii_research.h:310
TobiiResearchPoint3D::z
float z
Definition: tobii_research.h:406
TobiiResearchHMDLensConfiguration
Definition: tobii_research_eyetracker.h:259
TobiiResearchStatus
TobiiResearchStatus
Definition: tobii_research.h:45