#include <CameraVideo.h>
Public Types | |
enum | Source { kVideoFile, kUsbDevice } |
Public Member Functions | |
CameraVideo (int usbDevice=0, bool rectifyImages=false, float imageRate=0, const Transform &localTransform=CameraModel::opticalRotation()) | |
CameraVideo (const std::string &filePath, bool rectifyImages=false, float imageRate=0, const Transform &localTransform=CameraModel::opticalRotation()) | |
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 |
void | setResolution (int width, int height) |
virtual | ~CameraVideo () |
Public Member Functions inherited from rtabmap::Camera | |
float | getImageRate () const |
const Transform & | getLocalTransform () const |
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 () |
Protected Member Functions | |
virtual SensorData | captureImage (CameraInfo *info=0) |
Protected Member Functions inherited from rtabmap::Camera | |
Camera (float imageRate=0, const Transform &localTransform=CameraModel::opticalRotation()) | |
int | getNextSeqID () |
Private Attributes | |
cv::VideoCapture | _capture |
std::string | _filePath |
std::string | _guid |
int | _height |
CameraModel | _model |
bool | _rectifyImages |
Source | _src |
int | _usbDevice |
int | _width |
Definition at line 38 of file CameraVideo.h.
Enumerator | |
---|---|
kVideoFile | |
kUsbDevice |
Definition at line 42 of file CameraVideo.h.
rtabmap::CameraVideo::CameraVideo | ( | int | usbDevice = 0 , |
bool | rectifyImages = false , |
||
float | imageRate = 0 , |
||
const Transform & | localTransform = CameraModel::opticalRotation() |
||
) |
Definition at line 41 of file CameraVideo.cpp.
rtabmap::CameraVideo::CameraVideo | ( | const std::string & | filePath, |
bool | rectifyImages = false , |
||
float | imageRate = 0 , |
||
const Transform & | localTransform = CameraModel::opticalRotation() |
||
) |
Definition at line 56 of file CameraVideo.cpp.
|
virtual |
Definition at line 71 of file CameraVideo.cpp.
|
protectedvirtual |
returned rgb and depth images should be already rectified if calibration was loaded
Implements rtabmap::Camera.
Definition at line 165 of file CameraVideo.cpp.
|
inline |
Definition at line 59 of file CameraVideo.h.
|
virtual |
Implements rtabmap::Camera.
Definition at line 160 of file CameraVideo.cpp.
|
inline |
Definition at line 58 of file CameraVideo.h.
|
virtual |
Implements rtabmap::Camera.
Definition at line 76 of file CameraVideo.cpp.
|
virtual |
Implements rtabmap::Camera.
Definition at line 155 of file CameraVideo.cpp.
|
inline |
Set wanted usb resolution, should be set before initialization. 0 means default resolution. It won't be applied if a valid camera calibration has been loaded, thus resolution from calibration is used.
Definition at line 66 of file CameraVideo.h.
|
private |
Definition at line 76 of file CameraVideo.h.
|
private |
Definition at line 73 of file CameraVideo.h.
|
private |
Definition at line 81 of file CameraVideo.h.
|
private |
Definition at line 83 of file CameraVideo.h.
|
private |
Definition at line 85 of file CameraVideo.h.
|
private |
Definition at line 74 of file CameraVideo.h.
|
private |
Definition at line 77 of file CameraVideo.h.
|
private |
Definition at line 80 of file CameraVideo.h.
|
private |
Definition at line 82 of file CameraVideo.h.