Allows publication of a message to a single subscriber. Only available inside subscriber connection callbacks.
More...
#include <single_subscriber_publisher.h>
Allows publication of a message to a single subscriber. Only available inside subscriber connection callbacks.
Definition at line 45 of file single_subscriber_publisher.h.
◆ SingleSubscriberPublisher()
◆ ~SingleSubscriberPublisher()
roswrap::SingleSubscriberPublisher::~SingleSubscriberPublisher |
( |
| ) |
|
◆ getSubscriberName()
std::string roswrap::SingleSubscriberPublisher::getSubscriberName |
( |
| ) |
const |
Returns the name of the subscriber node.
◆ getTopic()
std::string roswrap::SingleSubscriberPublisher::getTopic |
( |
| ) |
const |
Returns the topic this publisher publishes on.
◆ publish() [1/4]
template<class M >
void roswrap::SingleSubscriberPublisher::publish |
( |
const M & |
message | ) |
const |
|
inline |
◆ publish() [2/4]
◆ publish() [3/4]
template<class M >
void roswrap::SingleSubscriberPublisher::publish |
( |
const std::shared_ptr< M > & |
message | ) |
const |
|
inline |
Publish a message on the topic associated with this Publisher.
This version of publish will allow fast intra-process message-passing in the future, so you may not mutate the message after it has been passed in here (since it will be passed directly into a callback function)
Definition at line 74 of file single_subscriber_publisher.h.
◆ publish() [4/4]
template<class M >
void roswrap::SingleSubscriberPublisher::publish |
( |
const std::shared_ptr< M const > & |
message | ) |
const |
|
inline |
Publish a message on the topic associated with this Publisher.
This version of publish will allow fast intra-process message-passing in the future, so you may not mutate the message after it has been passed in here (since it will be passed directly into a callback function)
Definition at line 60 of file single_subscriber_publisher.h.
◆ link_
The documentation for this class was generated from the following file: