From 81a9c3d454cf799a2766fe72e689bf98a2fb264c Mon Sep 17 00:00:00 2001 From: Eric Williams Date: Thu, 8 Apr 2021 21:46:42 -0500 Subject: [PATCH] Tiny cleanup to make buildable from fresh clone --- .gitignore | 1 + CMakeLists.txt | 4 ++-- environment.cpp | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..567609b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/ diff --git a/CMakeLists.txt b/CMakeLists.txt index b3be626..420b53a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 2.8 FATAL_ERROR) -add_definitions(-std=c++11) +add_definitions(-std=c++14) set(CXX_FLAGS "-Wall") set(CMAKE_CXX_FLAGS, "${CXX_FLAGS}") @@ -15,7 +15,7 @@ add_definitions(${PCL_DEFINITIONS}) list(REMOVE_ITEM PCL_LIBRARIES "vtkproj4") -add_executable (environment src/environment.cpp src/render/render.cpp src/processPointClouds.cpp) +add_executable (environment environment.cpp render/render.cpp processPointClouds.cpp) target_link_libraries (environment ${PCL_LIBRARIES}) diff --git a/environment.cpp b/environment.cpp index 739f7a3..b6b18d3 100644 --- a/environment.cpp +++ b/environment.cpp @@ -291,7 +291,7 @@ int main (int argc, char** argv) ProcessPointClouds pointProcessorI; - std::vector stream = pointProcessorI.streamPcd("/home/workspace/SFND_Lidar_Obstacle_Detection/src/sensors/data/pcd/data_1"); + std::vector stream = pointProcessorI.streamPcd("../sensors/data/pcd/data_1"); auto streamIterator = stream.begin(); pcl::PointCloud::Ptr inputCloudI; @@ -319,4 +319,4 @@ int main (int argc, char** argv) viewer->spinOnce (); } */ -} \ No newline at end of file +}