This commit is contained in:
matlabbe
2020-02-05 20:01:02 -05:00
parent f7deefb31d
commit c9f21e7ebf
3 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -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)
+2 -1
View File
@@ -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))
+4 -2
View File
@@ -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];