g2o
Public Member Functions | Public Attributes | List of all members
Simulator Struct Reference
Inheritance diagram for Simulator:
Inheritance graph
[legend]
Collaboration diagram for Simulator:
Collaboration graph
[legend]

Public Member Functions

 Simulator (OptimizableGraph *graph_)
 
void sense (int robotIndex)
 
void move (int robotIndex, const Isometry3d &newRobotPose)
 
void relativeMove (int robotIndex, const Isometry3d &delta)
 
- Public Member Functions inherited from SimulatorItem
 SimulatorItem (OptimizableGraph *graph_)
 
OptimizableGraphgraph ()
 
virtual ~SimulatorItem ()
 

Public Attributes

int _lastVertexId
 
WorldItemSet _world
 
RobotVector _robots
 

Additional Inherited Members

- Protected Attributes inherited from SimulatorItem
OptimizableGraph_graph
 

Detailed Description

Definition at line 160 of file simulator_3d_plane.cpp.

Constructor & Destructor Documentation

Simulator::Simulator ( OptimizableGraph graph_)
inline

Definition at line 161 of file simulator_3d_plane.cpp.

161 : SimulatorItem(graph_), _lastVertexId(0){}
SimulatorItem(OptimizableGraph *graph_)

Member Function Documentation

void Simulator::move ( int  robotIndex,
const Isometry3d &  newRobotPose 
)
inline

Definition at line 170 of file simulator_3d_plane.cpp.

References g2o::Robot< RobotPoseObject >::move().

Referenced by main().

170  {
171  Robot* r=_robots[robotIndex];
172  r->move(newRobotPose, _lastVertexId);
173  }
virtual void move(const PoseType &pose_)
Definition: simulator.h:109
RobotVector _robots
void Simulator::relativeMove ( int  robotIndex,
const Isometry3d &  delta 
)
inline

Definition at line 175 of file simulator_3d_plane.cpp.

References g2o::Robot< RobotPoseObject >::relativeMove().

Referenced by main().

175  {
176  Robot* r=_robots[robotIndex];
177  r->relativeMove(delta, _lastVertexId);
178  }
virtual void relativeMove(const PoseType &movement_)
Definition: simulator.h:104
RobotVector _robots
void Simulator::sense ( int  robotIndex)
inline

Definition at line 162 of file simulator_3d_plane.cpp.

References g2o::BaseRobot::sense().

Referenced by main().

162  {
163  Robot* r=_robots[robotIndex];
164  for (WorldItemSet::iterator it=_world.begin(); it!=_world.end(); it++){
165  WorldItem* item=*it;
166  r->sense(item);
167  }
168  }
virtual void sense()
Definition: simulator.cpp:61
WorldItemSet _world
RobotVector _robots

Member Data Documentation

int Simulator::_lastVertexId

Definition at line 180 of file simulator_3d_plane.cpp.

Referenced by main().

RobotVector Simulator::_robots

Definition at line 182 of file simulator_3d_plane.cpp.

Referenced by main().

WorldItemSet Simulator::_world

Definition at line 181 of file simulator_3d_plane.cpp.

Referenced by main().


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