g2o
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
g2o::Robot< RobotPoseObject > Class Template Reference

#include <simulator.h>

Inheritance diagram for g2o::Robot< RobotPoseObject >:
Inheritance graph
[legend]
Collaboration diagram for g2o::Robot< RobotPoseObject >:
Collaboration graph
[legend]

Public Types

typedef RobotPoseObject PoseObject
 
typedef std::list< PoseObject * > TrajectoryType
 
typedef PoseObject::VertexType VertexType
 
typedef PoseObject::EstimateType PoseType
 

Public Member Functions

 Robot (World *world_, const std::string &name_)
 
virtual void relativeMove (const PoseType &movement_)
 
virtual void move (const PoseType &pose_)
 
TrajectoryTypetrajectory ()
 
const PoseTypepose () const
 
- Public Member Functions inherited from g2o::BaseRobot
 BaseRobot (World *world_, const std::string &name_)
 
void setWorld (World *world_)
 
Worldworld ()
 
const std::string & name () const
 
OptimizableGraphgraph ()
 
bool addSensor (BaseSensor *sensor)
 
const std::set< BaseSensor * > sensors ()
 
virtual void sense ()
 

Public Attributes

 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
 

Protected Attributes

TrajectoryType _trajectory
 
PoseType _pose
 
- Protected Attributes inherited from g2o::BaseRobot
World_world
 
std::set< BaseSensor * > _sensors
 
std::string _name
 

Detailed Description

template<class RobotPoseObject>
class g2o::Robot< RobotPoseObject >

Definition at line 95 of file simulator.h.

Member Typedef Documentation

template<class RobotPoseObject >
typedef RobotPoseObject g2o::Robot< RobotPoseObject >::PoseObject

Definition at line 98 of file simulator.h.

template<class RobotPoseObject >
typedef PoseObject::EstimateType g2o::Robot< RobotPoseObject >::PoseType

Definition at line 101 of file simulator.h.

template<class RobotPoseObject >
typedef std::list<PoseObject*> g2o::Robot< RobotPoseObject >::TrajectoryType

Definition at line 99 of file simulator.h.

template<class RobotPoseObject >
typedef PoseObject::VertexType g2o::Robot< RobotPoseObject >::VertexType

Definition at line 100 of file simulator.h.

Constructor & Destructor Documentation

template<class RobotPoseObject >
g2o::Robot< RobotPoseObject >::Robot ( World world_,
const std::string &  name_ 
)
inline

Definition at line 103 of file simulator.h.

103 : BaseRobot(world_, name_){}
BaseRobot(World *world_, const std::string &name_)
Definition: simulator.h:80

Member Function Documentation

template<class RobotPoseObject >
virtual void g2o::Robot< RobotPoseObject >::move ( const PoseType pose_)
inlinevirtual

Definition at line 109 of file simulator.h.

Referenced by main(), and Simulator::move().

109  {
110  _pose=pose_;
111  if (world()) {
112  PoseObject* po=new PoseObject();
113  po->vertex()->setEstimate(_pose);
114  world()->addWorldObject(po);
115  _trajectory.push_back(po);
116  }
117  }
RobotPoseObject PoseObject
Definition: simulator.h:98
PoseType _pose
Definition: simulator.h:123
World * world()
Definition: simulator.h:82
TrajectoryType _trajectory
Definition: simulator.h:122
bool addWorldObject(BaseWorldObject *worldObject)
Definition: simulator.cpp:90
template<class RobotPoseObject >
const PoseType& g2o::Robot< RobotPoseObject >::pose ( ) const
inline

Definition at line 120 of file simulator.h.

Referenced by main().

120 {return _pose;}
PoseType _pose
Definition: simulator.h:123
template<class RobotPoseObject >
virtual void g2o::Robot< RobotPoseObject >::relativeMove ( const PoseType movement_)
inlinevirtual

Definition at line 104 of file simulator.h.

Referenced by main(), and Simulator::relativeMove().

104  {
105  _pose=_pose*movement_;
106  move(_pose);
107  }
PoseType _pose
Definition: simulator.h:123
virtual void move(const PoseType &pose_)
Definition: simulator.h:109
template<class RobotPoseObject >
TrajectoryType& g2o::Robot< RobotPoseObject >::trajectory ( )
inline

Member Data Documentation

template<class RobotPoseObject >
PoseType g2o::Robot< RobotPoseObject >::_pose
protected

Definition at line 123 of file simulator.h.

template<class RobotPoseObject >
TrajectoryType g2o::Robot< RobotPoseObject >::_trajectory
protected

Definition at line 122 of file simulator.h.

template<class RobotPoseObject >
g2o::Robot< RobotPoseObject >::EIGEN_MAKE_ALIGNED_OPERATOR_NEW

Definition at line 97 of file simulator.h.


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