Monado OpenXR Runtime
wmr_config.h File Reference

WMR and MS HoloLens configuration structures. More...

#include "math/m_vec2.h"
#include "math/m_vec3.h"
#include "util/u_logging.h"
Include dependency graph for wmr_config.h:

Go to the source code of this file.

Data Structures

struct  wmr_distortion_3K
 
struct  wmr_distortion_6KT
 
struct  wmr_distortion_eye_config
 
struct  wmr_camera_config
 
struct  wmr_inertial_sensor_config
 
struct  wmr_sensor_transforms_config
 
struct  wmr_inertial_sensors_config
 
struct  wmr_led_config
 
struct  wmr_hmd_config
 
struct  wmr_controller_config
 

Macros

#define WMR_MAX_CAMERAS   4
 
#define WMR_MAX_LEDS   40
 

Enumerations

enum  wmr_distortion_model { WMR_DISTORTION_MODEL_UNKNOWN = 0 , WMR_DISTORTION_MODEL_POLYNOMIAL_3K , WMR_DISTORTION_MODEL_POLYNOMIAL_6KT }
 
enum  wmr_camera_location {
  WMR_CAMERA_LOCATION_HT0 = 0 , WMR_CAMERA_LOCATION_HT1 = 1 , WMR_CAMERA_LOCATION_DO0 = 2 , WMR_CAMERA_LOCATION_DO1 = 3 ,
  WMR_CAMERA_LOCATION_HT2 = 4 , WMR_CAMERA_LOCATION_HT3 = 5
}
 
enum  wmr_camera_purpose { WMR_CAMERA_PURPOSE_HEAD_TRACKING , WMR_CAMERA_PURPOSE_DISPLAY_OBSERVER }
 

Functions

bool wmr_hmd_config_parse (struct wmr_hmd_config *c, char *json_string, enum u_logging_level log_level)
 
bool wmr_controller_config_parse (struct wmr_controller_config *c, char *json_string, enum u_logging_level log_level)
 
void wmr_config_precompute_transforms (struct wmr_inertial_sensors_config *sensors, struct wmr_distortion_eye_config *eye_params)
 Precompute transforms to convert between OpenXR and WMR coordinate systems. More...
 

Detailed Description

WMR and MS HoloLens configuration structures.

Author
Jan Schmidt jan@c.nosp@m.entr.nosp@m.icula.nosp@m.r.co.nosp@m.m

Function Documentation

◆ wmr_config_precompute_transforms()

void wmr_config_precompute_transforms ( struct wmr_inertial_sensors_config sensors,
struct wmr_distortion_eye_config eye_params 
)

Precompute transforms to convert between OpenXR and WMR coordinate systems.

OpenXR: X: Right, Y: Up, Z: Backward WMR: X: Right, Y: Down, Z: Forward ┌────────────────────┐ │ OXR WMR │ │ │ │ ▲ y │ │ │ ▲ z │ │ │ x │ x │ │ ├──────► ├──────► │ │ │ │ │ │ ▼ z │ │ │ ▼ y │ └────────────────────┘

References wmr_inertial_sensor_config::pose, and xrt_vec3::XRT_VEC3_ZERO.