Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes
rtabmap::CameraTango Class Reference

#include <CameraTango.h>

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

List of all members.

Public Member Functions

 CameraTango (bool colorCamera, int decimation, bool publishRawScan, bool smoothing)
void close ()
void cloudReceived (const cv::Mat &cloud, double timestamp)
const CameraModelgetCameraModel () const
virtual std::string getSerial () const
virtual bool init (const std::string &calibrationFolder=".", const std::string &cameraName="")
virtual bool isCalibrated () const
void poseReceived (const Transform &pose)
void resetOrigin ()
void rgbReceived (const cv::Mat &tangoImage, int type, double timestamp)
void setColorCamera (bool enabled)
void setDecimation (int value)
void setGPS (const GPS &gps)
void setRawScanPublished (bool enabled)
void setScreenRotation (TangoSupportRotation colorCameraToDisplayRotation)
void setSmoothing (bool enabled)
void tangoEventReceived (int type, const char *key, const char *value)
rtabmap::Transform tangoPoseToTransform (const TangoPoseData *tangoPose) const
virtual ~CameraTango ()

Static Public Attributes

static const float bilateralFilteringSigmaR = 0.075f
static const float bilateralFilteringSigmaS = 2.0f

Protected Member Functions

virtual SensorData captureImage (CameraInfo *info=0)

Private Member Functions

rtabmap::Transform getPoseAtTimestamp (double timestamp)
virtual void mainLoop ()
virtual void mainLoopBegin ()

Private Attributes

UTimer cameraStartedTime_
cv::Mat cloud_
double cloudStamp_
bool colorCamera_
TangoSupportRotation colorCameraToDisplayRotation_
boost::mutex dataMutex_
USemaphore dataReady_
int decimation_
Transform deviceTColorCamera_
cv::Mat fisheyeRectifyMapX_
cv::Mat fisheyeRectifyMapY_
GPS lastKnownGPS_
CameraModel model_
Transform originOffset_
bool originUpdate_
Transform previousPose_
double previousStamp_
bool rawScanPublished_
bool smoothing_
double stampEpochOffset_
void * tango_config_
cv::Mat tangoColor_
double tangoColorStamp_
int tangoColorType_

Detailed Description

Definition at line 73 of file CameraTango.h.


Constructor & Destructor Documentation

rtabmap::CameraTango::CameraTango ( bool  colorCamera,
int  decimation,
bool  publishRawScan,
bool  smoothing 
)

Definition at line 110 of file CameraTango.cpp.

Definition at line 128 of file CameraTango.cpp.


Member Function Documentation

SensorData rtabmap::CameraTango::captureImage ( CameraInfo info = 0) [protected, virtual]

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

Implements rtabmap::Camera.

Definition at line 597 of file CameraTango.cpp.

Definition at line 426 of file CameraTango.cpp.

void rtabmap::CameraTango::cloudReceived ( const cv::Mat &  cloud,
double  timestamp 
)

Definition at line 450 of file CameraTango.cpp.

Definition at line 87 of file CameraTango.h.

Definition at line 565 of file CameraTango.cpp.

std::string rtabmap::CameraTango::getSerial ( ) const [virtual]

Implements rtabmap::Camera.

Definition at line 538 of file CameraTango.cpp.

bool rtabmap::CameraTango::init ( const std::string &  calibrationFolder = ".",
const std::string &  cameraName = "" 
) [virtual]

Implements rtabmap::Camera.

Definition at line 192 of file CameraTango.cpp.

bool rtabmap::CameraTango::isCalibrated ( ) const [virtual]

Implements rtabmap::Camera.

Definition at line 533 of file CameraTango.cpp.

void rtabmap::CameraTango::mainLoop ( ) [private, virtual]

Pure virtual method mainLoop(). The inner loop of the thread. This method is called repetitively until the thread is killed. Note that if kill() is called in mainLoopBegin(), mainLoop() is not called, terminating immediately the thread.

See also:
mainLoop()
kill()

Implements UThread.

Definition at line 929 of file CameraTango.cpp.

void rtabmap::CameraTango::mainLoopBegin ( ) [private, virtual]

Virtual method mainLoopBegin(). User can implement this function to add a behavior before the main loop is started. It is called once (before entering mainLoop()).

Reimplemented from UThread.

Definition at line 920 of file CameraTango.cpp.

Definition at line 506 of file CameraTango.cpp.

Definition at line 445 of file CameraTango.cpp.

void rtabmap::CameraTango::rgbReceived ( const cv::Mat &  tangoImage,
int  type,
double  timestamp 
)

Definition at line 488 of file CameraTango.cpp.

void rtabmap::CameraTango::setColorCamera ( bool  enabled) [inline]

Definition at line 89 of file CameraTango.h.

void rtabmap::CameraTango::setDecimation ( int  value) [inline]

Definition at line 90 of file CameraTango.h.

void rtabmap::CameraTango::setGPS ( const GPS gps)

Definition at line 543 of file CameraTango.cpp.

void rtabmap::CameraTango::setRawScanPublished ( bool  enabled) [inline]

Definition at line 92 of file CameraTango.h.

void rtabmap::CameraTango::setScreenRotation ( TangoSupportRotation  colorCameraToDisplayRotation) [inline]

Definition at line 93 of file CameraTango.h.

void rtabmap::CameraTango::setSmoothing ( bool  enabled) [inline]

Definition at line 91 of file CameraTango.h.

void rtabmap::CameraTango::tangoEventReceived ( int  type,
const char *  key,
const char *  value 
)

Definition at line 528 of file CameraTango.cpp.

rtabmap::Transform rtabmap::CameraTango::tangoPoseToTransform ( const TangoPoseData *  tangoPose) const

Definition at line 548 of file CameraTango.cpp.


Member Data Documentation

const float rtabmap::CameraTango::bilateralFilteringSigmaR = 0.075f [static]

Definition at line 76 of file CameraTango.h.

Definition at line 75 of file CameraTango.h.

Definition at line 114 of file CameraTango.h.

cv::Mat rtabmap::CameraTango::cloud_ [private]

Definition at line 120 of file CameraTango.h.

Definition at line 121 of file CameraTango.h.

Definition at line 116 of file CameraTango.h.

Definition at line 129 of file CameraTango.h.

boost::mutex rtabmap::CameraTango::dataMutex_ [private]

Definition at line 125 of file CameraTango.h.

Definition at line 126 of file CameraTango.h.

Definition at line 117 of file CameraTango.h.

Definition at line 128 of file CameraTango.h.

Definition at line 130 of file CameraTango.h.

Definition at line 131 of file CameraTango.h.

Definition at line 132 of file CameraTango.h.

Definition at line 127 of file CameraTango.h.

Definition at line 133 of file CameraTango.h.

Definition at line 134 of file CameraTango.h.

Definition at line 112 of file CameraTango.h.

Definition at line 113 of file CameraTango.h.

Definition at line 118 of file CameraTango.h.

Definition at line 119 of file CameraTango.h.

Definition at line 115 of file CameraTango.h.

Definition at line 111 of file CameraTango.h.

Definition at line 122 of file CameraTango.h.

Definition at line 124 of file CameraTango.h.

Definition at line 123 of file CameraTango.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jun 6 2019 21:59:41