g2o
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
g2o::CacheSE3Offset Class Reference

caching the offset related to a vertex More...

#include <parameter_se3_offset.h>

Inheritance diagram for g2o::CacheSE3Offset:
Inheritance graph
[legend]
Collaboration diagram for g2o::CacheSE3Offset:
Collaboration graph
[legend]

Public Member Functions

 CacheSE3Offset ()
 
virtual void updateImpl ()
 redefine this to do the update More...
 
const ParameterSE3OffsetoffsetParam () const
 
void setOffsetParam (ParameterSE3Offset *offsetParam)
 
const Isometry3Dw2n () const
 
const Isometry3Dn2w () const
 
const Isometry3Dw2l () const
 
- Public Member Functions inherited from g2o::Cache
 Cache (CacheContainer *container_=0, const ParameterVector &parameters_=ParameterVector())
 
CacheKey key () const
 
OptimizableGraph::Vertexvertex ()
 
OptimizableGraphgraph ()
 
CacheContainercontainer ()
 
ParameterVectorparameters ()
 
void update ()
 
virtual HyperGraph::HyperGraphElementType elementType () const
 
- Public Member Functions inherited from g2o::HyperGraph::HyperGraphElement
virtual ~HyperGraphElement ()
 
HyperGraphElementclone () const
 

Public Attributes

 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
 

Protected Member Functions

virtual bool resolveDependancies ()
 
- Protected Member Functions inherited from g2o::Cache
CacheinstallDependency (const std::string &type_, const std::vector< int > &parameterIndices)
 

Protected Attributes

ParameterSE3Offset_offsetParam
 the parameter connected to the cache More...
 
Isometry3D _w2n
 
Isometry3D _n2w
 
Isometry3D _w2l
 
- Protected Attributes inherited from g2o::Cache
bool _updateNeeded
 
ParameterVector _parameters
 
std::vector< Cache * > _parentCaches
 
CacheContainer_container
 

Detailed Description

caching the offset related to a vertex

Definition at line 74 of file parameter_se3_offset.h.

Constructor & Destructor Documentation

g2o::CacheSE3Offset::CacheSE3Offset ( )

Definition at line 65 of file parameter_se3_offset.cpp.

65  :
66  Cache(),
67  _offsetParam(0)
68  {
69  }
Cache(CacheContainer *container_=0, const ParameterVector &parameters_=ParameterVector())
Definition: cache.cpp:46
ParameterSE3Offset * _offsetParam
the parameter connected to the cache

Member Function Documentation

const Isometry3D& g2o::CacheSE3Offset::n2w ( ) const
inline
const ParameterSE3Offset* g2o::CacheSE3Offset::offsetParam ( ) const
inline

Definition at line 80 of file parameter_se3_offset.h.

Referenced by g2o::EdgeSE3Offset::initialEstimate(), g2o::EdgeSE3Prior::linearizeOplus(), g2o::EdgeSE3Offset::linearizeOplus(), and setOffsetParam().

80 { return _offsetParam;}
ParameterSE3Offset * _offsetParam
the parameter connected to the cache
bool g2o::CacheSE3Offset::resolveDependancies ( )
protectedvirtual

Function to be called from a cache that has dependencies. It just invokes a sequence of installDependency(). Although the caches returned are stored in the _parentCache vector, it is better that you redefine your own cache member variables, for better readability

Reimplemented from g2o::Cache.

Reimplemented in g2o::CacheCamera.

Definition at line 71 of file parameter_se3_offset.cpp.

References _offsetParam, and g2o::Cache::_parameters.

71  {
72  _offsetParam = dynamic_cast <ParameterSE3Offset*> (_parameters[0]);
73  return _offsetParam != 0;
74  }
ParameterVector _parameters
Definition: cache.h:99
ParameterSE3Offset * _offsetParam
the parameter connected to the cache
void g2o::CacheSE3Offset::setOffsetParam ( ParameterSE3Offset offsetParam)

Definition at line 83 of file parameter_se3_offset.cpp.

References _offsetParam, g2o::opengl::drawBox(), g2o::ParameterSE3Offset::offset(), offsetParam(), POSE_PARAMETER_COLOR, and g2o::DrawAction::refreshPropertyPtrs().

84  {
86  }
const ParameterSE3Offset * offsetParam() const
ParameterSE3Offset * _offsetParam
the parameter connected to the cache
void g2o::CacheSE3Offset::updateImpl ( )
virtual

redefine this to do the update

Implements g2o::Cache.

Reimplemented in g2o::CacheCamera.

Definition at line 76 of file parameter_se3_offset.cpp.

References _n2w, _offsetParam, _w2l, _w2n, g2o::BaseVertex< D, T >::estimate(), g2o::ParameterSE3Offset::offset(), and g2o::Cache::vertex().

76  {
77  const VertexSE3* v = static_cast<const VertexSE3*>(vertex());
78  _n2w = v->estimate() * _offsetParam->offset();
79  _w2n = _n2w.inverse();
80  _w2l = v->estimate().inverse();
81  }
OptimizableGraph::Vertex * vertex()
Definition: cache.cpp:61
const Isometry3D & offset() const
rotation of the offset as 3x3 rotation matrix
ParameterSE3Offset * _offsetParam
the parameter connected to the cache
const Isometry3D& g2o::CacheSE3Offset::w2l ( ) const
inline
const Isometry3D& g2o::CacheSE3Offset::w2n ( ) const
inline

Member Data Documentation

Isometry3D g2o::CacheSE3Offset::_n2w
protected

Definition at line 90 of file parameter_se3_offset.h.

Referenced by updateImpl().

ParameterSE3Offset* g2o::CacheSE3Offset::_offsetParam
protected

the parameter connected to the cache

Definition at line 88 of file parameter_se3_offset.h.

Referenced by resolveDependancies(), setOffsetParam(), and updateImpl().

Isometry3D g2o::CacheSE3Offset::_w2l
protected

Definition at line 91 of file parameter_se3_offset.h.

Referenced by updateImpl().

Isometry3D g2o::CacheSE3Offset::_w2n
protected

Definition at line 89 of file parameter_se3_offset.h.

Referenced by updateImpl().

g2o::CacheSE3Offset::EIGEN_MAKE_ALIGNED_OPERATOR_NEW

Definition at line 76 of file parameter_se3_offset.h.


The documentation for this class was generated from the following files: