#include <SIG_DynaMoSimulationQueries.h>
Inheritance diagram for SIGEL_Simulation::SIG_DynaMoSimulationQueries:
Public Methods | |
SIG_DynaMoSimulationQueries (SIG_DynaMoSimulationData& theSimulationData) | |
the constructor. More... | |
void | sense (int sensorNo,QVector<SIG_Register> & registers) const |
Interprets the SENSE command and writes the results into the registers. More... | |
QTime | getActualSimulationTime () const |
gets the actual simulation time which is calculated frame*stepsize. More... | |
DL_vector | getLinkPosition (int linkNo) const |
gets the position of link linkNo. More... | |
DL_matrix | getLinkOrientation (int linkNo) const |
gets the orientation of link linkNo. More... | |
int | getRootNumber () const |
gets the number of the torso link. More... | |
double | getUsedForces () const |
gets the amount of forces enacted this timeframe. More... | |
int | getLinkCount () const |
gets the number of links. More... | |
void | checkDynas () const |
Private Attributes | |
SIG_DynaMoSimulationData& | simulationData |
the reference to the simulator's simulationData. More... |
Several entities as for example the recorder or the interpreter need to be able to get actual values from the simulator. For this task the class SIG_SimulationQueries is needed. It gives access to relevant simulation data. Its functionality will be expanded as needed by more sophisticated fitness-functions (respectively their recorders). Especially it can be used to query the actual simulation time and the position of each roboter link.
Definition at line 24 of file SIG_DynaMoSimulationQueries.h.
|
the constructor.
Definition at line 13 of file SIG_DynaMoSimulationQueries.cpp. |
|
Reimplemented from SIGEL_Simulation::SIG_SimulationQueries. Definition at line 71 of file SIG_DynaMoSimulationQueries.cpp. |
|
gets the actual simulation time which is calculated frame*stepsize.
Reimplemented from SIGEL_Simulation::SIG_SimulationQueries. Definition at line 28 of file SIG_DynaMoSimulationQueries.cpp. |
|
gets the number of links.
Reimplemented from SIGEL_Simulation::SIG_SimulationQueries. Definition at line 66 of file SIG_DynaMoSimulationQueries.cpp. |
|
gets the orientation of link linkNo.
Reimplemented from SIGEL_Simulation::SIG_SimulationQueries. Definition at line 48 of file SIG_DynaMoSimulationQueries.cpp. |
|
gets the position of link linkNo.
Reimplemented from SIGEL_Simulation::SIG_SimulationQueries. Definition at line 35 of file SIG_DynaMoSimulationQueries.cpp. |
|
gets the number of the torso link.
Reimplemented from SIGEL_Simulation::SIG_SimulationQueries. Definition at line 55 of file SIG_DynaMoSimulationQueries.cpp. |
|
gets the amount of forces enacted this timeframe.
Reimplemented from SIGEL_Simulation::SIG_SimulationQueries. Definition at line 60 of file SIG_DynaMoSimulationQueries.cpp. |
|
Interprets the SENSE command and writes the results into the registers.
Reimplemented from SIGEL_Simulation::SIG_SimulationQueries. Definition at line 17 of file SIG_DynaMoSimulationQueries.cpp. |
|
the reference to the simulator's simulationData.
Definition at line 30 of file SIG_DynaMoSimulationQueries.h. |