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

#include <CameraImages.h>

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

Public Member Functions

 CameraImages ()
 
 CameraImages (const std::string &path, float imageRate=0, const Transform &localTransform=Transform::getIdentity())
 
const CameraModelcameraModel () const
 
std::vector< std::stringfilenames () const
 
int getBayerMode () const
 
double getMaxPoseTimeDiff () 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
 
virtual bool odomProvided () const
 
void setBayerMode (int mode)
 
void setConfigForEachFrame (bool value)
 
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)
 
virtual void setMaxFrames (int value)
 
void setMaxPoseTimeDiff (double diff)
 
void setOdometryPath (const std::string &filePath, int format=0)
 
void setPath (const std::string &dir)
 
void setScanPath (const std::string &dir, int maxScanPts=0, const Transform &localTransform=Transform::getIdentity())
 
virtual void setStartIndex (int index)
 
void setTimestamps (bool fileNamesAreStamps, const std::string &filePath="", bool syncImageRateWithStamps=true)
 
virtual ~CameraImages ()
 
- Public Member Functions inherited from rtabmap::Camera
float getImageRate () const
 
bool initFromFile (const std::string &calibrationPath)
 
bool isInterIMUPublishing () const
 
void setImageRate (float imageRate)
 
void setInterIMUPublishing (bool enabled, IMUFilter *filter=0)
 
SensorData takeImage (SensorCaptureInfo *info=0)
 
virtual ~Camera ()
 
- Public Member Functions inherited from rtabmap::SensorCapture
float getFrameRate () const
 
const TransformgetLocalTransform () const
 
virtual bool getPose (double stamp, Transform &pose, cv::Mat &covariance, double maxWaitTime=0.06)
 
void resetTimer ()
 
void setFrameRate (float frameRate)
 
void setLocalTransform (const Transform &localTransform)
 
SensorData takeData (SensorCaptureInfo *info=0)
 
virtual ~SensorCapture ()
 

Protected Member Functions

virtual SensorData captureImage (SensorCaptureInfo *info=0)
 
- Protected Member Functions inherited from rtabmap::Camera
 Camera (float imageRate=0, const Transform &localTransform=Transform::getIdentity())
 
void postInterIMU (const IMU &imu, double stamp)
 
- Protected Member Functions inherited from rtabmap::SensorCapture
int getNextSeqID ()
 
 SensorCapture (float frameRate=0, const Transform &localTransform=Transform::getIdentity())
 

Private Member Functions

bool readPoses (std::list< Transform > &outputPoses, std::list< double > &stamps, const std::string &filePath, int format, double maxTimeDiff) const
 

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 _framesPublished
 
int _groundTruthFormat
 
std::string _groundTruthPath
 
bool _hasConfigForEachFrame
 
bool _isDepth
 
std::string _lastFileName
 
std::string _lastScanFileName
 
int _maxFrames
 
double _maxPoseTimeDiff
 
CameraModel _model
 
std::list< CameraModel_models
 
int _odometryFormat
 
std::string _odometryPath
 
std::string _path
 
bool _rectifyImages
 
bool _refreshDir
 
UDirectory_scanDir
 
Transform _scanLocalTransform
 
int _scanMaxPts
 
std::string _scanPath
 
std::list< double > _stamps
 
int _startAt
 
bool _syncImageRateWithStamps
 
std::string _timestampsPath
 
std::list< cv::Matcovariances_
 
std::list< TransformgroundTruth_
 
std::list< Transformodometry_
 

Detailed Description

Definition at line 39 of file CameraImages.h.

Constructor & Destructor Documentation

◆ CameraImages() [1/2]

rtabmap::CameraImages::CameraImages ( )

Definition at line 43 of file CameraImages.cpp.

◆ CameraImages() [2/2]

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

Definition at line 69 of file CameraImages.cpp.

◆ ~CameraImages()

rtabmap::CameraImages::~CameraImages ( )
virtual

Definition at line 102 of file CameraImages.cpp.

Member Function Documentation

◆ cameraModel()

const CameraModel& rtabmap::CameraImages::cameraModel ( ) const
inline

Definition at line 59 of file CameraImages.h.

◆ captureImage()

SensorData rtabmap::CameraImages::captureImage ( SensorCaptureInfo info = 0)
protectedvirtual

Implements rtabmap::Camera.

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

Definition at line 673 of file CameraImages.cpp.

