A subscriber to a topic.
More...
#include <transport/transport.hh>
gazebo::transport::Subscriber::Subscriber |
( |
const std::string & |
_topic, |
|
|
NodePtr |
_node |
|
) |
| |
Constructor.
- Parameters
-
[in] | _topic | The topic we're subscribing to |
[in] | _node | The associated node |
virtual gazebo::transport::Subscriber::~Subscriber |
( |
) | |
|
|
virtual |
unsigned int gazebo::transport::Subscriber::GetCallbackId |
( |
) | |
const |
std::string gazebo::transport::Subscriber::GetTopic |
( |
) | |
const |
Get the topic name.
- Returns
- The topic name
void gazebo::transport::Subscriber::SetCallbackId |
( |
unsigned int |
_id) | |
|
void gazebo::transport::Subscriber::Unsubscribe |
( |
) | |
const |
Unsubscribe from the topic.
The documentation for this class was generated from the following file: