mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Odometry: added "local map history" option to increase precision Added new Nearest neighbor options (LSH, brute Force, GPU brute Force) Added FREAK/ORB features Increased version to 0.6.5 git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1431 f169173b-cf89-36c8-b27e-44dbe73f0c83
56 lines
1.3 KiB
C++
56 lines
1.3 KiB
C++
/*
|
|
* 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:
|
|
OdometryViewer(int maxClouds = 10, int decimation = 2, float voxelSize = 0.0f, int qualityWarningThr=0, QWidget * parent = 0);
|
|
virtual ~OdometryViewer() {}
|
|
|
|
protected:
|
|
void handleAction(QAction * a);
|
|
virtual void handleEvent(UEvent * event);
|
|
|
|
private slots:
|
|
void processData();
|
|
|
|
private:
|
|
UMutex dataMutex_;
|
|
std::list<rtabmap::Image> data_;
|
|
int dataQuality_;
|
|
Transform lastOdomPose_;
|
|
UTimer timer_;
|
|
int maxClouds_;
|
|
float voxelSize_;
|
|
int decimation_;
|
|
int qualityWarningThr_;
|
|
int id_;
|
|
std::map<int, pcl::PointCloud<pcl::PointXYZRGB>::Ptr > clouds_;
|
|
QAction * _aSetVoxelSize;
|
|
QAction * _aSetDecimation;
|
|
QAction * _aSetCloudHistorySize;
|
|
QAction * _aPause;
|
|
};
|
|
|
|
} /* namespace rtabmap */
|
|
#endif /* ODOMETRYVIEWER_H_ */
|