Drake Designer
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
ddLCMSubscriber Class Reference

#include <src/app/ddLCMSubscriber.h>

Inheritance diagram for ddLCMSubscriber:
Inheritance graph
[legend]

Signals

void messageReceived (const QByteArray &messageData, const QString &channel)
 
void messageReceivedInQueue (const QString &channel)
 

Public Member Functions

 ddLCMSubscriber (const QString &channel, QObject *parent=NULL)
 
virtual ~ddLCMSubscriber ()
 
virtual void subscribe (lcm::LCM *lcmHandle)
 
virtual void unsubscribe (lcm::LCM *lcmHandle)
 
const QString & channel () const
 
void setCallbackEnabled (bool enabled)
 
bool callbackIsEnabled () const
 
void setNotifyAllMessagesEnabled (bool enabled)
 
bool notifyAllMessagesIsEnabled () const
 
void setSpeedLimit (double hertz)
 
double getMessageRate ()
 
QByteArray getNextMessage (int timeout)
 

Protected Slots

void onMessageInQueue (const QString &channel)
 

Protected Member Functions

void messageHandler (const lcm::ReceiveBuffer *rbuf, const std::string &channel)
 

Protected Attributes

bool mEmitMessages
 
bool mNotifyAllMessages
 
int mRequiredElapsedMilliseconds
 
QMutex mMutex
 
QWaitCondition mWaitCondition
 
QByteArray mLastMessage
 
ddFPSCounter mFPSCounter
 
QTime mTimer
 
QString mChannel
 
lcm::Subscription * mSubscription
 

Detailed Description

Definition at line 26 of file ddLCMSubscriber.h.

Constructor & Destructor Documentation

ddLCMSubscriber::ddLCMSubscriber ( const QString &  channel,
QObject *  parent = NULL 
)
inline

Definition at line 32 of file ddLCMSubscriber.h.

virtual ddLCMSubscriber::~ddLCMSubscriber ( )
inlinevirtual

Definition at line 41 of file ddLCMSubscriber.h.

Member Function Documentation

bool ddLCMSubscriber::callbackIsEnabled ( ) const
inline

Definition at line 66 of file ddLCMSubscriber.h.

const QString& ddLCMSubscriber::channel ( ) const
inline

Definition at line 56 of file ddLCMSubscriber.h.

double ddLCMSubscriber::getMessageRate ( )
inline

Definition at line 103 of file ddLCMSubscriber.h.

QByteArray ddLCMSubscriber::getNextMessage ( int  timeout)
inline

Definition at line 108 of file ddLCMSubscriber.h.

void ddLCMSubscriber::messageHandler ( const lcm::ReceiveBuffer *  rbuf,
const std::string &  channel 
)
inlineprotected

Definition at line 152 of file ddLCMSubscriber.h.

void ddLCMSubscriber::messageReceived ( const QByteArray &  messageData,
const QString &  channel 
)
signal
void ddLCMSubscriber::messageReceivedInQueue ( const QString &  channel)
signal
bool ddLCMSubscriber::notifyAllMessagesIsEnabled ( ) const
inline

Definition at line 86 of file ddLCMSubscriber.h.

void ddLCMSubscriber::onMessageInQueue ( const QString &  channel)
inlineprotectedslot

Definition at line 142 of file ddLCMSubscriber.h.

void ddLCMSubscriber::setCallbackEnabled ( bool  enabled)
inline

Definition at line 61 of file ddLCMSubscriber.h.

void ddLCMSubscriber::setNotifyAllMessagesEnabled ( bool  enabled)
inline

Definition at line 72 of file ddLCMSubscriber.h.

void ddLCMSubscriber::setSpeedLimit ( double  hertz)
inline

Definition at line 91 of file ddLCMSubscriber.h.

virtual void ddLCMSubscriber::subscribe ( lcm::LCM *  lcmHandle)
inlinevirtual

Definition at line 45 of file ddLCMSubscriber.h.

virtual void ddLCMSubscriber::unsubscribe ( lcm::LCM *  lcmHandle)
inlinevirtual

Definition at line 50 of file ddLCMSubscriber.h.

Member Data Documentation

QString ddLCMSubscriber::mChannel
protected

Definition at line 203 of file ddLCMSubscriber.h.

bool ddLCMSubscriber::mEmitMessages
protected

Definition at line 195 of file ddLCMSubscriber.h.

ddFPSCounter ddLCMSubscriber::mFPSCounter
protected

Definition at line 201 of file ddLCMSubscriber.h.

QByteArray ddLCMSubscriber::mLastMessage
protected

Definition at line 200 of file ddLCMSubscriber.h.

QMutex ddLCMSubscriber::mMutex
mutableprotected

Definition at line 198 of file ddLCMSubscriber.h.

bool ddLCMSubscriber::mNotifyAllMessages
protected

Definition at line 196 of file ddLCMSubscriber.h.

int ddLCMSubscriber::mRequiredElapsedMilliseconds
protected

Definition at line 197 of file ddLCMSubscriber.h.

lcm::Subscription* ddLCMSubscriber::mSubscription
protected

Definition at line 204 of file ddLCMSubscriber.h.

QTime ddLCMSubscriber::mTimer
protected

Definition at line 202 of file ddLCMSubscriber.h.

QWaitCondition ddLCMSubscriber::mWaitCondition
protected

Definition at line 199 of file ddLCMSubscriber.h.


The documentation for this class was generated from the following file: