#include <message_subscriber.h>
Public Types | |
enum | Property { QueueSize } |
Signals | |
void | aboutToBeDestroyed () |
void | messageReceived (const QString &topic, const Message &message) |
void | subscribed (const QString &topic) |
void | unsubscribed (const QString &topic) |
Public Member Functions | |
bool | event (QEvent *event) |
const ros::NodeHandle & | getNodeHandle () const |
size_t | getNumPublishers () const |
size_t | getQueueSize () const |
const QString & | getTopic () const |
bool | isValid () const |
MessageSubscriber (QObject *parent=0, const ros::NodeHandle &nh=ros::NodeHandle("~")) | |
void | setQueueSize (size_t queue_size) |
void | setTopic (const QString &topic) |
~MessageSubscriber () | |
Private Member Functions | |
void | callback (const variant_topic_tools::MessageVariant &variant, const ros::Time &receipt_time) |
void | connectNotify (const QMetaMethod &signal) |
void | disconnectNotify (const QMetaMethod &signal) |
void | subscribe () |
void | unsubscribe () |
Private Attributes | |
ros::NodeHandle | nh_ |
size_t | queue_size_ |
variant_topic_tools::Subscriber | subscriber_ |
QString | topic_ |
Definition at line 14 of file message_subscriber.h.
Definition at line 18 of file message_subscriber.h.
utilities::MessageSubscriber::MessageSubscriber | ( | QObject * | parent = 0 , |
const ros::NodeHandle & | nh = ros::NodeHandle("~") |
||
) |
Definition at line 8 of file message_subscriber.cpp.
Definition at line 13 of file message_subscriber.cpp.
void utilities::MessageSubscriber::aboutToBeDestroyed | ( | ) | [signal] |
void utilities::MessageSubscriber::callback | ( | const variant_topic_tools::MessageVariant & | variant, |
const ros::Time & | receipt_time | ||
) | [private] |
Definition at line 88 of file message_subscriber.cpp.
void utilities::MessageSubscriber::connectNotify | ( | const QMetaMethod & | signal | ) | [private] |
Definition at line 100 of file message_subscriber.cpp.
void utilities::MessageSubscriber::disconnectNotify | ( | const QMetaMethod & | signal | ) | [private] |
Definition at line 109 of file message_subscriber.cpp.
bool utilities::MessageSubscriber::event | ( | QEvent * | event | ) |
Definition at line 54 of file message_subscriber.cpp.
const ros::NodeHandle & utilities::MessageSubscriber::getNodeHandle | ( | ) | const |
Definition at line 15 of file message_subscriber.cpp.
size_t utilities::MessageSubscriber::getNumPublishers | ( | ) | const |
Definition at line 47 of file message_subscriber.cpp.
size_t utilities::MessageSubscriber::getQueueSize | ( | ) | const |
Definition at line 45 of file message_subscriber.cpp.
const QString & utilities::MessageSubscriber::getTopic | ( | ) | const |
Definition at line 17 of file message_subscriber.cpp.
bool utilities::MessageSubscriber::isValid | ( | ) | const |
Definition at line 52 of file message_subscriber.cpp.
void utilities::MessageSubscriber::messageReceived | ( | const QString & | topic, |
const Message & | message | ||
) | [signal] |
void utilities::MessageSubscriber::setQueueSize | ( | size_t | queue_size | ) |
Definition at line 32 of file message_subscriber.cpp.
void utilities::MessageSubscriber::setTopic | ( | const QString & | topic | ) |
Definition at line 19 of file message_subscriber.cpp.
void utilities::MessageSubscriber::subscribe | ( | ) | [private] |
Definition at line 65 of file message_subscriber.cpp.
void utilities::MessageSubscriber::subscribed | ( | const QString & | topic | ) | [signal] |
void utilities::MessageSubscriber::unsubscribe | ( | ) | [private] |
Definition at line 78 of file message_subscriber.cpp.
void utilities::MessageSubscriber::unsubscribed | ( | const QString & | topic | ) | [signal] |
Definition at line 41 of file message_subscriber.h.
size_t utilities::MessageSubscriber::queue_size_ [private] |
Definition at line 43 of file message_subscriber.h.
Definition at line 44 of file message_subscriber.h.
QString utilities::MessageSubscriber::topic_ [private] |
Definition at line 42 of file message_subscriber.h.