···29293030// For implementation: same as IMPLEMENTATION_VERSION_*
3131// For user: expected IMPLEMENTATION_VERSION_*. Should be checked in runtime.
3232-constexpr int HEADER_VERSION_MAJOR = 5; //!< API Breakages
3232+constexpr int HEADER_VERSION_MAJOR = 6; //!< API Breakages
3333constexpr int HEADER_VERSION_MINOR = 0; //!< Backwards compatible API changes
3434constexpr int HEADER_VERSION_PATCH = 0; //!< Backw. comp. .h-implemented changes
3535···8181struct img_sample {
8282 std::int64_t timestamp;
8383 cv::Mat img;
8484- bool is_left;
8484+ int cam_index;
8585 img_sample() = default;
8686- img_sample(std::int64_t timestamp, const cv::Mat &img, bool is_left)
8787- : timestamp(timestamp), img(img), is_left(is_left) {}
8686+ img_sample(std::int64_t timestamp, const cv::Mat &img, int cam_index)
8787+ : timestamp(timestamp), img(img), cam_index(cam_index) {}
8888};
89899090/*!
···9494 //! Path to a implementation-specific config file. If null, use defaults.
9595 std::shared_ptr<std::string> config_file;
96969797+ //! Number of cameras to use. Required.
9898+ int cam_count = -1;
9999+97100 //! If supported, whether to open the system's UI.
9898- bool show_ui;
101101+ bool show_ui = false;
99102};
100103101104/*!
···132135 * @brief Push an image sample into the tracker.
133136 *
134137 * Same conditions as @ref push_imu_sample apply.
135135- * When using stereo frames, they must be pushed in a left-right order.
136136- * The consecutive left-right pair must have the same timestamps.
138138+ * When using N>1 cameras, the N frames must be pushed following cam_id order.
139139+ * The bundle of N frames must have the same timestamps.
137140 */
138141 void push_frame(const img_sample &sample);
139142