external/slam: Update to 7.0.0 with RESET_TRACKER_STATE and ignore masks

This commit is contained in:
Mateo de Mayo 2023-08-23 13:53:55 -03:00 committed by Jakob Bornecrantz
parent ae1de1f2b5
commit 5fd73ea70c

View file

@ -29,7 +29,7 @@ namespace xrt::auxiliary::tracking::slam {
// For implementation: same as IMPLEMENTATION_VERSION_*
// For user: expected IMPLEMENTATION_VERSION_*. Should be checked in runtime.
constexpr int HEADER_VERSION_MAJOR = 6; //!< API Breakages
constexpr int HEADER_VERSION_MAJOR = 7; //!< API Breakages
constexpr int HEADER_VERSION_MINOR = 0; //!< Backwards compatible API changes
constexpr int HEADER_VERSION_PATCH = 0; //!< Backw. comp. .h-implemented changes
@ -61,6 +61,10 @@ struct pose {
find_pose_extension(pose_ext_type required_type) const;
};
struct rect {
float x, y, w, h;
};
/*!
* @brief IMU Sample type to pass around between programs
*/
@ -82,6 +86,7 @@ struct img_sample {
std::int64_t timestamp;
cv::Mat img;
int cam_index;
std::vector<rect> masks{}; //!< Masks to ignore
img_sample() = default;
img_sample(std::int64_t timestamp, const cv::Mat &img, int cam_index)
: timestamp(timestamp), img(img), cam_index(cam_index) {}
@ -274,6 +279,13 @@ DEFINE_FEATURE(ENABLE_POSE_EXT_TIMING, EPET, 3, bool, std::vector<std::string>)
*/
DEFINE_FEATURE(ENABLE_POSE_EXT_FEATURES, EPEF, 4, bool, void)
/*!
* Feature RESET_TRACKER_STATE
*
* Reset tracker state.
*/
DEFINE_FEATURE(RESET_TRACKER_STATE, RS, 5, void, void)
/*
* Pose extensions
*