MRPT
1.9.9
|
Nodelet-like Pub/Sub communications (in #include <mrpt/comms/nodelets.h>)
Definition at line 29 of file nodelets.h.
#include <mrpt/comms/nodelets.h>
Public Types | |
using | Ptr = std::shared_ptr< Subscriber > |
Public Member Functions | |
~Subscriber () | |
void | pub (const std::any &a) |
Static Public Member Functions | |
static Ptr | create (std::function< void(const std::any &)> &&func, std::function< void()> &&cleanup) |
Private Member Functions | |
Subscriber (std::function< void(const std::any &)> &&func, std::function< void()> &&cleanup) | |
Private Attributes | |
std::function< void(const std::any &)> | m_func |
std::function< void()> | m_cleanup |
Definition at line 37 of file nodelets.h.
|
private |
Definition at line 17 of file nodelets.cpp.
Referenced by create().
Subscriber::~Subscriber | ( | ) |
Definition at line 24 of file nodelets.cpp.
References m_cleanup.
|
static |
Definition at line 26 of file nodelets.cpp.
References Subscriber().
Referenced by mrpt::comms::Topic::createSubscriber().
void Subscriber::pub | ( | const std::any & | a | ) |
Definition at line 33 of file nodelets.cpp.
References m_func.
|
private |
Definition at line 48 of file nodelets.h.
Referenced by ~Subscriber().
|
private |
Definition at line 47 of file nodelets.h.
Referenced by pub().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020 |