Monado OpenXR Runtime
|
OpenVR tracking source. More...
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 *) |
OpenVR tracking source.
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.