Public Member Functions | Protected Member Functions | Private Attributes
rtabmap::CameraImages Class Reference

#include <CameraRGB.h>

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

List of all members.

Public Member Functions

 CameraImages ()
 CameraImages (const std::string &path, float imageRate=0, const Transform &localTransform=Transform::getIdentity())
const CameraModelcameraModel () const
std::vector< std::string > filenames () const
int getBayerMode () const
std::string getPath () const
virtual std::string getSerial () const
unsigned int imagesCount () const
virtual bool init (const std::string &calibrationFolder=".", const std::string &cameraName="")
virtual bool isCalibrated () const
bool isImagesRectified () const
void setBayerMode (int mode)
void setDepth (bool isDepth, float depthScaleFactor=1.0f)
void setDepthFromScan (bool enabled, int fillHoles=1, bool fillHolesFromBorder=false)
void setDirRefreshed (bool enabled)
void setGroundTruthPath (const std::string &filePath, int format=0)
void setImagesRectified (bool enabled)
void setPath (const std::string &dir)
void setScanPath (const std::string &dir, int maxScanPts=0, int downsampleStep=1, float voxelSize=0.0f, int normalsK=0, const Transform &localTransform=Transform::getIdentity())
void setStartIndex (int index)
void setTimestamps (bool fileNamesAreStamps, const std::string &filePath="", bool syncImageRateWithStamps=true)
virtual ~CameraImages ()

Protected Member Functions

virtual SensorData captureImage (CameraInfo *info=0)

Private Attributes

int _bayerMode
double _captureDelay
UTimer _captureTimer
int _count
int _countScan
bool _depthFromScan
int _depthFromScanFillHoles
bool _depthFromScanFillHolesFromBorder
float _depthScaleFactor
UDirectory_dir
bool _filenamesAreTimestamps
int _groundTruthFormat
bool _isDepth
std::string _lastFileName
std::string _lastScanFileName
CameraModel _model
std::string _path
bool _rectifyImages
bool _refreshDir
UDirectory_scanDir
int _scanDownsampleStep
Transform _scanLocalTransform
int _scanMaxPts
int _scanNormalsK
std::string _scanPath
float _scanVoxelSize
int _startAt
std::list< TransformgroundTruth_
std::string groundTruthPath_
std::list< double > stamps_
bool syncImageRateWithStamps_
std::string timestampsPath_

Detailed Description

Definition at line 48 of file CameraRGB.h.


Constructor & Destructor Documentation

Definition at line 57 of file CameraRGB.cpp.

rtabmap::CameraImages::CameraImages ( const std::string &  path,
float  imageRate = 0,
const Transform localTransform = Transform::getIdentity() 
)

Definition at line 80 of file CameraRGB.cpp.

Definition at line 110 of file CameraRGB.cpp.


Member Function Documentation

Definition at line 67 of file CameraRGB.h.

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

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

Implements rtabmap::Camera.

Reimplemented in rtabmap::CameraRGBDImages, and rtabmap::CameraStereoImages.

Definition at line 441 of file CameraRGB.cpp.

std::vector< std::string > rtabmap::CameraImages::filenames ( ) const

Definition at line 432 of file CameraRGB.cpp.

int rtabmap::CameraImages::getBayerMode ( ) const [inline]

Definition at line 66 of file CameraRGB.h.

std::string rtabmap::CameraImages::getPath ( ) const [inline]

Definition at line 62 of file CameraRGB.h.

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

Implements rtabmap::Camera.

Reimplemented in rtabmap::CameraRGBDImages, and rtabmap::CameraStereoImages.

Definition at line 418 of file CameraRGB.cpp.

unsigned int rtabmap::CameraImages::imagesCount ( ) const

Definition at line 423 of file CameraRGB.cpp.

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

Implements rtabmap::Camera.

Reimplemented in rtabmap::CameraRGBDImages, and rtabmap::CameraStereoImages.

Definition at line 123 of file CameraRGB.cpp.

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

