Monado OpenXR Runtime
simulated_hmd.c File Reference

Simulated HMD device. More...

#include "xrt/xrt_device.h"
#include "os/os_time.h"
#include "math/m_api.h"
#include "math/m_mathinclude.h"
#include "util/u_var.h"
#include "util/u_misc.h"
#include "util/u_time.h"
#include "util/u_debug.h"
#include "util/u_device.h"
#include "util/u_logging.h"
#include "util/u_pretty_print.h"
#include "util/u_distortion_mesh.h"
#include "simulated_interface.h"
#include <stdio.h>
Include dependency graph for simulated_hmd.c:

Data Structures

struct  simulated_hmd
 A example HMD device. More...
 

Macros

#define HMD_TRACE(hmd, ...)   U_LOG_XDEV_IFL_T(&hmd->base, hmd->log_level, __VA_ARGS__)
 
#define HMD_DEBUG(hmd, ...)   U_LOG_XDEV_IFL_D(&hmd->base, hmd->log_level, __VA_ARGS__)
 
#define HMD_INFO(hmd, ...)   U_LOG_XDEV_IFL_I(&hmd->base, hmd->log_level, __VA_ARGS__)
 
#define HMD_ERROR(hmd, ...)   U_LOG_XDEV_IFL_E(&hmd->base, hmd->log_level, __VA_ARGS__)
 

Functions

static struct simulated_hmdsimulated_hmd (struct xrt_device *xdev)
 
static void simulated_hmd_destroy (struct xrt_device *xdev)
 
static void simulated_hmd_get_tracked_pose (struct xrt_device *xdev, enum xrt_input_name name, int64_t at_timestamp_ns, struct xrt_space_relation *out_relation)
 
static xrt_result_t simulated_ref_space_usage (struct xrt_device *xdev, enum xrt_reference_space_type type, enum xrt_input_name name, bool used)
 
enum u_logging_level simulated_log_level (void)
 Return the logging level that we want for the simulated related code. More...
 
struct xrt_devicesimulated_hmd_create (enum simulated_movement movement, const struct xrt_pose *center)
 Create a simulated hmd. More...
 

Detailed Description

Simulated HMD device.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m