28 #ifndef CAMERAMOBILE_H_ 29 #define CAMERAMOBILE_H_ 39 #include <boost/thread/mutex.hpp> 48 virtual std::string
getClassName()
const {
return "CameraInfoEvent";}
50 const std::string &
key()
const {
return key_;}
81 const cv::Mat & pointCloudData,
86 std::vector<cv::KeyPoint> * kpts = 0,
87 std::vector<cv::Point3f> * kpts3D = 0,
95 virtual bool init(
const std::string & calibrationFolder =
".",
const std::string & cameraName =
"");
97 virtual std::string
getSerial()
const {
return "CameraMobile";}
101 virtual bool isCalibrated()
const;
103 void poseReceived(
const Transform & pose);
109 void setGPS(
const GPS & gps);
110 void addEnvSensor(
int type,
float value);
128 virtual void mainLoopBegin();
129 virtual void mainLoop();
140 float transformed_uvs_[8];
141 bool uvs_initialized_ =
false;
virtual std::string getSerial() const
const Transform & pose() const
const Transform & getOriginOffset() const
void setSmoothing(bool enabled)
ScreenRotation colorCameraToDisplayRotation_
def init(descriptorDim, matchThreshold, iterations, cuda, model_path)
bool uvsInitialized() const
CameraModel occlusionModel_
Transform deviceTColorCamera_
virtual std::string getClassName() const
UTimer spinOnceFrameRateTimer_
UTimer cameraStartedTime_
CameraInfoEvent(int type, const std::string &key, const std::string &value)
EnvSensors lastEnvSensors_
static const float bilateralFilteringSigmaS
virtual void capturePoseOnly()
virtual void setScreenRotationAndSize(ScreenRotation colorCameraToDisplayRotation, int width, int height)
ScreenRotation getScreenRotation() const
PoseEvent(const Transform &pose)
const Transform & getDeviceTColorCamera() const
const cv::Mat & getOcclusionImage(CameraModel *model=0) const
static const rtabmap::Transform opticalRotation
static const float bilateralFilteringSigmaR
double spinOncePreviousStamp_
const CameraModel & getCameraModel() const
const float * uvsTransformed() const
void setOcclusionImage(const cv::Mat &image, const CameraModel &model)
void getVPMatrices(glm::mat4 &view, glm::mat4 &projection) const
std::map< EnvSensor::Type, EnvSensor > EnvSensors
static const rtabmap::Transform opticalRotationInv
virtual std::string getClassName() const
const std::string & value() const
glm::mat4 projectionMatrix_
const std::string & key() const