Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
rtabmap::CameraVideo Class Reference

#include <CameraRGB.h>

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

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 ()
 
- Public Member Functions inherited from rtabmap::Camera
float getImageRate () const
 
const TransformgetLocalTransform () const
 
virtual bool odomProvided () const
 
void resetTimer ()
 
void setImageRate (float imageRate)
 
void setLocalTransform (const Transform &localTransform)
 
SensorData takeImage (CameraInfo *info=0)
 
virtual ~Camera ()
 

Protected Member Functions

virtual SensorData captureImage (CameraInfo *info=0)
 
- Protected Member Functions inherited from rtabmap::Camera
 Camera (float imageRate=0, const Transform &localTransform=Transform::getIdentity())
 
int getNextSeqID ()
 

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.

rtabmap::CameraVideo::~CameraVideo ( )
virtual

Definition at line 810 of file CameraRGB.cpp.

Member Function Documentation

SensorData rtabmap::CameraVideo::captureImage ( CameraInfo info = 0)
protectedvirtual

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.

CameraModel rtabmap::CameraVideo::_model
private

Definition at line 235 of file CameraRGB.h.

bool rtabmap::CameraVideo::_rectifyImages
private

Definition at line 226 of file CameraRGB.h.

Source rtabmap::CameraVideo::_src
private

Definition at line 229 of file CameraRGB.h.

int rtabmap::CameraVideo::_usbDevice
private

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 Wed Jun 5 2019 22:43:42