21#define INDEX_MIN_IPD 0.058
22#define INDEX_MAX_IPD 0.07
29#define VIVE_MIN_IPD 0.060
30#define VIVE_MAX_IPD 0.075
33#define DEFAULT_HAPTIC_FREQ 150.0f
34#define MIN_HAPTIC_DURATION 0.05f
63 CONTROLLER_INDEX_LEFT,
64 CONTROLLER_INDEX_RIGHT,
65 CONTROLLER_TRACKER_GEN1,
66 CONTROLLER_TRACKER_GEN2,
67 CONTROLLER_TRACKER_GEN3,
68 CONTROLLER_TRACKER_TUNDRA,
101 double distortion[4];
164 double lens_separation;
166 int eye_target_height_in_pixels;
167 int eye_target_width_in_pixels;
179 uint32_t display_firmware_version;
180 uint32_t firmware_version;
181 uint8_t hardware_revision;
182 uint8_t hardware_version_micro;
183 uint8_t hardware_version_minor;
184 uint8_t hardware_version_major;
185 char mb_serial_number[32];
186 char model_number[32];
187 char device_serial_number[32];
227 uint32_t firmware_version;
228 uint8_t hardware_revision;
229 uint8_t hardware_version_micro;
230 uint8_t hardware_version_minor;
231 uint8_t hardware_version_major;
232 char mb_serial_number[32];
233 char model_number[32];
234 char device_serial_number[32];
u_logging_level
Logging level enum.
Definition: u_logging.h:43
void vive_config_teardown(struct vive_config *config)
Free any allocated resources on this config.
Definition: vive_config.c:579
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:404
VIVE_CONTROLLER_VARIANT
Controller variant.
Definition: vive_config.h:61
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:596
VIVE_VARIANT
Headset variant.
Definition: vive_config.h:47
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:78
struct xrt_pose headref
Pose in head space.
Definition: vive_config.h:97
struct xrt_pose trackref
Pose in tracking space.
Definition: vive_config.h:94
A lighthouse consisting of sensors.
Definition: vive_config.h:132
A single lighthouse senosor point and normal, in IMU space.
Definition: vive_config.h:117
Values to create a distortion mesh from Vive configuration values.
Definition: u_distortion_mesh.h:70
headset config.
Definition: vive_config.h:143
struct xrt_pose imuref
Head position in IMU space.
Definition: vive_config.h:174
bool valid
Have we loaded the config.
Definition: vive_config.h:208
enum u_logging_level log_level
log level accessed by the config parser
Definition: vive_config.h:145
struct xrt_pose opencv
The same but in OpenCV camera space.
Definition: vive_config.h:205
struct xrt_pose trackref
IMU position in tracking space.
Definition: vive_config.h:159
struct index_camera view[2]
The two cameras.
Definition: vive_config.h:199
struct xrt_pose left_in_right
Left view in right camera space.
Definition: vive_config.h:202
Controller config.
Definition: vive_config.h:220
struct xrt_pose trackref
IMU position in tracking space.
Definition: vive_config.h:247
Describes a projection matrix fov.
Definition: xrt_defines.h:486
A pose composed of a position and orientation.
Definition: xrt_defines.h:465
A quaternion with single floats.
Definition: xrt_defines.h:216
Image size.
Definition: xrt_defines.h:409
A 3 element vector with single floats.
Definition: xrt_defines.h:271
Code to generate disortion meshes.
Basic logging functionality.
Header holding common defines.
Common defines and enums for XRT.