2013-12-11 00:12:44 +00:00
|
|
|
/*
|
|
|
|
|
* OdometryViewer.h
|
|
|
|
|
*
|
|
|
|
|
* Created on: 2013-10-15
|
|
|
|
|
* Author: Mathieu
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef ODOMETRYVIEWER_H_
|
|
|
|
|
#define ODOMETRYVIEWER_H_
|
|
|
|
|
|
|
|
|
|
#include "rtabmap/gui/RtabmapGuiExp.h" // DLL export/import defines
|
|
|
|
|
|
|
|
|
|
#include "rtabmap/core/Image.h"
|
|
|
|
|
#include "rtabmap/gui/CloudViewer.h"
|
|
|
|
|
#include "rtabmap/utilite/UEventsHandler.h"
|
|
|
|
|
#include "rtabmap/utilite/UTimer.h"
|
|
|
|
|
#include "rtabmap/utilite/UMutex.h"
|
|
|
|
|
|
|
|
|
|
namespace rtabmap {
|
|
|
|
|
|
|
|
|
|
class RTABMAPGUI_EXP OdometryViewer : public CloudViewer, public UEventsHandler
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2014-06-06 18:06:49 +00:00
|
|
|
OdometryViewer(int maxClouds = 10, int decimation = 2, float voxelSize = 0.0f, int qualityWarningThr=0, QWidget * parent = 0);
|
2013-12-11 00:12:44 +00:00
|
|
|
virtual ~OdometryViewer() {}
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
void handleAction(QAction * a);
|
|
|
|
|
virtual void handleEvent(UEvent * event);
|
|
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
void processData();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
UMutex dataMutex_;
|
2014-06-06 18:06:49 +00:00
|
|
|
std::list<rtabmap::Image> data_;
|
|
|
|
|
int dataQuality_;
|
2013-12-11 00:12:44 +00:00
|
|
|
UTimer timer_;
|
|
|
|
|
int maxClouds_;
|
|
|
|
|
float voxelSize_;
|
|
|
|
|
int decimation_;
|
2014-06-06 18:06:49 +00:00
|
|
|
int qualityWarningThr_;
|
2013-12-11 00:12:44 +00:00
|
|
|
int id_;
|
|
|
|
|
std::map<int, pcl::PointCloud<pcl::PointXYZRGB>::Ptr > clouds_;
|
|
|
|
|
QAction * _aSetVoxelSize;
|
|
|
|
|
QAction * _aSetDecimation;
|
|
|
|
|
QAction * _aSetCloudHistorySize;
|
|
|
|
|
QAction * _aPause;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} /* namespace rtabmap */
|
|
|
|
|
#endif /* ODOMETRYVIEWER_H_ */
|