22#define INDEX_MIN_IPD 0.058
23#define INDEX_MAX_IPD 0.07
30#define VIVE_MIN_IPD 0.060
31#define VIVE_MAX_IPD 0.075
34#define DEFAULT_HAPTIC_FREQ 150.0f
35#define MIN_HAPTIC_DURATION 0.05f
50 CONTROLLER_INDEX_LEFT,
51 CONTROLLER_INDEX_RIGHT,
52 CONTROLLER_FLIPVR_LEFT,
53 CONTROLLER_FLIPVR_RIGHT,
54 CONTROLLER_TRACKER_GEN1,
55 CONTROLLER_TRACKER_GEN2,
56 CONTROLLER_TRACKER_GEN3,
57 CONTROLLER_TRACKER_TUNDRA,
124 uint8_t sensor_count;
161 double lens_separation;
163 int eye_target_height_in_pixels;
164 int eye_target_width_in_pixels;
176 uint32_t display_firmware_version;
177 uint32_t firmware_version;
178 uint8_t hardware_revision;
179 uint8_t hardware_version_micro;
180 uint8_t hardware_version_minor;
181 uint8_t hardware_version_major;
182 char mb_serial_number[32];
183 char model_number[32];
184 char device_serial_number[32];
224 uint32_t firmware_version;
225 uint8_t hardware_revision;
226 uint8_t hardware_version_micro;
227 uint8_t hardware_version_minor;
228 uint8_t hardware_version_major;
229 char mb_serial_number[32];
230 char model_number[32];
231 char device_serial_number[32];
u_logging_level
Logging level enum.
Definition u_logging.h:45
void vive_config_teardown(struct vive_config *config)
Free any allocated resources on this config.
Definition vive_config.c:561
bool vive_config_parse(struct vive_config *d, char *json_string, enum u_logging_level log_level)
Parse a headset config.
Definition vive_config.c:429
VIVE_CONTROLLER_VARIANT
Controller variant.
Definition vive_config.h:48
bool vive_config_parse_controller(struct vive_controller_config *d, char *json_string, enum u_logging_level log_level)
Parse a controller config.
Definition vive_config.c:578
VIVE_VARIANT
Headset variant.
Definition vive_common.h:44
Values to create a distortion mesh from Vive configuration values.
Definition u_distortion_mesh.h:70
headset config.
Definition vive_config.h:151
struct xrt_pose imuref
Head position in IMU space.
Definition vive_config.h:171
bool valid
Have we loaded the config.
Definition vive_config.h:205
enum u_logging_level log_level
log level accessed by the config parser
Definition vive_config.h:153
struct xrt_pose opencv
The same but in OpenCV camera space.
Definition vive_config.h:202
struct xrt_pose trackref
Head position in tracking space.
Definition vive_config.h:169
struct vive_index_camera view[2]
The two cameras.
Definition vive_config.h:196
struct xrt_pose left_in_right
Left view in right camera space.
Definition vive_config.h:199
Controller config.
Definition vive_config.h:217
Properties of the IMU sensor.
Definition vive_config.h:133
struct xrt_pose trackref
IMU position in tracking space.
Definition vive_config.h:142
A calibrated camera on an Index.
Definition vive_config.h:67
struct xrt_pose headref
Pose in head space.
Definition vive_config.h:86
struct xrt_pose trackref
Pose in tracking space.
Definition vive_config.h:83
A lighthouse consisting of sensors.
Definition vive_config.h:122
A single lighthouse senosor point and normal, in IMU space.
Definition vive_config.h:106
Describes a projection matrix fov.
Definition xrt_defines.h:499
A pose composed of a position and orientation.
Definition xrt_defines.h:479
A quaternion with single floats.
Definition xrt_defines.h:235
Image size.
Definition xrt_defines.h:423
A 3 element vector with single floats.
Definition xrt_defines.h:289
Code to generate disortion meshes.
Basic logging functionality.
Common things like defines for Vive and Index.
Header holding common defines.
Common defines and enums for XRT.