| 1 | // Copyright 2020-2023, Collabora, Ltd.cxx . . $ `<file>/src/xrt/auxiliary/vive/vive_calibration.h`/ |
| 2 | // SPDX-License-Identifier: BSL-1.0 |
| 3 | /*! |
| 4 | * @file |
| 5 | * @brief Vive calibration getters. |
| 6 | * @author Mateo de Mayo <[email protected]> |
| 7 | * @author Moshi Turner <[email protected]> |
| 8 | * @ingroup aux_vive |
| 9 | */ |
| 10 | |
| 11 | #pragma once |
| 12 | |
| 13 | #include "xrt/xrt_compiler.h"cxx . . $ `<file>/src/xrt/include/xrt/xrt_compiler.h`/ |
| 14 | #include "tracking/t_tracking.h"cxx . . $ `<file>/src/xrt/auxiliary/tracking/t_tracking.h`/ |
| 15 | |
| 16 | |
| 17 | #ifdef __cplusplus |
| 18 | extern "C" { |
| 19 | #endif |
| 20 | |
| 21 | |
| 22 | struct vive_configcxx . . $ vive_config#; |
| 23 | |
| 24 | /*! |
| 25 | * Get a @ref t_stereo_camera_calibration and @ref xrt_pose from left camera to head translation. |
| 26 | * |
| 27 | * @ingroup aux_vive |
| 28 | */ |
| 29 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! |
| 30 | vive_get_stereo_camera_calibrationcxx . . $ vive_get_stereo_camera_calibration(20d9aed43dbec117).(const struct vive_configcxx . . $ vive_config# *d, |
| 31 | struct t_stereo_camera_calibrationcxx . . $ t_stereo_camera_calibration# **calibration_ptr_to_ref, |
| 32 | struct xrt_posecxx . . $ xrt_pose# *out_head_in_left_camera); |
| 33 | |
| 34 | /*! |
| 35 | * Get a @ref t_slam_camera_calibration one for each camera. |
| 36 | * |
| 37 | * @ingroup aux_vive |
| 38 | */ |
| 39 | void |
| 40 | vive_get_slam_cams_calibcxx . . $ vive_get_slam_cams_calib(5c43bfa4f8cb0517).(const struct vive_configcxx . . $ vive_config# *d, |
| 41 | struct t_slam_camera_calibrationcxx . . $ t_slam_camera_calibration# *out_calib0, |
| 42 | struct t_slam_camera_calibrationcxx . . $ t_slam_camera_calibration# *out_calib1); |
| 43 | |
| 44 | /*! |
| 45 | * Get a @ref t_imu_calibration for the IMU. |
| 46 | * |
| 47 | * @ingroup aux_vive |
| 48 | */ |
| 49 | void |
| 50 | vive_get_imu_calibrationcxx . . $ vive_get_imu_calibration(46f0475ca492d03f).(const struct vive_configcxx . . $ vive_config# *d, struct t_imu_calibrationcxx . . $ t_imu_calibration# *out_calib); |
| 51 | |
| 52 | /*! |
| 53 | * Get a @ref t_slam_imu_calibration for the IMU. |
| 54 | * |
| 55 | * @ingroup aux_vive |
| 56 | */ |
| 57 | void |
| 58 | vive_get_slam_imu_calibrationcxx . . $ vive_get_slam_imu_calibration(5ab9fea3e270eda3).(const struct vive_configcxx . . $ vive_config# *d, struct t_slam_imu_calibrationcxx . . $ t_slam_imu_calibration# *out_calib); |
| 59 | |
| 60 | |
| 61 | #ifdef __cplusplus |
| 62 | } // extern "C" |
| 63 | #endif |