Public Types | Public Member Functions | Protected Member Functions | Private Attributes
rtabmap::CameraVideo Class Reference

#include <CameraRGB.h>

Inheritance diagram for rtabmap::CameraVideo:
Inheritance graph
[legend]

List of all members.

Public Types

enum  Source { kVideoFile, kUsbDevice }

Public Member Functions

 CameraVideo (int usbDevice=0, bool rectifyImages=false, float imageRate=0, const Transform &localTransform=Transform::getIdentity())
 CameraVideo (const std::string &filePath, bool rectifyImages=false, float imageRate=0, const Transform &localTransform=Transform::getIdentity())
const std::string & getFilePath () const
virtual std::string getSerial () const
int getUsbDevice () const
virtual bool init (const std::string &calibrationFolder=".", const std::string &cameraName="")
virtual bool isCalibrated () const
virtual ~CameraVideo ()

Protected Member Functions

virtual SensorData captureImage (CameraInfo *info=0)

Private Attributes

cv::VideoCapture _capture
std::string _filePath
std::string _guid
CameraModel _model
bool _rectifyImages
Source _src
int _usbDevice

Detailed Description

Definition at line 197 of file CameraRGB.h.


Member Enumeration Documentation

Enumerator:
kVideoFile 
kUsbDevice 

Definition at line 201 of file CameraRGB.h.


Constructor & Destructor Documentation

rtabmap::CameraVideo::CameraVideo ( int  usbDevice = 0,
bool  rectifyImages = false,
float  imageRate = 0,
const Transform localTransform = Transform::getIdentity() 
)

Definition at line 784 of file CameraRGB.cpp.

rtabmap::CameraVideo::CameraVideo ( const std::string &  filePath,
bool  rectifyImages = false,
float  imageRate = 0,
const Transform localTransform = Transform::getIdentity() 
)

Definition at line 797 of file CameraRGB.cpp.

Definition at line 810 of file CameraRGB.cpp.


Member Function Documentation

SensorData rtabmap::CameraVideo::captureImage ( CameraInfo info = 0) [protected, virtual]

returned rgb and depth images should be already rectified if calibration was loaded

Implements rtabmap::Camera.

Definition at line 891 of file CameraRGB.cpp.

const std::string& rtabmap::CameraVideo::getFilePath ( ) const [inline]

Definition at line 218 of file CameraRGB.h.

std::string rtabmap::CameraVideo::getSerial ( ) const [virtual]

Implements rtabmap::Camera.

Definition at line 886 of file CameraRGB.cpp.

int rtabmap::CameraVideo::getUsbDevice ( ) const [inline]

Definition at line 217 of file CameraRGB.h.

bool rtabmap::CameraVideo::init ( const std::string &  calibrationFolder = ".",
const std::string &  cameraName = "" 
) [virtual]

Implements rtabmap::Camera.

Definition at line 815 of file CameraRGB.cpp.

bool rtabmap::CameraVideo::isCalibrated ( ) const [virtual]

Implements rtabmap::Camera.

Definition at line 881 of file CameraRGB.cpp.


Member Data Documentation

cv::VideoCapture rtabmap::CameraVideo::_capture [private]

Definition at line 228 of file CameraRGB.h.

std::string rtabmap::CameraVideo::_filePath [private]

Definition at line 225 of file CameraRGB.h.

std::string rtabmap::CameraVideo::_guid [private]

Definition at line 233 of file CameraRGB.h.

Definition at line 235 of file CameraRGB.h.

Definition at line 226 of file CameraRGB.h.

Definition at line 229 of file CameraRGB.h.

Definition at line 232 of file CameraRGB.h.


The documentation for this class was generated from the following files:


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jun 6 2019 21:59:41