A subscriber to a topic. More...
#include <transport/transport.hh>
Public Member Functions | |
Subscriber (const std::string &_topic, NodePtr _node) | |
Constructor. | |
virtual | ~Subscriber () |
Destructor. | |
std::string | GetTopic () const |
Get the topic name. | |
void | Unsubscribe () const |
Unsubscribe from the topic. | |
A subscriber to a topic.
gazebo::transport::Subscriber::Subscriber | ( | const std::string & | _topic, |
NodePtr | _node | ||
) |
Constructor.
[in] | _topic | The topic we're subscribing to |
[in] | _node | The associated node |
|
virtual |
Destructor.
std::string gazebo::transport::Subscriber::GetTopic | ( | ) | const |
Get the topic name.
void gazebo::transport::Subscriber::Unsubscribe | ( | ) | const |
Unsubscribe from the topic.