Monado OpenXR Runtime
|
OpenVR tracking source. More...
#include "xrt/xrt_tracking.h"
Go to the source code of this file.
Enumerations | |
enum | openvr_device { T_OPENVR_DEVICE_UNKNOWN = 0 , T_OPENVR_DEVICE_HMD , T_OPENVR_DEVICE_LEFT_CONTROLLER , T_OPENVR_DEVICE_RIGHT_CONTROLLER , T_OPENVR_DEVICE_TRACKER } |
The type of device. More... | |
Functions | |
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. More... | |
void | t_openvr_tracker_start (struct openvr_tracker *ovrt) |
void | t_openvr_tracker_stop (struct openvr_tracker *ovrt) |
void | t_openvr_tracker_destroy (struct openvr_tracker *ovrt) |
OpenVR tracking source.
enum openvr_device |
The type of device.
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
.
sample_frequency_hz | Sample frequency of the tracking data in hertz |
devs | Devices to report tracking data of |
sinks | Where to stream the tracking data of each device in devs to |
sink_count | Number of sinks/devices to track |
References U_LOG_W.