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

#include <CameraStereoVideo.h>

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

Public Member Functions

 CameraStereoVideo (const std::string &pathSideBySide, bool rectifyImages=false, float imageRate=0.0f, const Transform &localTransform=Transform::getIdentity())
 
 CameraStereoVideo (const std::string &pathLeft, const std::string &pathRight, bool rectifyImages=false, float imageRate=0.0f, const Transform &localTransform=Transform::getIdentity())
 
 CameraStereoVideo (int device, bool rectifyImages=false, float imageRate=0.0f, const Transform &localTransform=Transform::getIdentity())
 
 CameraStereoVideo (int deviceLeft, int deviceRight, bool rectifyImages=false, float imageRate=0.0f, const Transform &localTransform=Transform::getIdentity())
 
virtual std::string getSerial () const
 
virtual bool init (const std::string &calibrationFolder=".", const std::string &cameraName="")
 
virtual bool isCalibrated () const
 
void setResolution (int width, int height)
 
virtual ~CameraStereoVideo ()
 
- Public Member Functions inherited from rtabmap::Camera
float getImageRate () const
 
const TransformgetLocalTransform () const
 
virtual bool getPose (double stamp, Transform &pose, cv::Mat &covariance)
 
bool initFromFile (const std::string &calibrationPath)
 
virtual bool odomProvided () const
 
void resetTimer ()
 
void setImageRate (float imageRate)
 
void setLocalTransform (const Transform &localTransform)
 
SensorData takeImage (CameraInfo *info=0)
 
virtual ~Camera ()
 

Static Public Member Functions

static bool available ()
 

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

int _height
 
int _width
 
std::string cameraName_
 
cv::VideoCapture capture2_
 
cv::VideoCapture capture_
 
std::string path2_
 
std::string path_
 
bool rectifyImages_
 
CameraVideo::Source src_
 
StereoCameraModel stereoModel_
 
int usbDevice2_
 
int usbDevice_
 

Detailed Description

Definition at line 38 of file CameraStereoVideo.h.

Constructor & Destructor Documentation

◆ CameraStereoVideo() [1/4]

rtabmap::CameraStereoVideo::CameraStereoVideo ( const std::string pathSideBySide,
bool  rectifyImages = false,
float  imageRate = 0.0f,
const Transform localTransform = Transform::getIdentity() 
)

Definition at line 47 of file CameraStereoVideo.cpp.

◆ CameraStereoVideo() [2/4]

rtabmap::CameraStereoVideo::CameraStereoVideo ( const std::string pathLeft,
const std::string pathRight,
bool  rectifyImages = false,
float  imageRate = 0.0f,
const Transform localTransform = Transform::getIdentity() 
)

Definition at line 63 of file CameraStereoVideo.cpp.

◆ CameraStereoVideo() [3/4]

rtabmap::CameraStereoVideo::CameraStereoVideo ( int  device,
bool  rectifyImages = false,
float  imageRate = 0.0f,
const Transform localTransform = Transform::getIdentity() 
)

Definition at line 81 of file CameraStereoVideo.cpp.

◆ CameraStereoVideo() [4/4]

rtabmap::CameraStereoVideo::CameraStereoVideo ( int  deviceLeft,
int  deviceRight,
bool  rectifyImages = false,
float  imageRate = 0.0f,
const Transform localTransform = Transform::getIdentity() 
)

Definition at line 96 of file CameraStereoVideo.cpp.

◆ ~CameraStereoVideo()

rtabmap::CameraStereoVideo::~CameraStereoVideo ( )
virtual

Definition at line 112 of file CameraStereoVideo.cpp.

Member Function Documentation

◆ available()

bool rtabmap::CameraStereoVideo::available ( )
static

Definition at line 42 of file CameraStereoVideo.cpp.

◆ captureImage()

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

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

Implements rtabmap::Camera.

Definition at line 246 of file CameraStereoVideo.cpp.

◆ getSerial()

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

Implements rtabmap::Camera.

Definition at line 241 of file CameraStereoVideo.cpp.

◆ init()

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

Implements rtabmap::Camera.

Definition at line 118 of file CameraStereoVideo.cpp.

◆ isCalibrated()

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

Implements rtabmap::Camera.

Definition at line 236 of file CameraStereoVideo.cpp.

◆ setResolution()

void rtabmap::CameraStereoVideo::setResolution ( int  width,
int  height 
)
inline

Definition at line 73 of file CameraStereoVideo.h.

Member Data Documentation

◆ _height

int rtabmap::CameraStereoVideo::_height
private

Definition at line 90 of file CameraStereoVideo.h.

◆ _width

int rtabmap::CameraStereoVideo::_width
private

Definition at line 89 of file CameraStereoVideo.h.

◆ cameraName_

std::string rtabmap::CameraStereoVideo::cameraName_
private

Definition at line 85 of file CameraStereoVideo.h.

◆ capture2_

cv::VideoCapture rtabmap::CameraStereoVideo::capture2_
private

Definition at line 80 of file CameraStereoVideo.h.

◆ capture_

cv::VideoCapture rtabmap::CameraStereoVideo::capture_
private

Definition at line 79 of file CameraStereoVideo.h.

◆ path2_

std::string rtabmap::CameraStereoVideo::path2_
private

Definition at line 82 of file CameraStereoVideo.h.

◆ path_

std::string rtabmap::CameraStereoVideo::path_
private

Definition at line 81 of file CameraStereoVideo.h.

◆ rectifyImages_

bool rtabmap::CameraStereoVideo::rectifyImages_
private

Definition at line 83 of file CameraStereoVideo.h.

◆ src_

CameraVideo::Source rtabmap::CameraStereoVideo::src_
private

Definition at line 86 of file CameraStereoVideo.h.

◆ stereoModel_

StereoCameraModel rtabmap::CameraStereoVideo::stereoModel_
private

Definition at line 84 of file CameraStereoVideo.h.

◆ usbDevice2_

int rtabmap::CameraStereoVideo::usbDevice2_
private

Definition at line 88 of file CameraStereoVideo.h.

◆ usbDevice_

int rtabmap::CameraStereoVideo::usbDevice_
private

Definition at line 87 of file CameraStereoVideo.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Jan 23 2023 03:39:00