23namespace xrt::tracking::constellation::optimizer {
25enum class PoseStateIndex :
int
41constexpr int kPoseStatePosStart =
static_cast<int>(PoseStateIndex::PosX);
42constexpr int kPoseStateRotStart =
static_cast<int>(PoseStateIndex::RotX);
43constexpr int kPoseStateSize =
static_cast<int>(PoseStateIndex::NumIndices);
45enum class CovarianceIndex :
int
58constexpr int kPoseCovarianceSize =
static_cast<int>(CovarianceIndex::NumIndices);
61typedef double RawPoseCovarianceMatrix[kPoseCovarianceSize * kPoseCovarianceSize];
87 t_constellation_device_id_t device_id,
89 RawPoseCovarianceMatrix out_covariance);
112 t_constellation_device_id_t device_id,
113 RawPoseCovarianceMatrix out_covariance);
Constellation tracker's camera model storage.
u_logging_level
Logging level enum.
Definition u_logging.h:45
bool optimizePose(u_logging_level log_level, bool deterministic, const camera_model ¶ms, xrt_pose init_pose, t_blob *blobs, uint32_t num_blobs, t_constellation_tracker_led_model *leds_model, t_constellation_device_id_t device_id, xrt_pose &out_pose, RawPoseCovarianceMatrix out_covariance)
Does a pose optimization and RANSAC refinement on the given blobs and LED model, returning the optimi...
Definition pose_optimize.cpp:284
void computePoseCovariance(u_logging_level log_level, const camera_model ¶ms, xrt_pose init_pose, t_blob *blobs, uint32_t num_blobs, t_constellation_tracker_led_model *leds_model, t_constellation_device_id_t device_id, RawPoseCovarianceMatrix out_covariance)
Computes the covariance of a pose given the initial pose, blobs, and LED model.
Definition pose_optimize.cpp:433
void covariancePositionRadius(const RawPoseCovarianceMatrix &raw_covariance, xrt_vec3 &radii, xrt_quat &Q_cam_cov)
Computes the radii and covariance orientation from the 3x3 position part of the pose covariance matri...
Definition pose_optimize.cpp:494
Definition camera_model.h:21
A blob is a 2d position in a camera sensor's view that is being tracked.
Definition t_constellation.h:51
The LED model is a series of points which define the real-world positions of all LEDs.
Definition t_constellation.h:311
A pose composed of a position and orientation.
Definition xrt_defines.h:522
A quaternion with single floats.
Definition xrt_defines.h:246
A 3 element vector with single floats.
Definition xrt_defines.h:310
Header defining the tracking system integration in Monado.
Common defines and enums for XRT.