Monado OpenXR Runtime
t_openvr_tracker.cpp File Reference

OpenVR tracking source. More...

#include "t_openvr_tracker.h"
#include "util/u_logging.h"
#include "xrt/xrt_config_have.h"
Include dependency graph for t_openvr_tracker.cpp:

Functions

struct openvr_tracker * t_openvr_tracker_create (double, enum openvr_device *, struct xrt_pose_sink **, int)
 Creates an OpenVR tracker. More...
 
void t_openvr_tracker_start (struct openvr_tracker *)
 
void t_openvr_tracker_stop (struct openvr_tracker *)
 
void t_openvr_tracker_destroy (struct openvr_tracker *)
 

Detailed Description

OpenVR tracking source.

Author
Mateo de Mayo mateo.nosp@m..dem.nosp@m.ayo@c.nosp@m.olla.nosp@m.bora..nosp@m.com

Function Documentation

◆ t_openvr_tracker_create()

struct openvr_tracker * t_openvr_tracker_create ( double  sample_frequency_hz,
enum openvr_device devs,
struct xrt_pose_sink **  sinks,
int  sink_count 
)

Creates an OpenVR tracker.

This creates an OpenVR instance in a separate thread, and reports the tracking data of each device class devs[i] into the pose sink sinks[i] at a rate of sample_frequency.

Parameters
sample_frequency_hzSample frequency of the tracking data in hertz
devsDevices to report tracking data of
sinksWhere to stream the tracking data of each device in devs to
sink_countNumber of sinks/devices to track
Returns
struct openvr_tracker* if successfully created, null otherwise.

References U_LOG_W.