Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GlobalData Class Reference

Data structure holding all essential global information. More...

#include <globaldata.h>

Inheritance diagram for GlobalData:
Collaboration diagram for GlobalData:

Public Member Functions

 GlobalData ()
 
virtual ~GlobalData ()
 
virtual AgentListgetAgents ()
 returns the list of all agents More...
 
virtual void addTmpObject (TmpObject *i, double duration)
 adds a temporary display item with given life duration in sec More...
 
virtual void initializeTmpObjects (const OdeHandle &odeHandle, const OsgHandle &osgHandle)
 called by Simulation to initialize tmp objects More...
 
virtual void updateTmpObjects (const OsgHandle &osgHandle)
 called by Simulation to update tmp objects More...
 
virtual void removeExpiredObjects (double time=-1)
 called by Simulation to removes all expired sounds and temporary objects. More...
 
virtual bool removeTmpObject (TmpObject *i)
 removes a particular temporary display item even if it is not yet expired More...
 
- Public Member Functions inherited from GlobalDataBase
 GlobalDataBase ()
 
virtual ~GlobalDataBase ()
 
void createConfigurator ()
 Creates the Configurator and, if already exists, destroys the old one. More...
 
void removeConfigurator ()
 Destroys the Configurator if it was created. More...
 
bool isConfiguratorOpen ()
 

Public Attributes

OdeConfig odeConfig
 
ObstacleList obstacles
 
OdeAgentList agents
 
Primitiveenvironment
 
SoundList sounds
 < this is used to be able to attach objects to the static environment More...
 
PlotOptionList plotoptions
 plotoptions used for new agents More...
 
std::list< Configurable * > globalconfigurables
 global configurables plotted by all agents More...
 
double time
 
long int sim_step
 time steps since start More...
 
- Public Attributes inherited from GlobalDataBase
ConfigurableList configs
 
lpzrobots::ConfiguratorProxy * configurator
 

Detailed Description

Data structure holding all essential global information.

Constructor & Destructor Documentation

GlobalData ( )
inline
virtual ~GlobalData ( )
inlinevirtual

Member Function Documentation

void addTmpObject ( TmpObject i,
double  duration 
)
virtual

adds a temporary display item with given life duration in sec

AgentList & getAgents ( )
virtual

returns the list of all agents

Implements GlobalDataBase.

void initializeTmpObjects ( const OdeHandle odeHandle,
const OsgHandle osgHandle 
)
virtual

called by Simulation to initialize tmp objects

void removeExpiredObjects ( double  time = -1)
virtual

called by Simulation to removes all expired sounds and temporary objects.

Optionally a time can be specified otherwise the internal time is used.

bool removeTmpObject ( TmpObject i)
virtual

removes a particular temporary display item even if it is not yet expired

Returns
true if it was deleted (found)
void updateTmpObjects ( const OsgHandle osgHandle)
virtual

called by Simulation to update tmp objects

Member Data Documentation

OdeAgentList agents
Primitive* environment
std::list<Configurable*> globalconfigurables

global configurables plotted by all agents

ObstacleList obstacles
OdeConfig odeConfig
PlotOptionList plotoptions

plotoptions used for new agents

long int sim_step

time steps since start

SoundList sounds

< this is used to be able to attach objects to the static environment

sound space

double time

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