Allows publication of a message to a single subscriber. Only available inside subscriber connection callbacks. More...
#include <single_subscriber_publisher.h>
Public Member Functions | |
std::string | getSubscriberName () const |
Returns the name of the subscriber node. | |
std::string | getTopic () const |
Returns the topic this publisher publishes on. | |
template<class M > | |
void | publish (const boost::shared_ptr< M const > &message) const |
Publish a message on the topic associated with this Publisher. | |
template<class M > | |
void | publish (const boost::shared_ptr< M > &message) const |
Publish a message on the topic associated with this Publisher. | |
template<class M > | |
void | publish (const M &message) const |
Publish a message on the topic associated with this Publisher. | |
SingleSubscriberPublisher (const SubscriberLinkPtr &link) | |
~SingleSubscriberPublisher () | |
Private Member Functions | |
void | publish (const SerializedMessage &m) const |
Private Attributes | |
SubscriberLinkPtr | link_ |
Allows publication of a message to a single subscriber. Only available inside subscriber connection callbacks.
Definition at line 43 of file single_subscriber_publisher.h.
ros::SingleSubscriberPublisher::SingleSubscriberPublisher | ( | const SubscriberLinkPtr & | link | ) |
Definition at line 33 of file single_subscriber_publisher.cpp.
Definition at line 38 of file single_subscriber_publisher.cpp.
std::string ros::SingleSubscriberPublisher::getSubscriberName | ( | ) | const |
Returns the name of the subscriber node.
Definition at line 52 of file single_subscriber_publisher.cpp.
std::string ros::SingleSubscriberPublisher::getTopic | ( | ) | const |
Returns the topic this publisher publishes on.
Definition at line 47 of file single_subscriber_publisher.cpp.
void ros::SingleSubscriberPublisher::publish | ( | const boost::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 58 of file single_subscriber_publisher.h.
void ros::SingleSubscriberPublisher::publish | ( | const boost::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 72 of file single_subscriber_publisher.h.
void ros::SingleSubscriberPublisher::publish | ( | const M & | message | ) | const [inline] |
Publish a message on the topic associated with this Publisher.
Definition at line 81 of file single_subscriber_publisher.h.
void ros::SingleSubscriberPublisher::publish | ( | const SerializedMessage & | m | ) | const [private] |
Definition at line 42 of file single_subscriber_publisher.cpp.
SubscriberLinkPtr ros::SingleSubscriberPublisher::link_ [private] |
Definition at line 101 of file single_subscriber_publisher.h.