Monado OpenXR Runtime
illixr_device.cpp File Reference

ILLIXR HMD. More...

#include <math.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <dlfcn.h>
#include <alloca.h>
#include <string>
#include <sstream>
#include "math/m_api.h"
#include "xrt/xrt_device.h"
#include "util/u_var.h"
#include "util/u_misc.h"
#include "util/u_debug.h"
#include "util/u_device.h"
#include "util/u_time.h"
#include "util/u_distortion_mesh.h"
#include "illixr_component.h"
#include "common/dynamic_lib.hpp"
#include "common/runtime.hpp"
Include dependency graph for illixr_device.cpp:

Data Structures

struct  illixr_hmd
 

Macros

#define DH_SPEW(dh, ...)
 
#define DH_DEBUG(dh, ...)
 
#define DH_ERROR(dh, ...)
 

Functions

static struct illixr_hmdillixr_hmd (struct xrt_device *xdev)
 
static void illixr_hmd_destroy (struct xrt_device *xdev)
 
static void illixr_hmd_get_tracked_pose (struct xrt_device *xdev, enum xrt_input_name name, uint64_t at_timestamp_ns, struct xrt_space_relation *out_relation)
 
std::vector< std::string > split (const std::string &s, char delimiter)
 
static int illixr_rt_launch (struct illixr_hmd *dh, const char *path, const char *comp)
 
struct xrt_deviceillixr_hmd_create (const char *path_in, const char *comp_in)
 Create a illixr hmd. More...
 

Detailed Description

Macro Definition Documentation

◆ DH_DEBUG

#define DH_DEBUG (   dh,
  ... 
)
Value:
do { \
if (dh->print_debug) { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} \
} while (false)

◆ DH_ERROR

#define DH_ERROR (   dh,
  ... 
)
Value:
do { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} while (false)

◆ DH_SPEW

#define DH_SPEW (   dh,
  ... 
)
Value:
do { \
if (dh->print_spew) { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} \
} while (false)