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

#include <parameter_camera.h>

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

Public Member Functions

const ParameterCameracamParams () const
 parameters of the camera More...
 
const Affine3Dw2i () const
 return the world to image transform More...
 
- Public Member Functions inherited from g2o::CacheSE3Offset
 CacheSE3Offset ()
 
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
 
- Public Attributes inherited from g2o::CacheSE3Offset
 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
 

Protected Member Functions

virtual void updateImpl ()
 redefine this to do the update More...
 
virtual bool resolveDependancies ()
 
- Protected Member Functions inherited from g2o::Cache
CacheinstallDependency (const std::string &type_, const std::vector< int > &parameterIndices)
 

Protected Attributes

Affine3D _w2i
 world to image transform More...
 
ParameterCameraparams
 
- Protected Attributes inherited from g2o::CacheSE3Offset
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

Definition at line 58 of file parameter_camera.h.

Member Function Documentation

const ParameterCamera* g2o::CacheCamera::camParams ( ) const
inline

parameters of the camera

Definition at line 62 of file parameter_camera.h.

Referenced by updateImpl().

62 {return params;}
ParameterCamera * params
bool g2o::CacheCamera::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::CacheSE3Offset.

Definition at line 87 of file parameter_camera.cpp.

87  {
89  return false;
90  params = dynamic_cast<ParameterCamera*>(_parameters[0]);
91  return params != 0;
92  }
ParameterCamera * params
ParameterVector _parameters
Definition: cache.h:99
virtual bool resolveDependancies()
void g2o::CacheCamera::updateImpl ( )
protectedvirtual

redefine this to do the update

Reimplemented from g2o::CacheSE3Offset.

Definition at line 94 of file parameter_camera.cpp.

References camParams(), g2o::opengl::drawPyramid(), g2o::ParameterSE3Offset::offset(), and POSE_PARAMETER_COLOR.

94  {
96  _w2i.matrix().topLeftCorner<3,4>() = params->Kcam() * w2n().matrix().topLeftCorner<3,4>();
97  }
ParameterCamera * params
virtual void updateImpl()
redefine this to do the update
const Matrix3D & Kcam() const
const Isometry3D & w2n() const
Affine3D _w2i
world to image transform
const Affine3D& g2o::CacheCamera::w2i ( ) const
inline

Member Data Documentation

Affine3D g2o::CacheCamera::_w2i
protected

world to image transform

Definition at line 69 of file parameter_camera.h.

g2o::CacheCamera::EIGEN_MAKE_ALIGNED_OPERATOR_NEW

Definition at line 60 of file parameter_camera.h.

ParameterCamera* g2o::CacheCamera::params
protected

Definition at line 70 of file parameter_camera.h.


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