Monado OpenXR Runtime
target_builder_simulated.c File Reference

Simulated driver builder. More...

#include "xrt/xrt_config_drivers.h"
#include "xrt/xrt_prober.h"
#include "util/u_misc.h"
#include "util/u_debug.h"
#include "util/u_builders.h"
#include "util/u_config_json.h"
#include "util/u_system_helpers.h"
#include "target_builder_interface.h"
#include "simulated/simulated_interface.h"
#include <assert.h>
Include dependency graph for target_builder_simulated.c:

Functions

struct xrt_devicecreate_controller (const char *str, enum xrt_device_type type, const struct xrt_pose *center, struct xrt_tracking_origin *origin)
 
static xrt_result_t simulated_estimate_system (struct xrt_builder *xb, cJSON *config, struct xrt_prober *xp, struct xrt_builder_estimate *estimate)
 
static xrt_result_t simulated_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 simulated_destroy (struct xrt_builder *xb)
 
struct xrt_buildert_builder_simulated_create (void)
 Builder for Simulated driver devices. More...
 

Variables

static const char * driver_list []
 

Detailed Description

Simulated driver builder.

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

Function Documentation

◆ simulated_open_system_impl()

static xrt_result_t simulated_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
Todo:
Make these be a option to the hmd create function, or just make it be there from the start.
Todo:
Create a shared tracking origin on the system devices struct instead.

References xrt_quat::XRT_QUAT_IDENTITY.

◆ t_builder_simulated_create()

struct xrt_builder* t_builder_simulated_create ( void  )

Variable Documentation

◆ driver_list

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