Monado OpenXR Runtime
Loading...
Searching...
No Matches
pose_optimize.h
Go to the documentation of this file.
1// Copyright 2015, Philipp Zabel
2// Copyright 2020-2023
3// Copyright 2026, Beyley Cardellio
4// SPDX-License-Identifier: BSL-1.0
5/*!
6 * @file
7 * @brief RANSAC PnP pose refinement
8 * @author Philipp Zabel <philipp.zabel@gmail.com>
9 * @author Jan Schmidt <jan@centricular.com>
10 * @author Beyley Cardellio <ep1cm1n10n123@gmail.com>
11 * @ingroup aux_tracking
12 */
13
14#pragma once
15
16#include "xrt/xrt_config_have.h"
17#include "xrt/xrt_defines.h"
18
20
21#include "camera_model.h"
22
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#ifdef XRT_HAVE_OPENCV
29bool
30ransac_pnp_pose(enum u_logging_level log_level,
31 struct xrt_pose *pose,
32 struct t_blob *blobs,
33 int num_blobs,
34 struct t_constellation_tracker_led_model *leds_model,
35 t_constellation_device_id_t device_id,
36 struct camera_model *calib,
37 int *num_leds_out,
38 int *num_inliers);
39
40#else
41static inline bool
42ransac_pnp_pose(enum u_logging_level log_level,
43 struct xrt_pose *pose,
44 struct t_blob *blobs,
45 int num_blobs,
46 struct t_constellation_tracker_led_model *leds_model,
47 t_constellation_device_id_t device_id,
48 struct camera_model *calib,
49 int *num_leds_out,
50 int *num_inliers)
51{
52 (void)log_level;
53 (void)pose;
54 (void)blobs;
55 (void)num_blobs;
56 (void)leds_model;
57 (void)device_id;
58 (void)calib;
59 (void)num_leds_out;
60 (void)num_inliers;
61
62 return false;
63}
64#endif /* HAVE_OPENCV */
65
66#ifdef __cplusplus
67}
68#endif
Constellation tracker's camera model storage.
u_logging_level
Logging level enum.
Definition u_logging.h:45
Definition camera_model.h:19
A blob is a 2d position in a camera sensor's view that is being tracked.
Definition t_constellation.h:36
The LED model is a series of points which define the real-world positions of all LEDs.
Definition t_constellation.h:259
A pose composed of a position and orientation.
Definition xrt_defines.h:492
Header defining the tracking system integration in Monado.
Common defines and enums for XRT.