class mrpt::comms::Subscriber

Overview

Nodelet-like Pub/Sub communications (in #include <mrpt/comms/nodelets.h>)

#include <mrpt/comms/nodelets.h>

class Subscriber
{
public:
    // typedefs

    typedef std::shared_ptr<Subscriber> Ptr;

    // methods

    void pub(const std::any& a);

    static Ptr create(
        std::function<void(const std::any&)>&& func,
        std::function<void()>&& cleanup
        );
};