Monado OpenXR Runtime

Vive poses implementation. More...

#include "vive_poses.h"
#include "math/m_mathinclude.h"
#include "math/m_api.h"
Include dependency graph for vive_poses.c:

Macros

#define DEG_TO_RAD(DEG)   (DEG * M_PI / 180.)
 

Functions

static void vive_poses_apply_right_transform (struct xrt_vec3 *out_transform_position, struct xrt_vec3 *out_transform_rotation)
 
static void vive_poses_get_index_offset_euler (const enum xrt_input_name input_name, const enum xrt_device_type device_type, struct xrt_vec3 *out_transform_position, struct xrt_vec3 *out_transform_rotation)
 
static void vive_poses_get_index_hand_offset_pose (enum xrt_hand hand, struct xrt_pose *offset)
 
static void vive_poses_get_index_offset_pose (const enum xrt_input_name input_name, const enum xrt_device_type device_type, struct xrt_pose *out_offset_pose)
 
void vive_poses_get_pose_offset (enum xrt_device_name device_name, enum xrt_device_type device_type, enum xrt_input_name input_name, struct xrt_pose *out_offset_pose)
 Returns the offset from a controller's IMU to the aim pose, grip pose or wrist pose (P_imu_{aim,grip,wrist}). More...
 

Detailed Description

Vive poses implementation.

Author
Daniel Willmott web@d.nosp@m.an-w.nosp@m..com

Function Documentation

◆ vive_poses_get_pose_offset()

void vive_poses_get_pose_offset ( enum xrt_device_name  device_name,
enum xrt_device_type  device_type,
enum xrt_input_name  input_name,
struct xrt_pose out_offset_pose 
)

Returns the offset from a controller's IMU to the aim pose, grip pose or wrist pose (P_imu_{aim,grip,wrist}).

Return a non-identity pose on Returns XRT_POSE_IDENTITY on XRT_INPUT_GENERIC_TRACKER_POSE.