#include <CameraRGB.h>
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 Transform & | getLocalTransform () 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 |
Definition at line 197 of file CameraRGB.h.
Enumerator | |
---|---|
kVideoFile | |
kUsbDevice |
Definition at line 201 of file CameraRGB.h.
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.
|
virtual |
Definition at line 810 of file CameraRGB.cpp.
|
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.
|
inline |
Definition at line 218 of file CameraRGB.h.
|
virtual |
Implements rtabmap::Camera.
Definition at line 886 of file CameraRGB.cpp.
|
inline |
Definition at line 217 of file CameraRGB.h.
|
virtual |
Implements rtabmap::Camera.
Definition at line 815 of file CameraRGB.cpp.
|
virtual |
Implements rtabmap::Camera.
Definition at line 881 of file CameraRGB.cpp.
|
private |
Definition at line 228 of file CameraRGB.h.
|
private |
Definition at line 225 of file CameraRGB.h.
|
private |
Definition at line 233 of file CameraRGB.h.
|
private |
Definition at line 235 of file CameraRGB.h.
|
private |
Definition at line 226 of file CameraRGB.h.
|
private |
Definition at line 229 of file CameraRGB.h.
|
private |
Definition at line 232 of file CameraRGB.h.