Monado OpenXR Runtime
|
PSVR tracker code. More...
#include "xrt/xrt_tracking.h"
#include "tracking/t_tracking.h"
#include "util/u_misc.h"
#include "util/u_debug.h"
#include "util/u_frame.h"
#include "util/u_format.h"
#include "util/u_time.h"
#include "math/m_api.h"
#include "os/os_threading.h"
#include <stdio.h>
#include <assert.h>
#include <pthread.h>
Data Structures | |
class | TrackerPSVR |
Functions | |
void | t_psvr_push_imu (struct xrt_tracked_psvr *xtvr, timepoint_ns timestamp_ns, struct xrt_tracking_sample *sample) |
void | t_psvr_get_tracked_pose (struct xrt_tracked_psvr *xtvr, timepoint_ns when_ns, struct xrt_space_relation *out_relation) |
void | t_psvr_fake_destroy (struct xrt_tracked_psvr *xtvr) |
void | t_psvr_sink_push_frame (struct xrt_frame_sink *xsink, struct xrt_frame *xf) |
void | t_psvr_node_break_apart (struct xrt_frame_node *node) |
void | t_psvr_node_destroy (struct xrt_frame_node *node) |
void * | t_psvr_run (void *ptr) |
int | t_psvr_start (struct xrt_tracked_psvr *xtvr) |
int | t_psvr_create (struct xrt_frame_context *xfctx, struct t_stereo_camera_calibration *data, struct xrt_tracked_psvr **out_xtvr, struct xrt_frame_sink **out_sink) |
PSVR tracker code.
int t_psvr_create | ( | struct xrt_frame_context * | xfctx, |
struct t_stereo_camera_calibration * | data, | ||
struct xrt_tracked_psvr ** | out_xtvr, | ||
struct xrt_frame_sink ** | out_sink | ||
) |
References TrackerPSVR::base, xrt_frame_node::break_apart, xrt_frame_node::destroy, xrt_tracked_psvr::destroy, TrackerPSVR::fusion, xrt_tracked_psvr::get_tracked_pose, TrackerPSVR::node, xrt_frame_sink::push_frame, xrt_tracked_psvr::push_imu, TrackerPSVR::rot, TrackerPSVR::sink, t_psvr_fake_destroy(), t_psvr_get_tracked_pose(), t_psvr_node_break_apart(), t_psvr_node_destroy(), t_psvr_push_imu(), t_psvr_sink_push_frame(), and xrt_quat::w.
void t_psvr_fake_destroy | ( | struct xrt_tracked_psvr * | xtvr | ) |
References TrackerPSVR::base, and container_of.
Referenced by t_psvr_create().
void t_psvr_get_tracked_pose | ( | struct xrt_tracked_psvr * | xtvr, |
timepoint_ns | when_ns, | ||
struct xrt_space_relation * | out_relation | ||
) |
References TrackerPSVR::base, and container_of.
Referenced by t_psvr_create().
void t_psvr_node_break_apart | ( | struct xrt_frame_node * | node | ) |
References container_of.
Referenced by t_psvr_create().
void t_psvr_node_destroy | ( | struct xrt_frame_node * | node | ) |
References container_of.
Referenced by t_psvr_create().
void t_psvr_push_imu | ( | struct xrt_tracked_psvr * | xtvr, |
timepoint_ns | timestamp_ns, | ||
struct xrt_tracking_sample * | sample | ||
) |
References TrackerPSVR::base, and container_of.
Referenced by t_psvr_create().
void* t_psvr_run | ( | void * | ptr | ) |
void t_psvr_sink_push_frame | ( | struct xrt_frame_sink * | xsink, |
struct xrt_frame * | xf | ||
) |
References container_of, TrackerPSVR::frame, and TrackerPSVR::sink.
Referenced by t_psvr_create().
int t_psvr_start | ( | struct xrt_tracked_psvr * | xtvr | ) |
References TrackerPSVR::base, and container_of.