src/tools/lvr2_scanproject_parser/Main.cpp
Go to the documentation of this file.
1 #include "Options.hpp"
2 
7 
8 #include <boost/filesystem.hpp>
9 
10 using namespace lvr2;
11 
12 int main(int argc, char** argv)
13 {
15 
16  std::string slamDir = options.getInputDir();
17  std::string hyperlibDir = "./hyperlib";
18 
19  // Read slam6d data from input dir
20  DirectorySchemaPtr slamSchemaPtr(new ScanProjectSchemaSLAM);
21  DirectoryKernelPtr slamDirKernel(new DirectoryKernel(slamDir));
22  DirectoryIO slamIO(slamDirKernel, slamSchemaPtr);
23  ScanProjectPtr slamProject = slamIO.loadScanProject();
24 
25  // Copy project using slam6d schema
26  DirectoryKernelPtr slamCopyKernel(new DirectoryKernel("./slam_copy"));
27  DirectoryIO slamIOCopy(slamCopyKernel, slamSchemaPtr);
28  slamIOCopy.saveScanProject(slamProject);
29 
30  // Copy project using hyperlib schema
32  DirectoryKernelPtr slamCopyKernel2(new DirectoryKernel("./hyperlib_copy"));
33  DirectoryIO slamIOCopy2(slamCopyKernel2, hyperlibSchema);
34  slamIOCopy2.saveScanProject(slamProject);
35 
36  return 0;
37 }
const kaboom::Options * options
int main(int argc, char **argv)
ScanProjectPtr loadScanProject()
Definition: DirectoryIO.cpp:15
std::shared_ptr< DirectorySchema > DirectorySchemaPtr
std::shared_ptr< ScanProject > ScanProjectPtr
Definition: ScanTypes.hpp:344
A class to parse the program options for the reconstruction executable.
void saveScanProject(ScanProjectPtr project)
Definition: DirectoryIO.cpp:6
std::shared_ptr< DirectoryKernel > DirectoryKernelPtr
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