Monado OpenXR Runtime
vive_poses.h
Go to the documentation of this file.
1// Copyright 2019-2021, Collabora, Ltd.
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief vive poses header
6 * @author Daniel Willmott <web@dan-w.com>
7 * @ingroup aux_vive
8 */
9
10#pragma once
11
12#include "xrt/xrt_defines.h"
13#include "vive_config.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19/*!
20 * Returns the offset from a controller's IMU to the aim pose, grip pose or wrist pose (P_imu_{aim,grip,wrist}).
21 *
22 * Return a non-identity pose on
23 * Returns XRT_POSE_IDENTITY on XRT_INPUT_GENERIC_TRACKER_POSE.
24 */
25
26void
28 enum xrt_device_type device_type,
29 enum xrt_input_name input_name,
30 struct xrt_pose *out_offset_pose);
31
32
33#ifdef __cplusplus
34}
35#endif
xrt_input_name
Every internal input source known to monado with a baked in type.
Definition: xrt_defines.h:1301
xrt_device_type
How an xrt_device can be used.
Definition: xrt_defines.h:786
A pose composed of a position and orientation.
Definition: xrt_defines.h:465
vive json header
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,...
Definition: vive_poses.c:159
Common defines and enums for XRT.
xrt_device_name
A enum that is used to name devices so that the state trackers can reason about the devices easier.
Definition: xrt_defines.h:712