Monado OpenXR Runtime
target_builder_simulavr.c File Reference

Builder for SimulaVR devices. More...

#include "multi_wrapper/multi.h"
#include "realsense/rs_interface.h"
#include "tracking/t_hand_tracking.h"
#include "tracking/t_tracking.h"
#include "xrt/xrt_config_drivers.h"
#include "xrt/xrt_device.h"
#include "xrt/xrt_prober.h"
#include "util/u_builders.h"
#include "util/u_config_json.h"
#include "util/u_debug.h"
#include "util/u_device.h"
#include "util/u_sink.h"
#include "util/u_system_helpers.h"
#include "util/u_file.h"
#include "target_builder_interface.h"
#include "simula/svr_interface.h"
#include "v4l2/v4l2_interface.h"
#include "xrt/xrt_frameserver.h"
#include "xrt/xrt_results.h"
#include "xrt/xrt_tracking.h"
#include <assert.h>
Include dependency graph for target_builder_simulavr.c:

Data Structures

struct  simula_builder
 

Macros

#define SVR_TRACE(...)   U_LOG_IFL_T(debug_get_log_option_svr_log(), __VA_ARGS__)
 
#define SVR_DEBUG(...)   U_LOG_IFL_D(debug_get_log_option_svr_log(), __VA_ARGS__)
 
#define SVR_INFO(...)   U_LOG_IFL_I(debug_get_log_option_svr_log(), __VA_ARGS__)
 
#define SVR_WARN(...)   U_LOG_IFL_W(debug_get_log_option_svr_log(), __VA_ARGS__)
 
#define SVR_ERROR(...)   U_LOG_IFL_E(debug_get_log_option_svr_log(), __VA_ARGS__)
 

Functions

bool process_poly_values (const cJSON *values, struct svr_display_distortion_polynomial_values *out_values)
 
static bool process_config (const char *config_path, struct svr_two_displays_distortion *out_dist)
 
static xrt_result_t svr_estimate_system (struct xrt_builder *xb, cJSON *config, struct xrt_prober *xp, struct xrt_builder_estimate *estimate)
 
static xrt_result_t svr_open_system_impl (struct xrt_builder *xb, cJSON *config, struct xrt_prober *xp, struct xrt_tracking_origin *origin, struct xrt_system_devices *xsysd, struct xrt_frame_context *xfctx, struct u_builder_roles_helper *ubrh)
 
static void svr_destroy (struct xrt_builder *xb)
 
struct xrt_buildert_builder_simula_create (void)
 Builder for SimulaVR headsets. More...
 

Variables

static const char * driver_list []
 

Detailed Description

Builder for SimulaVR devices.

Author
Moses Turner moses.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Function Documentation

◆ t_builder_simula_create()

struct xrt_builder * t_builder_simula_create ( void  )

Builder for SimulaVR headsets.

References u_builder::base, xrt_builder::estimate_system, and U_TYPED_CALLOC.

Variable Documentation

◆ driver_list

const char* driver_list[]
static
Initial value:
= {
"simula",
}