Skip to content

Commit

Permalink
Cleanup viewer init
Browse files Browse the repository at this point in the history
  • Loading branch information
adujardin committed Jun 19, 2017
1 parent 7dbc1a1 commit ccbe207
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ int main(int argc, char** argv) {

// Create the PCL point cloud visualizer
shared_ptr<pcl::visualization::PCLVisualizer> 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();
Expand Down Expand Up @@ -187,6 +184,7 @@ shared_ptr<pcl::visualization::PCLVisualizer> 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);
}

Expand Down

0 comments on commit ccbe207

Please sign in to comment.