From ccbe207e52625150d0a8297cfdc1be73f448d82c Mon Sep 17 00:00:00 2001 From: Aymeric Dujardin Date: Mon, 19 Jun 2017 12:19:53 +0200 Subject: [PATCH] Cleanup viewer init --- src/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index bebffae..8625add 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -90,9 +90,6 @@ int main(int argc, char** argv) { // Create the PCL point cloud visualizer shared_ptr viewer = createRGBVisualizer(p_pcl_point_cloud); - viewer->addCoordinateSystem(1.0); - viewer->initCameraParameters(); - viewer->setCameraPosition(0.140176, -0.188087, -3.58694, -0.0165125, -0.999615, 0.0222822); // Start ZED callback startZED(); @@ -187,6 +184,7 @@ shared_ptr createRGBVisualizer(pcl::PointClou viewer->setPointCloudRenderingProperties(pcl::visualization::PCL_VISUALIZER_POINT_SIZE, 1.5); viewer->addCoordinateSystem(1.0); viewer->initCameraParameters(); + viewer->setCameraPosition(0.140176, -0.188087, -3.58694, -0.0165125, -0.999615, 0.0222822); return (viewer); }