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_TRACKER_GEN1,
53 CONTROLLER_TRACKER_GEN2,
54 CONTROLLER_TRACKER_GEN3,
55 CONTROLLER_TRACKER_TUNDRA,
151 double lens_separation;
153 int eye_target_height_in_pixels;
154 int eye_target_width_in_pixels;
166 uint32_t display_firmware_version;
167 uint32_t firmware_version;
168 uint8_t hardware_revision;
169 uint8_t hardware_version_micro;
170 uint8_t hardware_version_minor;
171 uint8_t hardware_version_major;
172 char mb_serial_number[32];
173 char model_number[32];
174 char device_serial_number[32];
214 uint32_t firmware_version;
215 uint8_t hardware_revision;
216 uint8_t hardware_version_micro;
217 uint8_t hardware_version_minor;
218 uint8_t hardware_version_major;
219 char mb_serial_number[32];
220 char model_number[32];
221 char device_serial_number[32];
u_logging_level
Logging level enum.
Definition: u_logging.h:44
void vive_config_teardown(struct vive_config *config)
Free any allocated resources on this config.
Definition: vive_config.c:564
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:408
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:581
VIVE_VARIANT
Headset variant.
Definition: vive_common.h:42
static Eigen::Map< const Eigen::Vector3f > position(const struct xrt_pose &pose)
Return a Eigen type wrapping a pose's position (const).
Definition: m_eigen_interop.hpp:217
A calibrated camera on an Index.
Definition: vive_config.h:65
struct xrt_pose headref
Pose in head space.
Definition: vive_config.h:84
struct xrt_pose trackref
Pose in tracking space.
Definition: vive_config.h:81
A lighthouse consisting of sensors.
Definition: vive_config.h:119
A single lighthouse senosor point and normal, in IMU space.
Definition: vive_config.h:104
Values to create a distortion mesh from Vive configuration values.
Definition: u_distortion_mesh.h:70
headset config.
Definition: vive_config.h:130
struct xrt_pose imuref
Head position in IMU space.
Definition: vive_config.h:161
bool valid
Have we loaded the config.
Definition: vive_config.h:195
enum u_logging_level log_level
log level accessed by the config parser
Definition: vive_config.h:132
struct xrt_pose opencv
The same but in OpenCV camera space.
Definition: vive_config.h:192
struct xrt_pose trackref
IMU position in tracking space.
Definition: vive_config.h:146
struct index_camera view[2]
The two cameras.
Definition: vive_config.h:186
struct xrt_pose left_in_right
Left view in right camera space.
Definition: vive_config.h:189
Controller config.
Definition: vive_config.h:207
struct xrt_pose trackref
IMU position in tracking space.
Definition: vive_config.h:234
Describes a projection matrix fov.
Definition: xrt_defines.h:484
A pose composed of a position and orientation.
Definition: xrt_defines.h:464
A quaternion with single floats.
Definition: xrt_defines.h:220
Image size.
Definition: xrt_defines.h:408
A 3 element vector with single floats.
Definition: xrt_defines.h:274
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.