33 #include "rtabmap/core/Version.h" 52 static bool available();
55 CameraMyntEye(
const std::string &
device =
"",
bool apiRectification =
false,
bool apiDepth =
false,
float imageRate = 0,
const Transform & localTransform = Transform::getIdentity());
58 virtual bool init(
const std::string & calibrationFolder =
".",
const std::string & cameraName =
"");
59 virtual bool isCalibrated()
const;
60 virtual std::string getSerial()
const;
63 void publishInterIMU(
bool enabled);
64 void setAutoExposure();
65 void setManualExposure(
int gain=24,
int brightness=120,
int constrast=116);
66 void setIrControl(
int value);
75 #ifdef RTABMAP_MYNTEYE 77 void getPoseAndIMU(
const double & stamp,
IMU & imu,
int maxWaitTimeMs = 35)
const;
80 std::shared_ptr<mynteye::Device> device_;
81 std::shared_ptr<mynteye::API> api_;
83 std::string deviceName_;
84 bool apiRectification_;
93 cv::Mat leftFrameBuffer_;
94 cv::Mat rightFrameBuffer_;
95 std::pair<cv::Mat, cv::Mat> lastFrames_;
96 double lastFramesStamp_;
98 bool publishInterIMU_;
100 std::map<double, std::pair<cv::Vec3f, cv::Vec3f> > imuBuffer_;
103 double softTimeBegin_;
106 std::vector<std::uint64_t> lastHardTimes_;
107 std::vector<std::uint64_t> acc_;
def init(descriptorDim, matchThreshold, iterations, cuda, model_path)
virtual bool odomProvided() const