Implements rtabmap::Camera.

Reimplemented in rtabmap::CameraRGBDImages, and rtabmap::CameraStereoImages.

Definition at line 413 of file CameraRGB.cpp.

Definition at line 65 of file CameraRGB.h.

void rtabmap::CameraImages::setBayerMode ( int  mode) [inline]

Definition at line 73 of file CameraRGB.h.

void rtabmap::CameraImages::setDepth ( bool  isDepth,
float  depthScaleFactor = 1.0f 
) [inline]

Definition at line 115 of file CameraRGB.h.

void rtabmap::CameraImages::setDepthFromScan ( bool  enabled,
int  fillHoles = 1,
bool  fillHolesFromBorder = false 
) [inline]

Definition at line 102 of file CameraRGB.h.

void rtabmap::CameraImages::setDirRefreshed ( bool  enabled) [inline]

Definition at line 71 of file CameraRGB.h.

void rtabmap::CameraImages::setGroundTruthPath ( const std::string &  filePath,
int  format = 0 
) [inline]

Definition at line 109 of file CameraRGB.h.

void rtabmap::CameraImages::setImagesRectified ( bool  enabled) [inline]

Definition at line 72 of file CameraRGB.h.

void rtabmap::CameraImages::setPath ( const std::string &  dir) [inline]

Definition at line 69 of file CameraRGB.h.

void rtabmap::CameraImages::setScanPath ( const std::string &  dir,
int  maxScanPts = 0,
int  downsampleStep = 1,
float  voxelSize = 0.0f,
int  normalsK = 0,
const Transform localTransform = Transform::getIdentity() 
) [inline]

Definition at line 82 of file CameraRGB.h.

void rtabmap::CameraImages::setStartIndex ( int  index) [inline]

Definition at line 70 of file CameraRGB.h.

void rtabmap::CameraImages::setTimestamps ( bool  fileNamesAreStamps,
const std::string &  filePath = "",
bool  syncImageRateWithStamps = true 
) [inline]

Definition at line 75 of file CameraRGB.h.


Member Data Documentation

Definition at line 131 of file CameraRGB.h.

Definition at line 164 of file CameraRGB.h.

Definition at line 163 of file CameraRGB.h.

Definition at line 134 of file CameraRGB.h.

Definition at line 138 of file CameraRGB.h.

Definition at line 148 of file CameraRGB.h.

Definition at line 149 of file CameraRGB.h.

Definition at line 150 of file CameraRGB.h.

Definition at line 133 of file CameraRGB.h.

Definition at line 135 of file CameraRGB.h.

Definition at line 152 of file CameraRGB.h.

Definition at line 157 of file CameraRGB.h.

Definition at line 132 of file CameraRGB.h.

std::string rtabmap::CameraImages::_lastFileName [private]

Definition at line 136 of file CameraRGB.h.

Definition at line 140 of file CameraRGB.h.

Definition at line 161 of file CameraRGB.h.

std::string rtabmap::CameraImages::_path [private]

Definition at line 125 of file CameraRGB.h.

Definition at line 130 of file CameraRGB.h.

Definition at line 129 of file CameraRGB.h.

Definition at line 139 of file CameraRGB.h.

Definition at line 144 of file CameraRGB.h.

Definition at line 142 of file CameraRGB.h.

Definition at line 143 of file CameraRGB.h.

Definition at line 146 of file CameraRGB.h.

std::string rtabmap::CameraImages::_scanPath [private]

Definition at line 141 of file CameraRGB.h.

Definition at line 145 of file CameraRGB.h.

Definition at line 126 of file CameraRGB.h.

Definition at line 160 of file CameraRGB.h.

Definition at line 156 of file CameraRGB.h.

std::list<double> rtabmap::CameraImages::stamps_ [private]

Definition at line 159 of file CameraRGB.h.

Definition at line 154 of file CameraRGB.h.

Definition at line 153 of file CameraRGB.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Sat Jul 23 2016 11:44:31