26 #include "g2o/config.h" 37 #include <QApplication> 48 using QThread::msleep;
49 using QThread::usleep;
54 std::string inputFilename;
55 arg.
paramLeftOver(
"graph-input", inputFilename,
"",
"graph file which will be processed",
true);
68 mw.viewer->graph = optimizer;
72 guiHyperGraphAction.
viewer = mw.viewer;
76 if (inputFilename.size() > 0) {
80 QCoreApplication* myapp = QApplication::instance();
81 while (mw.isVisible()) {
82 guiHyperGraphAction.
dumpScreenshots = mw.actionDump_Images->isChecked();
84 myapp->processEvents();
85 SleepThread::msleep(10);
helper for calling usleep on any system using Qt
void updateRobustKernels()
Command line parsing of argc and argv.
bool loadFromFile(const QString &filename)
void updateDisplayedSolvers()
redirect a stream to a QPlainTextEdit
bool parseArgs(int argc, char **argv, bool exitOnError=true)
class G2O_CORE_API SparseOptimizer
void paramLeftOver(const std::string &name, std::string &p, const std::string &defValue, const std::string &desc, bool optional=false)
action which calls an GUI update after each iteration
G2oQGLViewer * viewer
the viewer which visualizes the graph
static int run(int argc, char **argv, CommandArgs &arg)
main window of the g2o viewer
bool addPreIterationAction(HyperGraphAction *action)
add an action to be executed before each iteration