g2o
Toggle main menu visibility
Loading...
Searching...
No Matches
g2o
types
slam2d
parameter_se2_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_VERTEX_SE2_OFFSET_PARAMETERS_H_
28
#define G2O_VERTEX_SE2_OFFSET_PARAMETERS_H_
29
30
#include "
g2o/core/cache.h
"
31
#include "
g2o_types_slam2d_api.h
"
32
#include "
se2.h
"
33
34
namespace
g2o
{
35
36
class
VertexSE2
;
37
41
class
G2O_TYPES_SLAM2D_API
ParameterSE2Offset
:
public
Parameter
{
42
public
:
43
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
;
44
ParameterSE2Offset
();
45
46
virtual
bool
read
(std::istream& is);
47
virtual
bool
write
(std::ostream& os)
const
;
48
53
void
setOffset
(
const
SE2
& offset_ =
SE2
());
54
55
const
SE2
&
offset
()
const
{
return
_offset
; }
56
58
const
Isometry2
&
offsetMatrix
()
const
{
return
_offsetMatrix
; }
59
61
const
Isometry2
&
inverseOffsetMatrix
()
const
{
return
_inverseOffsetMatrix
; }
62
63
protected
:
64
SE2
_offset
;
65
Isometry2
_offsetMatrix
;
66
Isometry2
_inverseOffsetMatrix
;
67
};
68
72
class
G2O_TYPES_SLAM2D_API
CacheSE2Offset
:
public
Cache
{
73
public
:
74
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
;
75
CacheSE2Offset
();
76
virtual
void
updateImpl
();
77
78
const
ParameterSE2Offset
*
offsetParam
()
const
{
return
_offsetParam
; }
79
void
setOffsetParam(
ParameterSE2Offset
* offsetParam);
80
81
const
SE2
&
w2n
()
const
{
return
_se2_w2n
; }
82
const
SE2
&
n2w
()
const
{
return
_se2_n2w
; }
83
84
const
Isometry2
&
w2nMatrix
()
const
{
return
_w2n
; }
85
const
Isometry2
&
n2wMatrix
()
const
{
return
_n2w
; }
86
const
Isometry2
&
w2lMatrix
()
const
{
return
_w2l
; }
87
88
const
Matrix2
RpInverseRInverseMatrix
()
const
{
return
_RpInverse_RInverse
; }
89
const
Matrix2
RpInverseRInversePrimeMatrix
()
const
{
90
return
_RpInverse_RInversePrime
;
91
}
92
93
protected
:
94
ParameterSE2Offset
*
_offsetParam
;
95
SE2
_se2_w2n
;
96
SE2
_se2_n2w
;
97
98
Isometry2
_w2n
;
99
Isometry2
_w2l
;
100
Isometry2
_n2w
;
101
Matrix2
_RpInverse_RInverse
;
102
Matrix2
_RpInverse_RInversePrime
;
103
104
protected
:
105
virtual
bool
resolveDependencies
();
106
};
107
108
}
// namespace g2o
109
110
#endif
cache.h
g2o::CacheSE2Offset::_RpInverse_RInverse
Matrix2 _RpInverse_RInverse
Definition
parameter_se2_offset.h:101
g2o::CacheSE2Offset::_w2n
Isometry2 _w2n
world to sensor transform
Definition
parameter_se2_offset.h:98
g2o::CacheSE2Offset::w2nMatrix
const Isometry2 & w2nMatrix() const
Definition
parameter_se2_offset.h:84
g2o::CacheSE2Offset::w2n
const SE2 & w2n() const
Definition
parameter_se2_offset.h:81
g2o::CacheSE2Offset::_n2w
Isometry2 _n2w
sensor to world
Definition
parameter_se2_offset.h:100
g2o::CacheSE2Offset::EIGEN_MAKE_ALIGNED_OPERATOR_NEW
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
Definition
parameter_se2_offset.h:74
g2o::CacheSE2Offset::_se2_w2n
SE2 _se2_w2n
Definition
parameter_se2_offset.h:95
g2o::CacheSE2Offset::CacheSE2Offset
CacheSE2Offset()
Definition
parameter_se2_offset.cpp:58
g2o::CacheSE2Offset::RpInverseRInverseMatrix
const Matrix2 RpInverseRInverseMatrix() const
Definition
parameter_se2_offset.h:88
g2o::CacheSE2Offset::n2wMatrix
const Isometry2 & n2wMatrix() const
Definition
parameter_se2_offset.h:85
g2o::CacheSE2Offset::updateImpl
virtual void updateImpl()
redefine this to do the update
Definition
parameter_se2_offset.cpp:65
g2o::CacheSE2Offset::_RpInverse_RInversePrime
Matrix2 _RpInverse_RInversePrime
Definition
parameter_se2_offset.h:102
g2o::CacheSE2Offset::offsetParam
const ParameterSE2Offset * offsetParam() const
Definition
parameter_se2_offset.h:78
g2o::CacheSE2Offset::_se2_n2w
SE2 _se2_n2w
Definition
parameter_se2_offset.h:96
g2o::CacheSE2Offset::_offsetParam
ParameterSE2Offset * _offsetParam
the parameter connected to the cache
Definition
parameter_se2_offset.h:94
g2o::CacheSE2Offset::n2w
const SE2 & n2w() const
Definition
parameter_se2_offset.h:82
g2o::CacheSE2Offset::_w2l
Isometry2 _w2l
world to local
Definition
parameter_se2_offset.h:99
g2o::CacheSE2Offset::resolveDependencies
virtual bool resolveDependencies()
Definition
parameter_se2_offset.cpp:60
g2o::CacheSE2Offset::RpInverseRInversePrimeMatrix
const Matrix2 RpInverseRInversePrimeMatrix() const
Definition
parameter_se2_offset.h:89
g2o::CacheSE2Offset::w2lMatrix
const Isometry2 & w2lMatrix() const
Definition
parameter_se2_offset.h:86
g2o::Cache::Cache
Cache(CacheContainer *container_=0, const ParameterVector ¶meters_=ParameterVector())
Definition
cache.cpp:44
g2o::ParameterSE2Offset
offset for an SE2
Definition
parameter_se2_offset.h:41
g2o::ParameterSE2Offset::offset
const SE2 & offset() const
Definition
parameter_se2_offset.h:55
g2o::ParameterSE2Offset::_offset
SE2 _offset
Definition
parameter_se2_offset.h:64
g2o::ParameterSE2Offset::EIGEN_MAKE_ALIGNED_OPERATOR_NEW
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
Definition
parameter_se2_offset.h:43
g2o::ParameterSE2Offset::setOffset
void setOffset(const SE2 &offset_=SE2())
Definition
parameter_se2_offset.cpp:40
g2o::ParameterSE2Offset::_offsetMatrix
Isometry2 _offsetMatrix
Definition
parameter_se2_offset.h:65
g2o::ParameterSE2Offset::write
virtual bool write(std::ostream &os) const
write the data to a stream
Definition
parameter_se2_offset.cpp:54
g2o::ParameterSE2Offset::offsetMatrix
const Isometry2 & offsetMatrix() const
rotation of the offset as 2x2 rotation matrix
Definition
parameter_se2_offset.h:58
g2o::ParameterSE2Offset::inverseOffsetMatrix
const Isometry2 & inverseOffsetMatrix() const
rotation of the inverse offset as 2x2 rotation matrix
Definition
parameter_se2_offset.h:61
g2o::ParameterSE2Offset::_inverseOffsetMatrix
Isometry2 _inverseOffsetMatrix
Definition
parameter_se2_offset.h:66
g2o::ParameterSE2Offset::read
virtual bool read(std::istream &is)
read the data from a stream
Definition
parameter_se2_offset.cpp:47
g2o::ParameterSE2Offset::ParameterSE2Offset
ParameterSE2Offset()
Definition
parameter_se2_offset.cpp:38
g2o::Parameter::Parameter
Parameter()
Definition
parameter.cpp:31
g2o::SE2
represent SE2
Definition
se2.h:43
g2o::VertexSE2
2D pose Vertex, (x,y,theta)
Definition
vertex_se2.h:41
g2o_types_slam2d_api.h
G2O_TYPES_SLAM2D_API
#define G2O_TYPES_SLAM2D_API
Definition
g2o_types_slam2d_api.h:55
g2o
Definition
dl_wrapper.cpp:55
g2o::Isometry2
Eigen::Transform< double, 2, Eigen::Isometry, Eigen::ColMajor > Isometry2
Definition
eigen_types.h:76
g2o::Matrix2
MatrixN< 2 > Matrix2
Definition
eigen_types.h:71
se2.h
Generated on
for g2o by
1.17.0