g2o
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
g2o
core
sparse_optimizer_terminate_action.h
Go to the documentation of this file.
1
#ifndef SPARSE_OPTIMIZER_TERMINATE_ACTION_H
2
#define SPARSE_OPTIMIZER_TERMINATE_ACTION_H
3
4
#include "
g2o_core_api.h
"
5
#include "
hyper_graph_action.h
"
6
7
namespace
g2o
{
8
9
class
SparseOptimizer
;
10
19
class
G2O_CORE_API
SparseOptimizerTerminateAction
:
public
HyperGraphAction
20
{
21
public
:
22
SparseOptimizerTerminateAction
();
23
virtual
HyperGraphAction
* operator()(
const
HyperGraph
*
graph
,
Parameters
* parameters = 0);
24
25
double
gainThreshold
()
const
{
return
_gainThreshold;}
26
void
setGainThreshold(
double
gainThreshold);
27
28
int
maxIterations
()
const
{
return
_maxIterations;}
29
void
setMaxIterations(
int
maxit);
30
31
protected
:
32
double
_gainThreshold
;
33
double
_lastChi
;
34
bool
_auxTerminateFlag
;
35
int
_maxIterations
;
36
37
void
setOptimizerStopFlag(
const
SparseOptimizer
* optimizer,
bool
stop);
38
};
39
40
}
// end namespace
41
42
#endif
g2o::SparseOptimizerTerminateAction::_auxTerminateFlag
bool _auxTerminateFlag
Definition:
sparse_optimizer_terminate_action.h:34
g2o::SparseOptimizerTerminateAction::_maxIterations
int _maxIterations
Definition:
sparse_optimizer_terminate_action.h:35
g2o::SparseOptimizerTerminateAction
stop iterating based on the gain which is (oldChi - currentChi) / currentChi.
Definition:
sparse_optimizer_terminate_action.h:19
g2o::SparseOptimizerTerminateAction::maxIterations
int maxIterations() const
Definition:
sparse_optimizer_terminate_action.h:28
g2o::SparseOptimizerTerminateAction::gainThreshold
double gainThreshold() const
Definition:
sparse_optimizer_terminate_action.h:25
g2o
Definition:
dl_wrapper.cpp:54
hyper_graph_action.h
g2o::SparseOptimizer
class G2O_CORE_API SparseOptimizer
Definition:
optimization_algorithm_factory.h:47
g2o::SparseOptimizerTerminateAction::_gainThreshold
double _gainThreshold
Definition:
sparse_optimizer_terminate_action.h:32
g2o::SparseOptimizerTerminateAction::_lastChi
double _lastChi
Definition:
sparse_optimizer_terminate_action.h:33
g2o::SparseOptimizer
Definition:
sparse_optimizer.h:46
g2o_core_api.h
g2o::HyperGraph
Definition:
hyper_graph.h:55
G2O_CORE_API
#define G2O_CORE_API
Definition:
g2o_core_api.h:29
graph
Protocol The SLAM executable accepts such as solving the and retrieving or vertices in the graph
Definition:
protocol.txt:7
g2o::HyperGraphAction::Parameters
Definition:
hyper_graph_action.h:52
g2o::HyperGraphAction
Abstract action that operates on an entire graph.
Definition:
hyper_graph_action.h:50
Generated on Mon Mar 18 2019 20:14:38 for g2o by
1.8.11