template class SimpleOutputEdge

Overview

Helper template class used to implement Python output edge decorators. More…

#include <output_edge.h>

template <class T_OUT, OUTPUT_C<T_OUT> OUTPUT_CLASS>
class SimpleOutputEdge {
public:
    // construction

    SimpleOutputEdge();

    SimpleOutputEdge(
        std::string keyword,
        std::string id,
        std::string port,
        bool publishFromCache,
        unsigned int computePeriod
    );

    // methods

    boost::python::object pySetup(const boost::python::object& obj);
};

// direct descendants

class OutputDummyEdge;
class OutputEngineEdge;

template <class MSG_TYPE>
class OutputMQTTEdge;

template <class MSG_TYPE>
class OutputROSEdge;

class OutputSpinnakerEdge;

Detailed Documentation

Helper template class used to implement Python output edge decorators.

Construction

SimpleOutputEdge(
    std::string keyword,
    std::string id,
    std::string port,
    bool publishFromCache,
    unsigned int computePeriod
)

Constructor.

Methods

boost::python::object pySetup(const boost::python::object& obj)

call function in the decorator

It creates and registers an output node. Afterwards add a port to it and registers an edge from ‘obj’. ‘obj’ is expected to be a Python object wrapping a PythonFunctionalNode