CameraSeerSense.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "rtabmap/core/Camera.h"
4 #include "rtabmap/core/Version.h"
6 
7 #ifdef RTABMAP_XVSDK
8 #include <xv-sdk.h>
9 #endif
10 
11 namespace rtabmap
12 {
13 
14 class RTABMAP_CORE_EXPORT CameraSeerSense :
15  public Camera
16 {
17 public:
18  static bool available();
19 
20 public:
22  bool computeOdometry = false,
23  float imageRate = 0.0f,
24  const Transform & localTransform = Transform::getIdentity()
25  );
26  virtual ~CameraSeerSense();
27 
28  virtual bool init(const std::string & calibrationFolder = ".", const std::string & cameraName = "");
29  virtual bool isCalibrated() const;
30  virtual std::string getSerial() const;
31  virtual bool odomProvided() const;
32  virtual bool getPose(double stamp, Transform & pose, cv::Mat & covariance, double maxWaitTime = 0.0);
33 
34 protected:
35  virtual SensorData captureImage(SensorCaptureInfo * info = 0);
36 
37 private:
38 #ifdef RTABMAP_XVSDK
39  CameraModel cameraModel_;
40  bool computeOdometry_;
41  int imuId_;
42  int tofId_;
43  std::shared_ptr<xv::Device> device_;
44  std::map<double, std::pair<cv::Vec3d, cv::Vec3d>> imuBuffer_;
45  std::pair<double, std::pair<cv::Mat, cv::Mat>> lastData_;
46  UMutex imuMutex_;
47  UMutex dataMutex_;
48  USemaphore dataReady_;
49 #endif
50 };
51 
52 } // namespace rtabmap
rtabmap::SensorData
Definition: SensorData.h:51
rtabmap::Transform::getIdentity
static Transform getIdentity()
Definition: Transform.cpp:411
rtabmap::CameraModel
Definition: CameraModel.h:38
rtabmap::SensorCaptureInfo
Definition: SensorCaptureInfo.h:36
UMutex
Definition: UMutex.h:54
info
else if n * info
rtabmap::Camera
Definition: Camera.h:43
f
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
rtabmap_netvlad.init
def init(descriptorDim)
Definition: rtabmap_netvlad.py:30
getPose
Pose3_ getPose(const Expression< PinholeCamera< CALIBRATION > > &cam)
rtabmap::Transform
Definition: Transform.h:41
USemaphore
Definition: USemaphore.h:54
USemaphore.h
Camera.h
rtabmap
Definition: CameraARCore.cpp:35
rtabmap::CameraSeerSense
Definition: CameraSeerSense.h:14


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:07