g2o
Toggle main menu visibility
Loading...
Searching...
No Matches
g2o
apps
g2o_viewer
g2o_viewer.cpp
Go to the documentation of this file.
1
// g2o - General Graph Optimization
2
// Copyright (C) 2011 R. Kuemmerle, G. Grisetti, W. Burgard
3
//
4
// This file is part of g2o.
5
//
6
// g2o is free software: you can redistribute it and/or modify
7
// it under the terms of the GNU General Public License as published by
8
// the Free Software Foundation, either version 3 of the License, or
9
// (at your option) any later version.
10
//
11
// g2o is distributed in the hope that it will be useful,
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
// GNU General Public License for more details.
15
//
16
// You should have received a copy of the GNU General Public License
17
// along with g2o. If not, see <http://www.gnu.org/licenses/>.
18
19
#include <QApplication>
20
#include <iostream>
21
22
#include "
g2o/apps/g2o_cli/dl_wrapper.h
"
23
#include "
g2o/apps/g2o_cli/g2o_common.h
"
24
#include "
g2o/core/optimizable_graph.h
"
25
#include "
g2o/stuff/command_args.h
"
26
#include "
run_g2o_viewer.h
"
27
using namespace
std
;
28
using namespace
g2o
;
29
30
int
main
(
int
argc,
char
** argv) {
31
OptimizableGraph::initMultiThreading
();
32
QApplication qapp(argc, argv);
33
34
CommandArgs
arg;
35
#ifndef G2O_DISABLE_DYNAMIC_LOADING_OF_LIBRARIES
36
string
dummy;
37
arg.
param
(
"solverlib"
, dummy,
""
,
38
"specify a solver library which will be loaded"
);
39
arg.
param
(
"typeslib"
, dummy,
""
,
40
"specify a types library which will be loaded"
);
41
// loading the standard solver / types
42
DlWrapper
dlTypesWrapper;
43
loadStandardTypes
(dlTypesWrapper, argc, argv);
44
// register all the solvers
45
DlWrapper
dlSolverWrapper;
46
loadStandardSolver
(dlSolverWrapper, argc, argv);
47
#endif
48
49
// run the viewer
50
return
RunG2OViewer::run
(argc, argv, arg);
51
}
g2o::CommandArgs
Command line parsing of argc and argv.
Definition
command_args.h:45
g2o::CommandArgs::param
void param(const std::string &name, bool &p, bool defValue, const std::string &desc)
Definition
command_args.cpp:188
g2o::DlWrapper
Loading libraries during run-time.
Definition
dl_wrapper.h:46
g2o::RunG2OViewer::run
static int run(int argc, char **argv, CommandArgs &arg)
Definition
run_g2o_viewer.cpp:47
command_args.h
dl_wrapper.h
g2o_common.h
main
int main()
Definition
gicp_demo.cpp:44
g2o
Definition
dl_wrapper.cpp:55
g2o::loadStandardTypes
void loadStandardTypes(DlWrapper &dlTypesWrapper, int argc, char **argv)
Definition
g2o_common.cpp:99
g2o::loadStandardSolver
void loadStandardSolver(DlWrapper &dlSolverWrapper, int argc, char **argv)
Definition
g2o_common.cpp:135
std
Definition
jet.h:876
optimizable_graph.h
run_g2o_viewer.h
g2o::OptimizableGraph::initMultiThreading
static bool initMultiThreading()
Definition
optimizable_graph.cpp:835
Generated on
for g2o by
1.17.0