Monado OpenXR Runtime
Loading...
Searching...
No Matches
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.
 
struct xrt_auto_probersimulated_create_auto_prober (void)
 Create a auto prober for simulated devices.
 
struct xrt_devicesimulated_hmd_create (enum simulated_movement movement, const struct xrt_pose *center)
 Create a simulated hmd.
 
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.
 

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

References xrt_input::active, ARRAY_SIZE, xrt_device::binding_profile_count, xrt_device::input_count, xrt_device::inputs, xrt_binding_profile::name, xrt_device::name, xrt_device::output_count, xrt_device::outputs, xrt_device::serial, xrt_device::str, xrt_device::supported, xrt_device::tracking_origin, u_device_populate_function_pointers(), u_var_add_root(), and xrt_device::update_inputs.

◆ simulated_hmd_create()

◆ 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.

Referenced by simulated_hmd_create().