◆ filenames()

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

Definition at line 660 of file CameraImages.cpp.

◆ getBayerMode()

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

Definition at line 58 of file CameraImages.h.

◆ getMaxPoseTimeDiff()

double rtabmap::CameraImages::getMaxPoseTimeDiff ( ) const
inline

Definition at line 112 of file CameraImages.h.

◆ getPath()

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

Definition at line 54 of file CameraImages.h.

◆ getSerial()

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

Implements rtabmap::SensorCapture.

Reimplemented in rtabmap::CameraStereoImages.

Definition at line 642 of file CameraImages.cpp.

◆ imagesCount()

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

Definition at line 647 of file CameraImages.cpp.

◆ init()

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

Implements rtabmap::SensorCapture.

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

Definition at line 109 of file CameraImages.cpp.

◆ isCalibrated()

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

Implements rtabmap::Camera.

Reimplemented in rtabmap::CameraStereoImages.

Definition at line 636 of file CameraImages.cpp.

◆ isImagesRectified()

bool rtabmap::CameraImages::isImagesRectified ( ) const
inline

Definition at line 57 of file CameraImages.h.

◆ odomProvided()

virtual bool rtabmap::CameraImages::odomProvided ( ) const
inlinevirtual

Reimplemented from rtabmap::SensorCapture.

Definition at line 53 of file CameraImages.h.

◆ readPoses()

bool rtabmap::CameraImages::readPoses ( std::list< Transform > &  outputPoses,
std::list< double > &  stamps,
const std::string filePath,
int  format,
double  maxTimeDiff 
) const
private

Definition at line 511 of file CameraImages.cpp.

◆ setBayerMode()

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

Definition at line 66 of file CameraImages.h.

◆ setConfigForEachFrame()

void rtabmap::CameraImages::setConfigForEachFrame ( bool  value)
inline

Definition at line 75 of file CameraImages.h.

◆ setDepth()

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

Definition at line 114 of file CameraImages.h.

◆ setDepthFromScan()

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

Definition at line 90 of file CameraImages.h.

◆ setDirRefreshed()

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

Definition at line 64 of file CameraImages.h.

◆ setGroundTruthPath()

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

Definition at line 105 of file CameraImages.h.

◆ setImagesRectified()

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

Definition at line 65 of file CameraImages.h.

◆ setMaxFrames()

virtual void rtabmap::CameraImages::setMaxFrames ( int  value)
inlinevirtual

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

Definition at line 63 of file CameraImages.h.

◆ setMaxPoseTimeDiff()

void rtabmap::CameraImages::setMaxPoseTimeDiff ( double  diff)
inline

Definition at line 111 of file CameraImages.h.

◆ setOdometryPath()

void rtabmap::CameraImages::setOdometryPath ( const std::string filePath,
int  format = 0 
)
inline

Definition at line 98 of file CameraImages.h.

◆ setPath()

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

Definition at line 61 of file CameraImages.h.

◆ setScanPath()

void rtabmap::CameraImages::setScanPath ( const std::string dir,
int  maxScanPts = 0,
const Transform localTransform = Transform::getIdentity() 
)
inline

Definition at line 80 of file CameraImages.h.

◆ setStartIndex()

virtual void rtabmap::CameraImages::setStartIndex ( int  index)
inlinevirtual

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

Definition at line 62 of file CameraImages.h.

◆ setTimestamps()

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

Definition at line 68 of file CameraImages.h.

Member Data Documentation

◆ _bayerMode

int rtabmap::CameraImages::_bayerMode
private

Definition at line 139 of file CameraImages.h.

◆ _captureDelay

double rtabmap::CameraImages::_captureDelay
private

Definition at line 177 of file CameraImages.h.

◆ _captureTimer

UTimer rtabmap::CameraImages::_captureTimer
private

Definition at line 176 of file CameraImages.h.

◆ _count

int rtabmap::CameraImages::_count
private

Definition at line 142 of file CameraImages.h.

◆ _countScan

int rtabmap::CameraImages::_countScan
private

Definition at line 147 of file CameraImages.h.

◆ _depthFromScan

bool rtabmap::CameraImages::_depthFromScan
private

Definition at line 154 of file CameraImages.h.

◆ _depthFromScanFillHoles

int rtabmap::CameraImages::_depthFromScanFillHoles
private

