class EventLoop

Overview

EventLoop implementation which runs a Computational Graph. More…

#include <event_loop.h>

class EventLoop: public EventLoopInterface {
public:
    // construction

    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
    );
};

Inherited Members

public:
    // methods

    virtual void initialize();
    void runLoopOnce(const std::chrono::time_point<std::chrono::steady_clock>& startTime);
    void runLoop(std::chrono::milliseconds timeout);

    void runLoopAsync(
        std::chrono::milliseconds timeout = std::chrono::milliseconds(0),
        bool doInit = false
    );

    void stopLoop();
    void shutdown();
    bool isRunning();
    void waitForLoopEnd();

Detailed Documentation

EventLoop implementation which runs a Computational Graph.

Construction

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.