mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-08 12:30:20 +08:00
fixed #498
This commit is contained in:
+2
-2
@@ -565,8 +565,8 @@ IF(WITH_ORB_SLAM2 AND NOT G2O_FOUND)
|
||||
ENDIF(ORB_SLAM2_FOUND)
|
||||
ENDIF(WITH_ORB_SLAM2 AND NOT G2O_FOUND)
|
||||
|
||||
IF(loam_velodyne_FOUND)
|
||||
#LOAM requires c++14
|
||||
IF(loam_velodyne_FOUND OR PCL_VERSION VERSION_GREATER_EQUAL "1.10.0")
|
||||
#LOAM and PCL>=1.10 require c++14
|
||||
IF(NOT MSVC)
|
||||
include(CheckCXXCompilerFlag)
|
||||
CHECK_CXX_COMPILER_FLAG("-std=c++14" COMPILER_SUPPORTS_CXX14)
|
||||
|
||||
@@ -167,7 +167,8 @@ protected Q_SLOTS:
|
||||
}
|
||||
cloud->push_back(pt);
|
||||
}
|
||||
pcl::PointXYZRGB anchor(255, 0, 0);
|
||||
pcl::PointXYZRGB anchor;
|
||||
anchor.r = 255;
|
||||
cloud->push_back(anchor);
|
||||
//UWARN("level %d -> %d pose=%s size=%d", level, iter->second.first, wifiPose.prettyPrint().c_str(), (int)cloud->size());
|
||||
if(!cloudViewer_->addCloud(cloudName, cloud, wifiPose, Qt::yellow))
|
||||
|
||||
@@ -130,7 +130,8 @@ void CloudViewerInteractorStyle::OnMouseMove()
|
||||
|
||||
viewer_->removeCloud("interactor_points_alt");
|
||||
pointsHolder_->resize(2);
|
||||
pcl::PointXYZRGB pt(255,0,0);
|
||||
pcl::PointXYZRGB pt;
|
||||
pt.r = 255;
|
||||
pt.x = picked[0];
|
||||
pt.y = picked[1];
|
||||
pt.z = picked[2];
|
||||
@@ -276,7 +277,8 @@ void CloudViewerInteractorStyle::OnLeftButtonDown()
|
||||
|
||||
viewer_->removeCloud("interactor_points");
|
||||
pointsHolder_->clear();
|
||||
pcl::PointXYZRGB pt(255,0,0);
|
||||
pcl::PointXYZRGB pt;
|
||||
pt.r = 255;
|
||||
pt.x = picked[0];
|
||||
pt.y = picked[1];
|
||||
pt.z = picked[2];
|
||||
|
||||
Reference in New Issue
Block a user