Definition at line 155 of file CameraImages.h.

◆ _depthFromScanFillHolesFromBorder

bool rtabmap::CameraImages::_depthFromScanFillHolesFromBorder
private

Definition at line 156 of file CameraImages.h.

◆ _depthScaleFactor

float rtabmap::CameraImages::_depthScaleFactor
private

Definition at line 141 of file CameraImages.h.

◆ _dir

UDirectory* rtabmap::CameraImages::_dir
private

Definition at line 144 of file CameraImages.h.

◆ _filenamesAreTimestamps

bool rtabmap::CameraImages::_filenamesAreTimestamps
private

Definition at line 158 of file CameraImages.h.

◆ _framesPublished

int rtabmap::CameraImages::_framesPublished
private

Definition at line 143 of file CameraImages.h.

◆ _groundTruthFormat

int rtabmap::CameraImages::_groundTruthFormat
private

Definition at line 166 of file CameraImages.h.

◆ _groundTruthPath

std::string rtabmap::CameraImages::_groundTruthPath
private

Definition at line 165 of file CameraImages.h.

◆ _hasConfigForEachFrame

bool rtabmap::CameraImages::_hasConfigForEachFrame
private

Definition at line 159 of file CameraImages.h.

◆ _isDepth

bool rtabmap::CameraImages::_isDepth
private

Definition at line 140 of file CameraImages.h.

◆ _lastFileName

std::string rtabmap::CameraImages::_lastFileName
private

Definition at line 145 of file CameraImages.h.

◆ _lastScanFileName

std::string rtabmap::CameraImages::_lastScanFileName
private

Definition at line 149 of file CameraImages.h.

◆ _maxFrames

int rtabmap::CameraImages::_maxFrames
private

Definition at line 134 of file CameraImages.h.

◆ _maxPoseTimeDiff

double rtabmap::CameraImages::_maxPoseTimeDiff
private

Definition at line 167 of file CameraImages.h.

◆ _model

CameraModel rtabmap::CameraImages::_model
private

Definition at line 173 of file CameraImages.h.

◆ _models

std::list<CameraModel> rtabmap::CameraImages::_models
private

Definition at line 174 of file CameraImages.h.

◆ _odometryFormat

int rtabmap::CameraImages::_odometryFormat
private

Definition at line 164 of file CameraImages.h.

◆ _odometryPath

std::string rtabmap::CameraImages::_odometryPath
private

Definition at line 163 of file CameraImages.h.

◆ _path

std::string rtabmap::CameraImages::_path
private

Definition at line 132 of file CameraImages.h.

◆ _rectifyImages

bool rtabmap::CameraImages::_rectifyImages
private

Definition at line 138 of file CameraImages.h.

◆ _refreshDir

bool rtabmap::CameraImages::_refreshDir
private

Definition at line 137 of file CameraImages.h.

◆ _scanDir

UDirectory* rtabmap::CameraImages::_scanDir
private

Definition at line 148 of file CameraImages.h.

◆ _scanLocalTransform

Transform rtabmap::CameraImages::_scanLocalTransform
private

Definition at line 151 of file CameraImages.h.

◆ _scanMaxPts

int rtabmap::CameraImages::_scanMaxPts
private

Definition at line 152 of file CameraImages.h.

◆ _scanPath

std::string rtabmap::CameraImages::_scanPath
private

Definition at line 150 of file CameraImages.h.

◆ _stamps

std::list<double> rtabmap::CameraImages::_stamps
private

Definition at line 169 of file CameraImages.h.

◆ _startAt

int rtabmap::CameraImages::_startAt
private

Definition at line 133 of file CameraImages.h.

◆ _syncImageRateWithStamps

bool rtabmap::CameraImages::_syncImageRateWithStamps
private

Definition at line 161 of file CameraImages.h.

◆ _timestampsPath

std::string rtabmap::CameraImages::_timestampsPath
private

Definition at line 160 of file CameraImages.h.

◆ covariances_

std::list<cv::Mat> rtabmap::CameraImages::covariances_
private

Definition at line 171 of file CameraImages.h.

◆ groundTruth_

std::list<Transform> rtabmap::CameraImages::groundTruth_
private

Definition at line 172 of file CameraImages.h.

◆ odometry_

std::list<Transform> rtabmap::CameraImages::odometry_
private

Definition at line 170 of file CameraImages.h.


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


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