Options for a subscription.
More...
#include <transport/transport.hh>
|
| SubscribeOptions () |
| Constructor.
|
|
bool | GetLatching () const |
| Are we latching?
|
|
std::string | GetMsgType () const |
| Get the type of the topic we're subscribed to.
|
|
NodePtr | GetNode () const |
| Get the node we're subscribed to.
|
|
std::string | GetTopic () const |
| Get the topic we're subscribed to.
|
|
template<class M > |
void | Init (const std::string &_topic, NodePtr _node, bool _latching) |
| Initialize the options.
|
|
Options for a subscription.
gazebo::transport::SubscribeOptions::SubscribeOptions |
( |
| ) |
|
|
inline |
bool gazebo::transport::SubscribeOptions::GetLatching |
( |
| ) |
const |
|
inline |
Are we latching?
- Returns
- true if we're latching the latest message, false otherwise
std::string gazebo::transport::SubscribeOptions::GetMsgType |
( |
| ) |
const |
|
inline |
Get the type of the topic we're subscribed to.
- Returns
- The type of the topic we're subscribed to
NodePtr gazebo::transport::SubscribeOptions::GetNode |
( |
| ) |
const |
|
inline |
Get the node we're subscribed to.
- Returns
- The associated node
std::string gazebo::transport::SubscribeOptions::GetTopic |
( |
| ) |
const |
|
inline |
Get the topic we're subscribed to.
- Returns
- The topic we're subscribed to
template<class M >
void gazebo::transport::SubscribeOptions::Init |
( |
const std::string & |
_topic, |
|
|
NodePtr |
_node, |
|
|
bool |
_latching |
|
) |
| |
|
inline |
Initialize the options.
- Parameters
-
[in] | _topic | Topic we're subscribing to |
[in,out] | _node | The associated node |
[in] | _latching | If true, latch the latest message; if false, don't latch |
References gzthrow, and NULL.
The documentation for this class was generated from the following file: