g2o
Toggle main menu visibility
Loading...
Searching...
No Matches
g2o
types
slam3d
edge_se3_offset.h
Go to the documentation of this file.
1
// g2o - General Graph Optimization
2
// Copyright (C) 2011 R. Kuemmerle, G. Grisetti, W. Burgard
3
// All rights reserved.
4
//
5
// Redistribution and use in source and binary forms, with or without
6
// modification, are permitted provided that the following conditions are
7
// met:
8
//
9
// * Redistributions of source code must retain the above copyright notice,
10
// this list of conditions and the following disclaimer.
11
// * Redistributions in binary form must reproduce the above copyright
12
// notice, this list of conditions and the following disclaimer in the
13
// documentation and/or other materials provided with the distribution.
14
//
15
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
16
// IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
17
// TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
18
// PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19
// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
21
// TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23
// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
27
#ifndef G2O_EDGE_SE3_OFFSET_H_
28
#define G2O_EDGE_SE3_OFFSET_H_
29
30
#include "
edge_se3.h
"
31
#include "
g2o_types_slam3d_api.h
"
32
33
namespace
g2o
{
34
class
ParameterSE3Offset
;
35
class
CacheSE3Offset
;
36
40
// first two args are the measurement type, second two the connection classes
41
class
G2O_TYPES_SLAM3D_API
EdgeSE3Offset
:
public
EdgeSE3
{
42
public
:
43
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
;
44
EdgeSE3Offset
();
45
virtual
bool
read
(std::istream& is);
46
virtual
bool
write
(std::ostream& os)
const
;
47
48
void
computeError
();
49
50
void
linearizeOplus
();
51
52
virtual
bool
setMeasurementFromState
();
53
54
virtual
double
initialEstimatePossible
(
55
const
OptimizableGraph::VertexSet
&
/*from*/
,
56
OptimizableGraph::Vertex
*
/*to*/
) {
57
return
1.;
58
}
59
60
virtual
void
initialEstimate(
const
OptimizableGraph::VertexSet
& from,
61
OptimizableGraph::Vertex
* to);
62
63
protected
:
64
virtual
bool
resolveCaches();
65
ParameterSE3Offset
*
_offsetFrom
, *
_offsetTo
;
66
CacheSE3Offset
*
_cacheFrom
, *
_cacheTo
;
67
};
68
69
}
// namespace g2o
70
#endif
g2o::CacheSE3Offset
caching the offset related to a vertex
Definition
parameter_se3_offset.h:67
g2o::EdgeSE3Offset::initialEstimatePossible
virtual double initialEstimatePossible(const OptimizableGraph::VertexSet &, OptimizableGraph::Vertex *)
Definition
edge_se3_offset.h:54
g2o::EdgeSE3Offset::computeError
void computeError()
Definition
edge_se3_offset.cpp:84
g2o::EdgeSE3Offset::_offsetFrom
ParameterSE3Offset * _offsetFrom
Definition
edge_se3_offset.h:65
g2o::EdgeSE3Offset::EdgeSE3Offset
EdgeSE3Offset()
Definition
edge_se3_offset.cpp:39
g2o::EdgeSE3Offset::EIGEN_MAKE_ALIGNED_OPERATOR_NEW
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
Definition
edge_se3_offset.h:43
g2o::EdgeSE3Offset::write
virtual bool write(std::ostream &os) const
write the vertex to a stream
Definition
edge_se3_offset.cpp:77
g2o::EdgeSE3Offset::_cacheFrom
CacheSE3Offset * _cacheFrom
Definition
edge_se3_offset.h:66
g2o::EdgeSE3Offset::linearizeOplus
void linearizeOplus()
Definition
edge_se3_offset.cpp:95
g2o::EdgeSE3Offset::setMeasurementFromState
virtual bool setMeasurementFromState()
Definition
edge_se3_offset.cpp:89
g2o::EdgeSE3Offset::_offsetTo
ParameterSE3Offset * _offsetTo
Definition
edge_se3_offset.h:65
g2o::EdgeSE3Offset::read
virtual bool read(std::istream &is)
read the vertex from a stream, i.e., the internal state of the vertex
Definition
edge_se3_offset.cpp:63
g2o::EdgeSE3Offset::_cacheTo
CacheSE3Offset * _cacheTo
Definition
edge_se3_offset.h:66
g2o::EdgeSE3::EdgeSE3
EdgeSE3()
Definition
edge_se3.cpp:39
g2o::HyperGraph::VertexSet
std::set< Vertex * > VertexSet
Definition
hyper_graph.h:142
g2o::OptimizableGraph::Vertex
A general case Vertex for optimization.
Definition
optimizable_graph.h:108
g2o::ParameterSE3Offset
offset for an SE3
Definition
parameter_se3_offset.h:39
edge_se3.h
g2o_types_slam3d_api.h
G2O_TYPES_SLAM3D_API
#define G2O_TYPES_SLAM3D_API
Definition
g2o_types_slam3d_api.h:55
g2o
Definition
dl_wrapper.cpp:55
Generated on
for g2o by
1.17.0