g2o
Functions
g2o_viewer.cpp File Reference
#include <iostream>
#include "run_g2o_viewer.h"
#include "g2o/core/optimizable_graph.h"
#include "g2o/apps/g2o_cli/g2o_common.h"
#include "g2o/apps/g2o_cli/dl_wrapper.h"
#include "g2o/stuff/command_args.h"
#include <QApplication>
Include dependency graph for g2o_viewer.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 32 of file g2o_viewer.cpp.

References g2o::loadStandardSolver(), g2o::loadStandardTypes(), and g2o::CommandArgs::param().

33 {
34  OptimizableGraph::initMultiThreading();
35  QApplication qapp(argc, argv);
36 
37  CommandArgs arg;
38 #ifndef G2O_DISABLE_DYNAMIC_LOADING_OF_LIBRARIES
39  string dummy;
40  arg.param("solverlib", dummy, "", "specify a solver library which will be loaded");
41  arg.param("typeslib", dummy, "", "specify a types library which will be loaded");
42  // loading the standard solver / types
43  DlWrapper dlTypesWrapper;
44  loadStandardTypes(dlTypesWrapper, argc, argv);
45  // register all the solvers
46  DlWrapper dlSolverWrapper;
47  loadStandardSolver(dlSolverWrapper, argc, argv);
48 #endif
49 
50  // run the viewer
51  return RunG2OViewer::run(argc, argv, arg);
52 }
Command line parsing of argc and argv.
Definition: command_args.h:46
void loadStandardTypes(DlWrapper &dlTypesWrapper, int argc, char **argv)
Definition: g2o_common.cpp:96
void param(const std::string &name, bool &p, bool defValue, const std::string &desc)
void loadStandardSolver(DlWrapper &dlSolverWrapper, int argc, char **argv)
Definition: g2o_common.cpp:133
Loading libraries during run-time.
Definition: dl_wrapper.h:44