g2o
Loading...
Searching...
No Matches
g2o::WorldObject< VertexType_ > Class Template Reference

#include <simulator.h>

Inheritance diagram for g2o::WorldObject< VertexType_ >:
Collaboration diagram for g2o::WorldObject< VertexType_ >:

Public Types

typedef VertexType_ VertexType
typedef VertexType_::EstimateType EstimateType

Public Member Functions

 WorldObject (World *world_=0)
virtual void setVertex (OptimizableGraph::Vertex *vertex_)
VertexType * vertex ()
Public Member Functions inherited from g2o::BaseWorldObject
 BaseWorldObject (World *world_=0)
virtual ~BaseWorldObject ()
void setWorld (World *world_)
World * world () const
OptimizableGraph * graph ()
OptimizableGraph::Vertex * vertex ()

Public Attributes

 EIGEN_MAKE_ALIGNED_OPERATOR_NEW

Additional Inherited Members

Protected Attributes inherited from g2o::BaseWorldObject
OptimizableGraph * _graph
OptimizableGraph::Vertex * _vertex
World * _world

Detailed Description

template<class VertexType_>
class g2o::WorldObject< VertexType_ >

Definition at line 64 of file simulator.h.

Member Typedef Documentation

◆ EstimateType

template<class VertexType_>
typedef VertexType_::EstimateType g2o::WorldObject< VertexType_ >::EstimateType

Definition at line 68 of file simulator.h.

◆ VertexType

template<class VertexType_>
typedef VertexType_ g2o::WorldObject< VertexType_ >::VertexType

Definition at line 67 of file simulator.h.

Constructor & Destructor Documentation

◆ WorldObject()

template<class VertexType_>
g2o::WorldObject< VertexType_ >::WorldObject ( World * world_ = 0)
inline

Definition at line 69 of file simulator.h.

70 _vertex = new VertexType();
71 }
BaseWorldObject(World *world_=0)
Definition simulator.h:46
OptimizableGraph::Vertex * _vertex
Definition simulator.h:59
VertexType_ VertexType
Definition simulator.h:67

Member Function Documentation

◆ setVertex()

template<class VertexType_>
virtual void g2o::WorldObject< VertexType_ >::setVertex ( OptimizableGraph::Vertex * vertex_)
inlinevirtual

Reimplemented from g2o::BaseWorldObject.

Definition at line 72 of file simulator.h.

72 {
73 if (!dynamic_cast<VertexType*>(vertex_)) return;
75 }

◆ vertex()

template<class VertexType_>
VertexType * g2o::WorldObject< VertexType_ >::vertex ( )
inline

Definition at line 77 of file simulator.h.

77 {
78 if (!_vertex) return 0;
79 return dynamic_cast<VertexType*>(_vertex);
80 }

Referenced by main(), and g2o::Robot< WorldObjectSE2 >::move().

Member Data Documentation

◆ EIGEN_MAKE_ALIGNED_OPERATOR_NEW

template<class VertexType_>
g2o::WorldObject< VertexType_ >::EIGEN_MAKE_ALIGNED_OPERATOR_NEW

Definition at line 66 of file simulator.h.


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