28 #ifndef CAMERATANGO_H_ 29 #define CAMERATANGO_H_ 39 #include <boost/thread/mutex.hpp> 40 #include <tango_support_api.h> 60 CameraTangoEvent(
int type,
const std::string & key,
const std::string & value) : type_(type), key_(key), value_(value) {}
61 virtual std::string
getClassName()
const {
return "CameraTangoEvent";}
62 int type()
const {
return type_;}
63 const std::string &
key()
const {
return key_;}
64 const std::string &
value()
const {
return value_;}
79 CameraTango(
bool colorCamera,
int decimation,
bool publishRawScan,
bool smoothing);
82 virtual bool init(
const std::string & calibrationFolder =
".",
const std::string & cameraName =
"");
85 virtual bool isCalibrated()
const;
86 virtual std::string getSerial()
const;
89 void setColorCamera(
bool enabled) {
if(!this->isRunning()) colorCamera_ = enabled;}
93 void setScreenRotation(TangoSupportRotation colorCameraToDisplayRotation) {colorCameraToDisplayRotation_ = colorCameraToDisplayRotation;}
94 void setGPS(
const GPS & gps);
96 void cloudReceived(
const cv::Mat & cloud,
double timestamp);
97 void rgbReceived(
const cv::Mat & tangoImage,
int type,
double timestamp);
99 void tangoEventReceived(
int type,
const char * key,
const char * value);
107 virtual void mainLoopBegin();
108 virtual void mainLoop();
cv::Mat fisheyeRectifyMapY_
virtual std::string getClassName() const
void setScreenRotation(TangoSupportRotation colorCameraToDisplayRotation)
TangoSupportRotation colorCameraToDisplayRotation_
void setRawScanPublished(bool enabled)
static const float bilateralFilteringSigmaR
const Transform & pose() const
cv::Mat fisheyeRectifyMapX_
void setSmoothing(bool enabled)
CameraTangoEvent(int type, const std::string &key, const std::string &value)
const std::string & key() const
const CameraModel & getCameraModel() const
UTimer cameraStartedTime_
virtual std::string getClassName() const
PoseEvent(const Transform &pose)
void setColorCamera(bool enabled)
static const float bilateralFilteringSigmaS
void setDecimation(int value)
Transform deviceTColorCamera_
const std::string & value() const