24#define MAX_OBJECT_LEDS 64
34XRT_MAYBE_UNUSED
static bool
37 return rect->left != rect->right && rect->top != rect->bottom;
56#define POSE_SET_FLAG(score, f) ((score)->match_flags |= (f))
57#define POSE_CLEAR_FLAG(score, f) ((score)->match_flags &= ~(f))
58#define POSE_HAS_FLAGS(score, f) (((score)->match_flags & (f)) == (f))
68 double reprojection_error;
81 struct t_blob *matched_blob;
89 bool all_led_ids_matched;
93 double reprojection_error;
98pose_metrics_match_pose_to_blobs(
struct xrt_pose *pose,
102 t_constellation_device_id_t device_id,
112 t_constellation_device_id_t device_id,
117pose_metrics_evaluate_pose_with_prior(
struct pose_metrics *score,
119 bool prior_must_match,
121 const struct xrt_vec3 *pos_error_thresh,
122 const struct xrt_vec3 *rot_error_thresh,
126 t_constellation_device_id_t device_id,
Constellation tracker's camera model storage.
pose_match_flags
Definition pose_metrics.h:41
@ POSE_MATCH_LED_IDS
The LED IDs on the blobs all matched the LEDs we thought (or were unassigned)
Definition pose_metrics.h:53
@ POSE_MATCH_ORIENT
The orientation of the pose matched the prior well.
Definition pose_metrics.h:49
@ POSE_HAD_PRIOR
If a pose prior was supplied when calculating the score, then rot/trans_error are set.
Definition pose_metrics.h:51
@ POSE_MATCH_POSITION
The position of the pose matched the prior well.
Definition pose_metrics.h:47
@ POSE_MATCH_GOOD
A reasonable pose match - most LEDs matched to within a few pixels error.
Definition pose_metrics.h:43
@ POSE_MATCH_STRONG
A strong pose match is a match with very low error.
Definition pose_metrics.h:45
bool pose_metrics_score_is_better_pose(struct pose_metrics *old_score, struct pose_metrics *new_score)
Compares whether new_score is a better pose than old_score.
Definition pose_metrics.c:462
Definition camera_model.h:19
Definition pose_metrics.h:85
Definition pose_metrics.h:75
Definition pose_metrics.h:61
Definition pose_metrics.h:27
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
Definition t_constellation.h:238
A pose composed of a position and orientation.
Definition xrt_defines.h:492
A 2 element vector with single floats.
Definition xrt_defines.h:268
A 3 element vector with single floats.
Definition xrt_defines.h:289
Header defining the tracking system integration in Monado.
Common defines and enums for XRT.