Variant message subscriber implementation. More...
Public Member Functions | |
void | eventCallback (const ros::MessageEvent< Message const > &event) |
This subscriber's event callback. | |
Impl (ros::NodeHandle &nodeHandle, const MessageType &type, const std::string &topic, size_t queueSize, const SubscriberCallback &callback) | |
Constructor. | |
bool | isValid () const |
True, if this subscriber implementation is valid. | |
void | shutdown () |
Perform shutdown of the subscriber. | |
~Impl () | |
Destructor. | |
Public Attributes | |
SubscriberCallback | callback |
The subscriber's callback. | |
MessageDataType | dataType |
The message data type associated with this subscriber. | |
MessageSerializer | serializer |
The message serializer associated with this subscriber. | |
ros::Subscriber | subscriber |
The ROS subscriber. | |
MessageType | type |
The message type associated with this subscriber. |
Variant message subscriber implementation.
Definition at line 77 of file Subscriber.h.
variant_topic_tools::Subscriber::Impl::Impl | ( | ros::NodeHandle & | nodeHandle, |
const MessageType & | type, | ||
const std::string & | topic, | ||
size_t | queueSize, | ||
const SubscriberCallback & | callback | ||
) |
Constructor.
Definition at line 40 of file Subscriber.cpp.
Destructor.
Definition at line 49 of file Subscriber.cpp.
void variant_topic_tools::Subscriber::Impl::eventCallback | ( | const ros::MessageEvent< Message const > & | event | ) |
This subscriber's event callback.
Definition at line 103 of file Subscriber.cpp.
bool variant_topic_tools::Subscriber::Impl::isValid | ( | ) | const |
True, if this subscriber implementation is valid.
Definition at line 82 of file Subscriber.cpp.
Perform shutdown of the subscriber.
Definition at line 95 of file Subscriber.cpp.
The subscriber's callback.
Definition at line 115 of file Subscriber.h.
The message data type associated with this subscriber.
Definition at line 107 of file Subscriber.h.
The message serializer associated with this subscriber.
Definition at line 111 of file Subscriber.h.
The ROS subscriber.
Definition at line 119 of file Subscriber.h.
The message type associated with this subscriber.
Definition at line 103 of file Subscriber.h.