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 
BaseVector.hpp
lvr2::BaseVector< float >
PointOctree.hpp
IOUtils.hpp
lvr2::PointOctree
Definition: PointOctree.hpp:32
PointBuffer.hpp
main
int main(int argc, char **argv)
Definition: src/tools/lvr2_octree_test/Main.cpp:12
argc
int argc
Definition: tests_high_five_parallel.cpp:27
lvr2
Definition: BaseBufferManipulators.hpp:39
lvr2::ModelPtr
std::shared_ptr< Model > ModelPtr
Definition: Model.hpp:80
Timestamp.hpp
lvr2::ModelFactory::readModel
static ModelPtr readModel(std::string filename)
Definition: ModelFactory.cpp:65
ModelFactory.hpp
argv
char ** argv
Definition: tests_high_five_parallel.cpp:28


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 Wed Mar 2 2022 00:37:24