class mrpt::comms::SubscriberΒΆ

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