// Copyright 2019-2021, Collabora, Ltd. // SPDX-License-Identifier: BSL-1.0 /*! * @file * @brief vive poses header * @author Daniel Willmott * @ingroup aux_vive */ #pragma once #include "xrt/xrt_defines.h" #include "vive_config.h" #ifdef __cplusplus extern "C" { #endif /*! * 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. */ 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); #ifdef __cplusplus } #endif