g2o
Toggle main menu visibility
Loading...
Searching...
No Matches
g2o
types
slam3d
parameter_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_VERTEX_SE3_OFFSET_PARAMETERS_H_
28
#define G2O_VERTEX_SE3_OFFSET_PARAMETERS_H_
29
30
#include "
g2o/core/cache.h
"
31
#include "
g2o/core/hyper_graph_action.h
"
32
#include "
g2o_types_slam3d_api.h
"
33
34
namespace
g2o
{
35
39
class
G2O_TYPES_SLAM3D_API
ParameterSE3Offset
:
public
Parameter
{
40
public
:
41
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
;
42
ParameterSE3Offset
();
43
44
virtual
bool
read
(std::istream& is);
45
virtual
bool
write
(std::ostream& os)
const
;
46
51
void
setOffset
(
const
Isometry3
& offset_ = Isometry3::Identity());
52
54
const
Isometry3
&
offset
()
const
{
return
_offset
; }
55
57
const
Isometry3
&
inverseOffset
()
const
{
return
_inverseOffset
; }
58
59
protected
:
60
Isometry3
_offset
;
61
Isometry3
_inverseOffset
;
62
};
63
67
class
G2O_TYPES_SLAM3D_API
CacheSE3Offset
:
public
Cache
{
68
public
:
69
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
;
70
CacheSE3Offset
();
71
virtual
void
updateImpl
();
72
73
const
ParameterSE3Offset
*
offsetParam
()
const
{
return
_offsetParam
; }
74
void
setOffsetParam(
ParameterSE3Offset
* offsetParam);
75
76
const
Isometry3
&
w2n
()
const
{
return
_w2n
; }
77
const
Isometry3
&
n2w
()
const
{
return
_n2w
; }
78
const
Isometry3
&
w2l
()
const
{
return
_w2l
; }
79
80
protected
:
81
ParameterSE3Offset
*
_offsetParam
;
82
Isometry3
_w2n
;
83
Isometry3
_n2w
;
84
Isometry3
_w2l
;
85
86
protected
:
87
virtual
bool
resolveDependencies
();
88
};
89
90
#ifdef G2O_HAVE_OPENGL
91
class
G2O_TYPES_SLAM3D_API
CacheSE3OffsetDrawAction :
public
DrawAction
{
92
public
:
93
CacheSE3OffsetDrawAction();
94
virtual
HyperGraphElementAction
* operator()(
95
HyperGraph::HyperGraphElement
* element,
96
HyperGraphElementAction::Parameters
* params_);
97
98
protected
:
99
virtual
bool
refreshPropertyPtrs(
100
HyperGraphElementAction::Parameters
* params_);
101
FloatProperty
* _cubeSide;
102
};
103
#endif
104
105
}
// namespace g2o
106
107
#endif
cache.h
g2o::CacheSE3Offset::w2n
const Isometry3 & w2n() const
Definition
parameter_se3_offset.h:76
g2o::CacheSE3Offset::CacheSE3Offset
CacheSE3Offset()
Definition
parameter_se3_offset.cpp:60
g2o::CacheSE3Offset::EIGEN_MAKE_ALIGNED_OPERATOR_NEW
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
Definition
parameter_se3_offset.h:69
g2o::CacheSE3Offset::_n2w
Isometry3 _n2w
Definition
parameter_se3_offset.h:83
g2o::CacheSE3Offset::_w2n
Isometry3 _w2n
Definition
parameter_se3_offset.h:82
g2o::CacheSE3Offset::_w2l
Isometry3 _w2l
Definition
parameter_se3_offset.h:84
g2o::CacheSE3Offset::n2w
const Isometry3 & n2w() const
Definition
parameter_se3_offset.h:77
g2o::CacheSE3Offset::_offsetParam
ParameterSE3Offset * _offsetParam
the parameter connected to the cache
Definition
parameter_se3_offset.h:81
g2o::CacheSE3Offset::updateImpl
virtual void updateImpl()
redefine this to do the update
Definition
parameter_se3_offset.cpp:67
g2o::CacheSE3Offset::w2l
const Isometry3 & w2l() const
Definition
parameter_se3_offset.h:78
g2o::CacheSE3Offset::offsetParam
const ParameterSE3Offset * offsetParam() const
Definition
parameter_se3_offset.h:73
g2o::CacheSE3Offset::resolveDependencies
virtual bool resolveDependencies()
Definition
parameter_se3_offset.cpp:62
g2o::Cache::Cache
Cache(CacheContainer *container_=0, const ParameterVector ¶meters_=ParameterVector())
Definition
cache.cpp:44
g2o::DrawAction
draw actions
Definition
hyper_graph_action.h:201
g2o::HyperGraphElementAction
Abstract action that operates on a graph entity.
Definition
hyper_graph_action.h:74
g2o::ParameterSE3Offset
offset for an SE3
Definition
parameter_se3_offset.h:39
g2o::ParameterSE3Offset::inverseOffset
const Isometry3 & inverseOffset() const
rotation of the inverse offset as 3x3 rotation matrix
Definition
parameter_se3_offset.h:57
g2o::ParameterSE3Offset::_offset
Isometry3 _offset
Definition
parameter_se3_offset.h:60
g2o::ParameterSE3Offset::write
virtual bool write(std::ostream &os) const
write the data to a stream
Definition
parameter_se3_offset.cpp:56
g2o::ParameterSE3Offset::setOffset
void setOffset(const Isometry3 &offset_=Isometry3::Identity())
Definition
parameter_se3_offset.cpp:41
g2o::ParameterSE3Offset::offset
const Isometry3 & offset() const
rotation of the offset as 3x3 rotation matrix
Definition
parameter_se3_offset.h:54
g2o::ParameterSE3Offset::_inverseOffset
Isometry3 _inverseOffset
Definition
parameter_se3_offset.h:61
g2o::ParameterSE3Offset::ParameterSE3Offset
ParameterSE3Offset()
Definition
parameter_se3_offset.cpp:39
g2o::ParameterSE3Offset::read
virtual bool read(std::istream &is)
read the data from a stream
Definition
parameter_se3_offset.cpp:46
g2o::ParameterSE3Offset::EIGEN_MAKE_ALIGNED_OPERATOR_NEW
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
Definition
parameter_se3_offset.h:41
g2o::Parameter::Parameter
Parameter()
Definition
parameter.cpp:31
g2o_types_slam3d_api.h
G2O_TYPES_SLAM3D_API
#define G2O_TYPES_SLAM3D_API
Definition
g2o_types_slam3d_api.h:55
hyper_graph_action.h
g2o
Definition
dl_wrapper.cpp:55
g2o::Isometry3
Eigen::Transform< double, 3, Eigen::Isometry, Eigen::ColMajor > Isometry3
Definition
eigen_types.h:77
g2o::FloatProperty
Property< float > FloatProperty
Definition
property.h:150
g2o::HyperGraphElementAction::Parameters
Definition
hyper_graph_action.h:76
g2o::HyperGraph::HyperGraphElement
Definition
hyper_graph.h:80
Generated on
for g2o by
1.17.0