src/tools/lvr2_octree_test/Main.cpp
Go to the documentation of this file.
4 #include "lvr2/io/Timestamp.hpp"
6 #include "lvr2/io/IOUtils.hpp"
7 
8 
9 using namespace lvr2;
11 
12 int main(int argc, char** argv)
13 {
14  if(argc < 2)
15  {
16  return 0;
17  }
18 
19  std::cout << argv[1] << std::endl;
20  ModelPtr model = ModelFactory::readModel(std::string(argv[1]));
21 
22  // Parse loaded data
23  if (!model)
24  {
25  std::cout << "IO Error: Unable to parse " << std::endl;
26  return 0;
27  }
28 
29  PointOctree<Vec> oct = PointOctree<Vec>(model->m_pointCloud, 5);
30 
31  return 0;
32 }
33 
static ModelPtr readModel(std::string filename)
std::shared_ptr< Model > ModelPtr
Definition: Model.hpp:80
int main(int argc, char **argv)
char ** argv


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:08