Added Octomap visualization and export options

This commit is contained in:
matlabbe
2016-07-15 17:46:13 -04:00
parent c24079884d
commit b4b7b6f455
13 changed files with 737 additions and 397 deletions
+7
View File
@@ -58,9 +58,12 @@ namespace pcl {
}
class QMenu;
class vtkProp;
namespace rtabmap {
class OctoMap;
class RTABMAPGUI_EXP CloudViewer : public QVTKWidget
{
Q_OBJECT
@@ -136,6 +139,9 @@ public:
const pcl::TextureMesh::Ptr & textureMesh,
const Transform & pose = Transform::getIdentity());
bool addOctomap(const OctoMap * octomap, unsigned int treeDepth = 0, bool showEdges = true, bool lightingOn = false);
void removeOctomap();
bool addOccupancyGridMap(
const cv::Mat & map8U,
float resolution, // cell size
@@ -326,6 +332,7 @@ private:
bool _backfaceCulling;
bool _frontfaceCulling;
double _renderingRate;
vtkProp * _octomapActor;
};
} /* namespace rtabmap */