TaskedSimulation Class Reference
#include <taskedsimulation.h>
Inherits lpzrobots::Simulation.
Inherited by ThisSim.
List of all members.
Public Member Functions |
| | TaskedSimulation () |
| virtual | ~TaskedSimulation () |
| virtual void | start (const OdeHandle &, const OsgHandle &, GlobalData &globalData, SimulationTaskHandle &simTaskHandle, int taskId) |
| | start() is called at the first start of the cycles and should create all the object (obstacles, agents...).
|
| virtual bool | restart (const OdeHandle &, const OsgHandle &, GlobalData &globalData, SimulationTaskHandle &, int taskId) |
| | restart() is called at the second and all following starts of the cylce The end of a cycle is determined by (simulation_time_reached==true)
|
| virtual void | addCallback (GlobalData &globalData, bool draw, bool pause, bool control, SimulationTaskHandle &, int taskId) |
| | optional additional callback function which is called every simulation step.
|
| virtual bool | command (const OdeHandle &, const OsgHandle &, GlobalData &globalData, int key, bool down, SimulationTaskHandle &, int taskId) |
| | is called if a key was pressed.
|
| void | setTaskId (int taskId) |
| | Sets the taskId of the associated SimulationTask.
|
| void | setTaskNameSuffix (std::string nameSuffix) |
| void | setSimTaskHandle (SimulationTaskHandle &simTaskHandle) |
| | Sets the global SimulationTaskHandle.
|
Constructor & Destructor Documentation
Member Function Documentation
optional additional callback function which is called every simulation step.
Called between physical simulation step and drawing.
- Parameters:
-
| draw | indicates that objects are drawn in this timestep |
| pause | always false (only called of simulation is running) |
| control | indicates that robots have been controlled this timestep |
is called if a key was pressed.
For keycodes see: osgGA::GUIEventAdapter
- Returns:
- true if the key was handled
Reimplemented in ThisSim.
restart() is called at the second and all following starts of the cylce The end of a cycle is determined by (simulation_time_reached==true)
- Parameters:
-
| the | odeHandle |
| the | osgHandle |
| globalData | |
- Returns:
- if the simulation should be restarted; this is false by default
Reimplemented in ThisSim.
| void setTaskId |
( |
int |
taskId |
) |
[inline] |
| void setTaskNameSuffix |
( |
std::string |
nameSuffix |
) |
[inline] |
start() is called at the first start of the cycles and should create all the object (obstacles, agents...).
Reimplemented in ThisSim.
The documentation for this class was generated from the following file: