- gazebo
- transport
- Publication
A publication for a topic. More...
#include <Publication.hh>
Public Member Functions | |
| Publication (const std::string &topic, const std::string &msgType) | |
| Constructor. | |
| virtual | ~Publication () |
| Destructor. | |
| std::string | GetTopic () const |
| Get the topic for this publication. | |
| std::string | GetMsgType () const |
| Get the type of message. | |
| void | AddSubscription (const CallbackHelperPtr &callback) |
| void | AddSubscription (const NodePtr &_node) |
| void | RemoveSubscription (const CallbackHelperPtr &callback) |
| void | RemoveSubscription (const NodePtr &_node) |
| void | RemoveSubscription (const std::string &host, unsigned int port) |
| Remove a subscription. | |
| void | RemoveTransport (const std::string &host, unsigned int port) |
| unsigned int | GetTransportCount () const |
| unsigned int | GetCallbackCount () const |
| unsigned int | GetNodeCount () const |
| unsigned int | GetRemoteSubscriptionCount () |
| bool | GetLocallyAdvertised () const |
| Return true if the topic has been advertised from this process. | |
| void | SetLocallyAdvertised (bool _value) |
| Set whether this topic has been advertised from this process. | |
| void | Publish (const std::string &data) |
| Publish data. | |
| void | LocalPublish (const std::string &data) |
| void | Publish (const google::protobuf::Message &msg, const boost::function< void()> &cb=0) |
| void | AddTransport (const PublicationTransportPtr &publink) |
| bool | HasTransport (const std::string &_host, unsigned int _port) |
| void | AddPublisher (PublisherPtr _pub) |
| void | RemovePublisher () |
A publication for a topic.
This facilitates transport of messages
| bool GetLocallyAdvertised | ( | ) | const |
Return true if the topic has been advertised from this process.
1.7.5.1