#include <Camera.h>
Public Member Functions | |
float | getImageRate () const |
const Transform & | getLocalTransform () const |
virtual bool | getPose (double stamp, Transform &pose, cv::Mat &covariance) |
virtual std::string | getSerial () const =0 |
virtual bool | init (const std::string &calibrationFolder=".", const std::string &cameraName="")=0 |
bool | initFromFile (const std::string &calibrationPath) |
virtual bool | isCalibrated () const =0 |
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 | |
Camera (float imageRate=0, const Transform &localTransform=Transform::getIdentity()) | |
virtual SensorData | captureImage (CameraInfo *info=0)=0 |
int | getNextSeqID () |
Private Attributes | |
UTimer * | _frameRateTimer |
float | _imageRate |
Transform | _localTransform |
int | _seq |
cv::Size | _targetImageSize |
|
virtual |
Definition at line 55 of file Camera.cpp.
|
protected |
Constructor
imageRate | the frame rate (Hz), 0 for fast as the camera can |
localTransform | the transform from base frame to camera frame (without optical rotation) |
Definition at line 46 of file Camera.cpp.
|
protectedpure virtual |
returned rgb and depth images should be already rectified if calibration was loaded
Implemented in rtabmap::CameraMobile, rtabmap::CameraImages, rtabmap::CameraRealSense2, rtabmap::CameraOpenni, rtabmap::DBReader, rtabmap::CameraStereoZed, rtabmap::CameraFreenect2, rtabmap::CameraARCore, rtabmap::CameraRealSense, rtabmap::CameraK4W2, rtabmap::CameraStereoVideo, rtabmap::CameraOpenNI2, rtabmap::CameraMyntEye, rtabmap::CameraDepthAI, rtabmap::CameraVideo, rtabmap::CameraK4A, rtabmap::CameraStereoImages, rtabmap::CameraStereoZedOC, rtabmap::CameraStereoTara, rtabmap::CameraTango, rtabmap::CameraFreenect, rtabmap::CameraStereoFlyCapture2, rtabmap::CameraAREngine, rtabmap::CameraOpenNICV, rtabmap::CameraRGBDImages, and rtabmap::CameraStereoDC1394.
|
inline |
|
inlinevirtual |
Reimplemented in rtabmap::CameraStereoZed, and rtabmap::CameraRealSense2.
|
pure virtual |
Implemented in rtabmap::CameraMobile, rtabmap::CameraOpenni, rtabmap::DBReader, rtabmap::CameraFreenect2, rtabmap::CameraStereoZed, rtabmap::CameraARCore, rtabmap::CameraK4W2, rtabmap::CameraRealSense, rtabmap::CameraRealSense2, rtabmap::CameraStereoVideo, rtabmap::CameraDepthAI, rtabmap::CameraStereoZedOC, rtabmap::CameraK4A, rtabmap::CameraOpenNI2, rtabmap::CameraStereoImages, rtabmap::CameraStereoTara, rtabmap::CameraFreenect, rtabmap::CameraMyntEye, rtabmap::CameraVideo, rtabmap::CameraStereoFlyCapture2, rtabmap::CameraImages, rtabmap::CameraAREngine, rtabmap::CameraTango, rtabmap::CameraOpenNICV, and rtabmap::CameraStereoDC1394.
|
pure virtual |
Implemented in rtabmap::CameraMobile, rtabmap::CameraOpenni, rtabmap::CameraFreenect2, rtabmap::CameraStereoZed, rtabmap::DBReader, rtabmap::CameraARCore, rtabmap::CameraK4W2, rtabmap::CameraRealSense, rtabmap::CameraRealSense2, rtabmap::CameraStereoVideo, rtabmap::CameraDepthAI, rtabmap::CameraStereoZedOC, rtabmap::CameraK4A, rtabmap::CameraOpenNI2, rtabmap::CameraStereoImages, rtabmap::CameraStereoTara, rtabmap::CameraFreenect, rtabmap::CameraMyntEye, rtabmap::CameraVideo, rtabmap::CameraStereoFlyCapture2, rtabmap::CameraImages, rtabmap::CameraAREngine, rtabmap::CameraTango, rtabmap::CameraOpenNICV, rtabmap::CameraStereoDC1394, and rtabmap::CameraRGBDImages.
bool rtabmap::Camera::initFromFile | ( | const std::string & | calibrationPath | ) |
Definition at line 67 of file Camera.cpp.
|
pure virtual |
Implemented in rtabmap::CameraMobile, rtabmap::CameraOpenni, rtabmap::DBReader, rtabmap::CameraFreenect2, rtabmap::CameraStereoZed, rtabmap::CameraK4W2, rtabmap::CameraRealSense, rtabmap::CameraRealSense2, rtabmap::CameraStereoVideo, rtabmap::CameraDepthAI, rtabmap::CameraStereoZedOC, rtabmap::CameraK4A, rtabmap::CameraOpenNI2, rtabmap::CameraStereoImages, rtabmap::CameraStereoTara, rtabmap::CameraFreenect, rtabmap::CameraMyntEye, rtabmap::CameraVideo, rtabmap::CameraStereoFlyCapture2, rtabmap::CameraImages, rtabmap::CameraOpenNICV, and rtabmap::CameraStereoDC1394.
|
inlinevirtual |
void rtabmap::Camera::resetTimer | ( | ) |
Definition at line 62 of file Camera.cpp.
|
inline |
|
inline |
SensorData rtabmap::Camera::takeImage | ( | CameraInfo * | info = 0 | ) |
Definition at line 72 of file Camera.cpp.