Fixed focal computation when images are registered (freenect), Updated FindOpenNI2.cmake for unix

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1364 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2014-06-14 16:09:44 +00:00
parent a943083e0b
commit c2f6439567
5 changed files with 48 additions and 8 deletions

View File

@@ -36,6 +36,7 @@ class RTABMAP_EXP FreenectDevice {
cv::Mat getRgb();
cv::Mat getDepth();
float getDepthFocal() const {return depthFocal_;}
// Do not call directly even in child
void VideoCallback(void *video, uint32_t timestamp);
@@ -59,6 +60,7 @@ class RTABMAP_EXP FreenectDevice {
UMutex rgbMutex_;
bool depthReady_;
bool rgbReady_;
float depthFocal_;
};
class RTABMAP_EXP CameraFreenect : public UEventsSender, public UThread