src/tools/lvr2_slam2hdf5/Main.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2011 Uni Osnabrück
2  * This file is part of the LAS VEGAS Reconstruction Toolkit,
3  *
4  * LAS VEGAS is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * LAS VEGAS is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
17  */
18 
19 
20 #include "Options.hpp"
21 #include "lvr2/types/ScanTypes.hpp"
22 #include "lvr2/io/HDF5IO.hpp"
23 #include "lvr2/io/IOUtils.hpp"
24 
25 using namespace lvr2;
26 
27 int main(int argc, char** argv)
28 {
29  // Parse command line arguments
31 
32  std::vector<ScanPtr> scans;
33  parseSLAMDirectory(options.inputDir(), scans);
34 
35  HDF5IO hdf5("test.h5", true);
36 
37  for(size_t i = 0; i < scans.size(); i++)
38  {
39  hdf5.addRawScan((int)i, scans[i]);
40  }
41 
42  return 0;
43 }
44 
HDF5IO.hpp
slam2hdf5::Options
A class to parse the program options for the reconstruction executable.
Definition: src/tools/lvr2_slam2hdf5/Options.hpp:51
main
int main(int argc, char **argv)
Definition: src/tools/lvr2_slam2hdf5/Main.cpp:27
IOUtils.hpp
ScanTypes.hpp
options
const kaboom::Options * options
Definition: src/tools/lvr2_kaboom/Main.cpp:45
lvr2::HDF5IO::addRawScan
void addRawScan(int nr, ScanPtr scan)
Definition: HDF5IO.cpp:799
argc
int argc
Definition: tests_high_five_parallel.cpp:27
lvr2::parseSLAMDirectory
void parseSLAMDirectory(std::string dir, vector< ScanPtr > &scans)
Reads a directory containing data from slam6d. Represents.
Definition: IOUtils.cpp:476
lvr2
Definition: BaseBufferManipulators.hpp:39
lvr2::HDF5IO
Definition: descriptions/HDF5IO.hpp:13
Options.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