|
| TestLazySubscriber (ros::NodeHandle publisherNh, const std::string &publisherTopic, typename cras::ConditionalSubscriber::ConnectFn connectFn, typename cras::ConditionalSubscriber::DisconnectFn disconnectFn=[](ros::Subscriber &sub) { sub.shutdown();}, const cras::LogHelperPtr &logHelper=std::make_shared< cras::NodeLogHelper >()) |
|
| LazySubscriberBase (::ros::NodeHandle publisherNh, const ::std::string &publisherTopic, typename ::cras::ConditionalSubscriber::ConnectFn connectFn, const ::cras::LogHelperPtr &logHelper=::std::make_shared<::cras::NodeLogHelper >()) |
| Create the lazy subscriber that subscribes only when publisherTopic has subscribers. More...
|
|
| LazySubscriberBase (::ros::NodeHandle publisherNh, const ::std::string &publisherTopic, typename ::cras::ConditionalSubscriber::ConnectFn connectFn, typename ::cras::ConditionalSubscriber::DisconnectFn disconnectFn, const ::cras::LogHelperPtr &logHelper=::std::make_shared<::cras::NodeLogHelper >()) |
| Create the lazy subscriber that subscribes only when publisherTopic has subscribers. More...
|
|
| ConditionalSubscriber (ConnectFn connectFn, const ::cras::LogHelperPtr &logHelper=::std::make_shared<::cras::NodeLogHelper >()) |
| Create the conditional subscriber. More...
|
|
| ConditionalSubscriber (ConnectFn connectFn, DisconnectFn disconnectFn, const ::cras::LogHelperPtr &logHelper=::std::make_shared<::cras::NodeLogHelper >()) |
| Create the conditional subscriber. More...
|
|
bool | isLazy () const |
| Tell whether this subscriber has the lazy behavior enabled. More...
|
|
bool | isSubscribed () const |
| Whether the subscriber is currently subscribed to its topic or not. More...
|
|
void | setLazy (bool lazy) |
| Set whether the subscriber behaves in the lazy way. More...
|
|
virtual | ~ConditionalSubscriber () |
| Destroy this object and unsubscribe the subscriber if it was subscribed. More...
|
|
::cras::LogHelperConstPtr | getCrasLogger () const |
|
| HasLogger (const ::cras::LogHelperPtr &log) |
|
void | setCrasLogger (const ::cras::LogHelperPtr &log) |
|
template<typename M>
class TestLazySubscriber< M >
Definition at line 58 of file test_lazy_subscriber.cpp.