Monado OpenXR Runtime
Simulated driver

Simple do-nothing simulated driver. More...

Collaboration diagram for Simulated driver:

Files

file  simulated_controller.c
 Simulated controller device.
 
file  simulated_hmd.c
 Simulated HMD device.
 
file  simulated_interface.h
 Interface to simulated driver.
 
file  simulated_prober.c
 Simulated prober code.
 

Enumerations

enum  simulated_movement { SIMULATED_MOVEMENT_WOBBLE , SIMULATED_MOVEMENT_ROTATE , SIMULATED_MOVEMENT_STATIONARY }
 What type of movement should the simulated device do. More...
 

Functions

enum u_logging_level simulated_log_level (void)
 Return the logging level that we want for the simulated related code. More...
 
struct xrt_auto_probersimulated_create_auto_prober (void)
 Create a auto prober for simulated devices. More...
 
struct xrt_devicesimulated_hmd_create (enum simulated_movement movement, const struct xrt_pose *center)
 Create a simulated hmd. More...
 
struct xrt_devicesimulated_create_controller (enum xrt_device_name name, enum xrt_device_type type, const struct xrt_pose *center, struct xrt_tracking_origin *origin)
 Create a simulated controller. More...
 

Detailed Description

Simple do-nothing simulated driver.

Enumeration Type Documentation

◆ simulated_movement

#include <drivers/simulated/simulated_interface.h>

What type of movement should the simulated device do.

Function Documentation

◆ simulated_create_auto_prober()

struct xrt_auto_prober* simulated_create_auto_prober ( void  )

#include <drivers/simulated/simulated_interface.h>

Create a auto prober for simulated devices.

References xrt_auto_prober::destroy, xrt_auto_prober::lelo_dallas_autoprobe, and U_TYPED_CALLOC.

◆ simulated_create_controller()

struct xrt_device* simulated_create_controller ( enum xrt_device_name  name,
enum xrt_device_type  type,
const struct xrt_pose center,
struct xrt_tracking_origin origin 
)

#include <drivers/simulated/simulated_interface.h>

Create a simulated controller.

Supported configs:

  • XRT_DEVICE_SIMPLE_CONTROLLER
    • XRT_DEVICE_TYPE_ANY_CONTROLLER
  • XRT_DEVICE_WMR_CONTROLLER
    • XRT_DEVICE_TYPE_LEFT_CONTROLLER
    • XRT_DEVICE_TYPE_RIGHT_CONTROLLER
  • XRT_DEVICE_ML2_CONTROLLER
    • XRT_DEVICE_TYPE_ANY_CONTROLLER

◆ simulated_hmd_create()

struct xrt_device* simulated_hmd_create ( enum simulated_movement  movement,
const struct xrt_pose center 
)

#include <drivers/simulated/simulated_interface.h>

Create a simulated hmd.

◆ simulated_log_level()

enum u_logging_level simulated_log_level ( void  )

#include <drivers/simulated/simulated_interface.h>

Return the logging level that we want for the simulated related code.