Go to the documentation of this file.
36 #include <nlohmann/json.hpp>
48 EventLoop(
const nlohmann::json &graph_config, std::chrono::milliseconds timestep, std::chrono::milliseconds timestepThres,
50 bool ownGIL =
true,
bool spinROS =
false);
73 PyGILState_STATE _pyGILState;
82 #endif // EVENT_LOOP_H
EventLoop implementation which runs a Computational Graph.
Definition: event_loop.h:41
void shutdownCB() override
Shutdown loop.
Definition: event_loop.cpp:98
Manages simulation loop. Runs physics and brain interface, and synchronizes them via Transfer Functio...
Definition: event_loop_interface.h:34
~EventLoop()
Definition: event_loop.cpp:43
ExecMode
Definition: computational_graph.h:62
void runLoopCB() override
Execute actions which must be performed every loop.
Definition: event_loop.cpp:68
void initializeCB() override
Initialize loop.
Definition: event_loop.cpp:46
EventLoop(const nlohmann::json &graph_config, std::chrono::milliseconds timestep, std::chrono::milliseconds timestepThres, ComputationalGraph::ExecMode execMode=ComputationalGraph::ExecMode::ALL_NODES, bool ownGIL=true, bool spinROS=false)
Constructor.
Definition: event_loop.cpp:32
nlohmann::json json
Definition: engine_json_server.cpp:31