src
tools
lvr2_scanproject_parser
src/tools/lvr2_scanproject_parser/Main.cpp
Go to the documentation of this file.
1
#include "
Options.hpp
"
2
3
#include "
lvr2/io/descriptions/DirectoryIO.hpp
"
4
#include "
lvr2/io/descriptions/HDF5IO.hpp
"
5
#include "
lvr2/io/descriptions/ScanProjectSchemaSLAM.hpp
"
6
#include "
lvr2/io/descriptions/ScanProjectSchemaHyperlib.hpp
"
7
8
#include <boost/filesystem.hpp>
9
10
using namespace
lvr2
;
11
12
int
main
(
int
argc
,
char
**
argv
)
13
{
14
scanproject_parser::Options
options
(
argc
,
argv
);
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
31
DirectorySchemaPtr
hyperlibSchema(
new
ScanProjectSchemaHyperlib
);
32
DirectoryKernelPtr
slamCopyKernel2(
new
DirectoryKernel
(
"./hyperlib_copy"
));
33
DirectoryIO
slamIOCopy2(slamCopyKernel2, hyperlibSchema);
34
slamIOCopy2.
saveScanProject
(slamProject);
35
36
return
0;
37
}
lvr2::ScanProjectSchemaHyperlib
Definition:
ScanProjectSchemaHyperlib.hpp:14
Options.hpp
kaboom::Options::getInputDir
string getInputDir() const
Definition:
src/tools/lvr2_kaboom/Options.cpp:98
HDF5IO.hpp
lvr2::ScanProjectPtr
std::shared_ptr< ScanProject > ScanProjectPtr
Definition:
ScanTypes.hpp:344
ScanProjectSchemaSLAM.hpp
lvr2::ScanProjectSchemaSLAM
Definition:
ScanProjectSchemaSLAM.hpp:9
DirectoryIO.hpp
lvr2::DirectoryIO::saveScanProject
void saveScanProject(ScanProjectPtr project)
Definition:
DirectoryIO.cpp:6
lvr2::DirectoryIO::loadScanProject
ScanProjectPtr loadScanProject()
Definition:
DirectoryIO.cpp:15
options
const kaboom::Options * options
Definition:
src/tools/lvr2_kaboom/Main.cpp:45
main
int main(int argc, char **argv)
Definition:
src/tools/lvr2_scanproject_parser/Main.cpp:12
lvr2::DirectorySchemaPtr
std::shared_ptr< DirectorySchema > DirectorySchemaPtr
Definition:
ScanProjectSchema.hpp:93
lvr2::DirectoryKernel
Definition:
DirectoryKernel.hpp:16
scanproject_parser::Options
A class to parse the program options for the reconstruction executable.
Definition:
src/tools/lvr2_scanproject_parser/Options.hpp:58
argc
int argc
Definition:
tests_high_five_parallel.cpp:27
ScanProjectSchemaHyperlib.hpp
lvr2
Definition:
BaseBufferManipulators.hpp:39
argv
char ** argv
Definition:
tests_high_five_parallel.cpp:28
lvr2::DirectoryIO
Definition:
DirectoryIO.hpp:13
lvr2::DirectoryKernelPtr
std::shared_ptr< DirectoryKernel > DirectoryKernelPtr
Definition:
DirectoryKernel.hpp:156
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