Manages simulation loop. Runs physics and brain interface, and synchronizes them via Transfer Functions. More...
#include <fti_loop.h>
Public Member Functions | |
| FTILoop ()=default | |
| FTILoop (jsonSharedPtr config, DataPackProcessor::engine_interfaces_t engines, SimulationDataManager *simulationDataManager) | |
| void | initLoop () |
| Initialize engines before running loop. More... | |
| void | resetLoop () |
| Reset engines of the loop. More... | |
| void | shutdownLoop () |
| Shutdown engines. More... | |
| void | waitForEngines () |
| Blocks until all running Engines finishe their execution. More... | |
| void | runLoop (SimulationTime runLoopTime) |
| Runs simulation for a total of runLoopTime (in s) More... | |
| SimulationTime | getSimTime () const |
| Get Simulation Time (in seconds) More... | |
Friends | |
| class | FTILoopTest_InitTFManager_Test |
Additional Inherited Members | |
Public Types inherited from PtrTemplates< FTILoop > | |
| using | shared_ptr = std::shared_ptr< FTILoop > |
| using | const_shared_ptr = std::shared_ptr< const FTILoop > |
| using | unique_ptr = std::unique_ptr< FTILoop > |
| using | const_unique_ptr = std::unique_ptr< const FTILoop > |
Manages simulation loop. Runs physics and brain interface, and synchronizes them via Transfer Functions.
|
default |
| FTILoop::FTILoop | ( | jsonSharedPtr | config, |
| DataPackProcessor::engine_interfaces_t | engines, | ||
| SimulationDataManager * | simulationDataManager | ||
| ) |
|
inline |
Get Simulation Time (in seconds)
| void FTILoop::initLoop | ( | ) |
Initialize engines before running loop.
| void FTILoop::resetLoop | ( | ) |
Reset engines of the loop.
| void FTILoop::runLoop | ( | SimulationTime | runLoopTime | ) |
Runs simulation for a total of runLoopTime (in s)
| runLoopTime | Time (in s) to run simulation. At end, will run TransceiverFunctions |
| void FTILoop::shutdownLoop | ( | ) |
Shutdown engines.
| void FTILoop::waitForEngines | ( | ) |
Blocks until all running Engines finishe their execution.
|
friend |