g2o
Loading...
Searching...
No Matches
g2o
examples
slam2d
slam2d_g2o.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/core/factory.h
"
23
#include "
g2o/core/sparse_optimizer.h
"
24
#include "
main_window.h
"
25
using namespace
std
;
26
using namespace
g2o
;
27
28
G2O_USE_TYPE_GROUP
(slam2d);
29
30
int
main
(
int
argc,
char
** argv) {
31
QApplication qapp(argc, argv);
32
33
MainWindow
mw;
34
mw.viewer->graph =
new
SparseOptimizer
();
35
mw.show();
36
37
return
qapp.exec();
38
}
MainWindow
main window of the g2o viewer
Definition
main_window.h:40
g2o::SparseOptimizer
Definition
sparse_optimizer.h:42
main_window.h
factory.h
G2O_USE_TYPE_GROUP
#define G2O_USE_TYPE_GROUP(typeGroupName)
Definition
factory.h:159
main
int main()
Definition
gicp_demo.cpp:44
g2o
Definition
dl_wrapper.cpp:55
std
Definition
jet.h:876
sparse_optimizer.h
Generated on Tue Nov 11 2025 05:18:45 for g2o by
1.9.8