mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 00:37:46 +08:00
-Added the grid map in the 3D map view (pcl::TextureMesh, available only when pcl>=1.7.2). Refactored how 2d maps are created.
-Fixed export grid map on Mac OS X. git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1623 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include <QtGui/QGraphicsView>
|
||||
#include <QtCore/QMap>
|
||||
#include <rtabmap/core/Link.h>
|
||||
#include <opencv2/opencv.hpp>
|
||||
#include <map>
|
||||
|
||||
class QGraphicsItem;
|
||||
@@ -28,12 +29,13 @@ public:
|
||||
virtual ~GraphViewer();
|
||||
|
||||
void updateGraph(const std::map<int, Transform> & poses,
|
||||
const std::multimap<int, Link> & constraints,
|
||||
const QMap<int, std::vector<unsigned char> > & scans);
|
||||
const std::multimap<int, Link> & constraints);
|
||||
void updateMap(const cv::Mat & map8U, float resolution, float xMin, float yMin);
|
||||
void clearGraph();
|
||||
void clearMap();
|
||||
void clearAll();
|
||||
|
||||
void setWorkingDirectory(const QString & path) {_workingDirectory = path;}
|
||||
void setGridCellSize(float size) {Q_ASSERT(_gridCellSize>0.0f); _gridCellSize= size;}
|
||||
|
||||
protected:
|
||||
virtual void wheelEvent ( QWheelEvent * event );
|
||||
@@ -53,7 +55,6 @@ private:
|
||||
QGraphicsPixmapItem * _gridMap;
|
||||
QGraphicsItemGroup * _lastReferential;
|
||||
float _gridCellSize;
|
||||
bool _gridUnknownSpaceFilled;
|
||||
};
|
||||
|
||||
} /* namespace rtabmap */
|
||||
|
||||
Reference in New Issue
Block a user