34 #include "rtabmap/core/Version.h" 36 #ifdef RTABMAP_DEPTHAI 37 #ifndef DEPTHAI_OPENCV_SUPPORT 38 #define DEPTHAI_OPENCV_SUPPORT 40 #include <depthai/depthai.hpp> 50 static bool available();
54 const std::string & deviceSerial =
"",
60 void setOutputDepth(
bool enabled,
int confidence = 200);
61 void setIMUFirmwareUpdate(
bool enabled);
62 void setIMUPublished(
bool published);
64 virtual bool init(
const std::string & calibrationFolder =
".",
const std::string & cameraName =
"");
65 virtual bool isCalibrated()
const;
66 virtual std::string getSerial()
const;
72 #ifdef RTABMAP_DEPTHAI 75 std::string deviceSerial_;
79 bool imuFirmwareUpdate_;
81 std::shared_ptr<dai::Device> device_;
82 std::shared_ptr<dai::DataOutputQueue> leftQueue_;
83 std::shared_ptr<dai::DataOutputQueue> rightOrDepthQueue_;
84 std::shared_ptr<dai::DataOutputQueue> imuQueue_;
85 std::map<double, cv::Vec3f> accBuffer_;
86 std::map<double, cv::Vec3f> gyroBuffer_;
def init(descriptorDim, matchThreshold, iterations, cuda, model_path)