#include <CameraTango.h>
Public Member Functions | |
CameraTango (bool colorCamera, int decimation, bool publishRawScan, bool smoothing) | |
void | close () |
void | cloudReceived (const cv::Mat &cloud, double timestamp) |
const CameraModel & | getCameraModel () 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 () |
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 () |
Public Member Functions inherited from UThread | |
Handle | getThreadHandle () const |
unsigned long | getThreadId () const |
bool | isCreating () const |
bool | isIdle () const |
bool | isKilled () const |
bool | isRunning () const |
void | join (bool killFirst=false) |
void | kill () |
void | setAffinity (int cpu=0) |
void | setPriority (Priority priority) |
void | start () |
UThread (Priority priority=kPNormal) | |
virtual | ~UThread () |
Public Member Functions inherited from UThreadC< void > | |
int | Create (Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) const |
int | Create (Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) const |
int | Create (unsigned long &ThreadId, Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) const |
int | Create (unsigned long &ThreadId, Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) const |
virtual | ~UThreadC () |
virtual | ~UThreadC () |
Public Member Functions inherited from UEventsSender | |
UEventsSender () | |
virtual | ~UEventsSender () |
Static Public Attributes | |
static const float | bilateralFilteringSigmaR = 0.075f |
static const float | bilateralFilteringSigmaS = 2.0f |
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 () |
Protected Member Functions inherited from UThreadC< void > | |
UThreadC () | |
UThreadC () | |
Protected Member Functions inherited from UEventsSender | |
void | post (UEvent *event, bool async=true) const |
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_ |
Additional Inherited Members | |
Public Types inherited from UThread | |
enum | Priority { kPLow, kPBelowNormal, kPNormal, kPAboveNormal, kPRealTime } |
Public Types inherited from UThreadC< void > | |
typedef THREAD_HANDLE | Handle |
typedef THREAD_HANDLE | Handle |
typedef void(* | Handler) () |
typedef void(* | Handler) () |
Static Public Member Functions inherited from UThread | |
static unsigned long | currentThreadId () |
Static Public Member Functions inherited from UThreadC< void > | |
static int | Create (const Handler &Function, Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) |
static int | Create (const Handler &Function, Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) |
static int | Detach (Handle H) |
static int | Detach (const Handle &H) |
static int | Join (const Handle &H) |
static int | Join (Handle H) |
static int | Kill (Handle H) |
static int | Kill (const Handle &H) |
Static Protected Member Functions inherited from UThreadC< void > | |
static void | Exit () |
static void | Exit () |
static Handle | Self () |
static int | Self () |
static void | TestCancel () |
static void | TestCancel () |
Definition at line 73 of file CameraTango.h.
rtabmap::CameraTango::CameraTango | ( | bool | colorCamera, |
int | decimation, | ||
bool | publishRawScan, | ||
bool | smoothing | ||
) |
Definition at line 110 of file CameraTango.cpp.
|
virtual |
Definition at line 128 of file CameraTango.cpp.
|
protectedvirtual |
returned rgb and depth images should be already rectified if calibration was loaded
Implements rtabmap::Camera.
Definition at line 597 of file CameraTango.cpp.
void rtabmap::CameraTango::close | ( | ) |
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.
|
inline |
Definition at line 87 of file CameraTango.h.
|
private |
Definition at line 565 of file CameraTango.cpp.
|
virtual |
Implements rtabmap::Camera.
Definition at line 538 of file CameraTango.cpp.
|
virtual |
Implements rtabmap::Camera.
Definition at line 192 of file CameraTango.cpp.
|
virtual |
Implements rtabmap::Camera.
Definition at line 533 of file CameraTango.cpp.
|
privatevirtual |
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.
Implements UThread.
Definition at line 929 of file CameraTango.cpp.
|
privatevirtual |
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.
void rtabmap::CameraTango::poseReceived | ( | const Transform & | pose | ) |
Definition at line 506 of file CameraTango.cpp.
void rtabmap::CameraTango::resetOrigin | ( | ) |
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.
|
inline |
Definition at line 89 of file CameraTango.h.
|
inline |
Definition at line 90 of file CameraTango.h.
void rtabmap::CameraTango::setGPS | ( | const GPS & | gps | ) |
Definition at line 543 of file CameraTango.cpp.
|
inline |
Definition at line 92 of file CameraTango.h.
|
inline |
Definition at line 93 of file CameraTango.h.
|
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.
|
static |
Definition at line 76 of file CameraTango.h.
|
static |
Definition at line 75 of file CameraTango.h.
|
private |
Definition at line 114 of file CameraTango.h.
|
private |
Definition at line 120 of file CameraTango.h.
|
private |
Definition at line 121 of file CameraTango.h.
|
private |
Definition at line 116 of file CameraTango.h.
|
private |
Definition at line 129 of file CameraTango.h.
|
private |
Definition at line 125 of file CameraTango.h.
|
private |
Definition at line 126 of file CameraTango.h.
|
private |
Definition at line 117 of file CameraTango.h.
|
private |
Definition at line 128 of file CameraTango.h.
|
private |
Definition at line 130 of file CameraTango.h.
|
private |
Definition at line 131 of file CameraTango.h.
|
private |
Definition at line 132 of file CameraTango.h.
|
private |
Definition at line 127 of file CameraTango.h.
|
private |
Definition at line 133 of file CameraTango.h.
|
private |
Definition at line 134 of file CameraTango.h.
|
private |
Definition at line 112 of file CameraTango.h.
|
private |
Definition at line 113 of file CameraTango.h.
|
private |
Definition at line 118 of file CameraTango.h.
|
private |
Definition at line 119 of file CameraTango.h.
|
private |
Definition at line 115 of file CameraTango.h.
|
private |
Definition at line 111 of file CameraTango.h.
|
private |
Definition at line 122 of file CameraTango.h.
|
private |
Definition at line 124 of file CameraTango.h.
|
private |
Definition at line 123 of file CameraTango.h.