Monado OpenXR Runtime
Loading...
Searching...
No Matches
led_search_model.h
Go to the documentation of this file.
1// Copyright 2020-2024 Jan Schmidt
2// Copyright 2025-2026 Beyley Cardellio
3// SPDX-License-Identifier: BSL-1.0
4/*!
5 * @file
6 * @brief LED search model management code
7 * @author Jan Schmidt <jan@centricular.com>
8 * @author Beyley Cardellio <ep1cm1n10n123@gmail.com>
9 * @ingroup tracking
10 */
11
12#pragma once
13
15
16#include "math/m_vec3.h"
17
18#include <stdlib.h>
19#include <stdio.h>
20
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
27{
29
30 //! Transform to rotate the anchor LED to face forward @ 0,0,0
31 struct xrt_pose pose;
32
33 //! List of possible neighbours for this LED, sorted by distance
35 //! The neighbours of this LED, sorted by distance. These are pointers to the LEDs in the same model.
37};
38
40{
41 t_constellation_device_id_t device_id;
42
43 uint8_t num_points;
45
46 struct t_constellation_tracker_led_model *led_model;
47};
48
50t_constellation_search_model_new(t_constellation_device_id_t device_id,
51 struct t_constellation_tracker_led_model *led_model);
52
53void
54t_constellation_search_model_free(struct t_constellation_search_model *model);
55
56#ifdef __cplusplus
57}
58#endif
C vec3 math library.
Definition led_search_model.h:27
uint8_t num_neighbours
List of possible neighbours for this LED, sorted by distance.
Definition led_search_model.h:34
struct t_constellation_tracker_led ** neighbours
The neighbours of this LED, sorted by distance. These are pointers to the LEDs in the same model.
Definition led_search_model.h:36
struct xrt_pose pose
Transform to rotate the anchor LED to face forward @ 0,0,0.
Definition led_search_model.h:31
Definition led_search_model.h:40
The LED model is a series of points which define the real-world positions of all LEDs.
Definition t_constellation.h:259
Definition t_constellation.h:238
A pose composed of a position and orientation.
Definition xrt_defines.h:492
Header defining the tracking system integration in Monado.