#include <monitor.h>
Public Types | |
typedef rqt_mrta::config::architecture::Topic | Config |
Public Slots | |
void | setField (const QString &field) |
void | setHorizon (const ros::Duration &horizon) |
void | setName (const QString &name) |
void | setQueueSize (const size_t &queue_size) |
void | setTimeout (const ros::Duration &timeout) |
void | setType (const QString &type) |
Signals | |
void | changed () |
void | received (const QString &id) |
Public Member Functions | |
Config * | getConfig () const |
QString | getField () const |
ros::Duration | getHorizon () const |
QString | getName () const |
size_t | getQueueSize () const |
ros::Duration | getTimeout () const |
QString | getType () const |
void | setConfig (Config *config) |
void | setRegistry (utilities::MessageSubscriberRegistry *registry) |
virtual | ~Monitor () |
Protected Slots | |
virtual void | add (const QString &id)=0 |
Protected Member Functions | |
void | addStateMonitor (const QString &id, StateMonitor *monitor) |
System * | getSystem () const |
Monitor (System *system, utilities::MessageSubscriberRegistry *registry, Config *config) | |
virtual void | update (const QString &id)=0 |
void | update (const QString &id, int state) |
Private Types | |
typedef QMap< QString, StateMonitor * > | StateMonitorMap |
Private Slots | |
void | subscriberReceived (variant_topic_tools::BuiltinVariant field_value) |
void | updateSubscriber () |
Private Member Functions | |
bool | subscribe () |
bool | unsubscribe () |
Private Attributes | |
Config * | config_ |
QString | field_ |
ros::Duration | horizon_ |
StateMonitorMap | monitors_ |
QString | name_ |
size_t | queue_size_ |
utilities::MessageSubscriberRegistry * | registry_ |
utilities::MessageFieldSubscriber * | subscriber_ |
ros::Duration | timeout_ |
QString | type_ |
typedef QMap<QString, StateMonitor*> mrta::Monitor::StateMonitorMap [private] |
mrta::Monitor::~Monitor | ( | ) | [virtual] |
Definition at line 19 of file monitor.cpp.
mrta::Monitor::Monitor | ( | System * | system, |
utilities::MessageSubscriberRegistry * | registry, | ||
Config * | config | ||
) | [protected] |
Definition at line 10 of file monitor.cpp.
virtual void mrta::Monitor::add | ( | const QString & | id | ) | [protected, pure virtual, slot] |
Implemented in mrta::RobotMonitor.
void mrta::Monitor::addStateMonitor | ( | const QString & | id, |
StateMonitor * | monitor | ||
) | [protected] |
Definition at line 166 of file monitor.cpp.
void mrta::Monitor::changed | ( | ) | [signal] |
Monitor::Config * mrta::Monitor::getConfig | ( | ) | const |
Definition at line 34 of file monitor.cpp.
QString mrta::Monitor::getField | ( | ) | const |
Definition at line 42 of file monitor.cpp.
ros::Duration mrta::Monitor::getHorizon | ( | ) | const |
Definition at line 46 of file monitor.cpp.
QString mrta::Monitor::getName | ( | ) | const |
Definition at line 36 of file monitor.cpp.
size_t mrta::Monitor::getQueueSize | ( | ) | const |
Definition at line 40 of file monitor.cpp.
System * mrta::Monitor::getSystem | ( | ) | const [protected] |
Definition at line 48 of file monitor.cpp.
ros::Duration mrta::Monitor::getTimeout | ( | ) | const |
Definition at line 44 of file monitor.cpp.
QString mrta::Monitor::getType | ( | ) | const |
Definition at line 38 of file monitor.cpp.
void mrta::Monitor::received | ( | const QString & | id | ) | [signal] |
void mrta::Monitor::setConfig | ( | Monitor::Config * | config | ) |
Definition at line 50 of file monitor.cpp.
void mrta::Monitor::setField | ( | const QString & | field | ) | [slot] |
Definition at line 122 of file monitor.cpp.
void mrta::Monitor::setHorizon | ( | const ros::Duration & | horizon | ) | [slot] |
Definition at line 145 of file monitor.cpp.
void mrta::Monitor::setName | ( | const QString & | name | ) | [slot] |
Definition at line 95 of file monitor.cpp.
void mrta::Monitor::setQueueSize | ( | const size_t & | queue_size | ) | [slot] |
Definition at line 113 of file monitor.cpp.
void mrta::Monitor::setRegistry | ( | utilities::MessageSubscriberRegistry * | registry | ) |
Definition at line 154 of file monitor.cpp.
void mrta::Monitor::setTimeout | ( | const ros::Duration & | timeout | ) | [slot] |
Definition at line 131 of file monitor.cpp.
void mrta::Monitor::setType | ( | const QString & | type | ) | [slot] |
Definition at line 104 of file monitor.cpp.
bool mrta::Monitor::subscribe | ( | ) | [private] |
Definition at line 188 of file monitor.cpp.
void mrta::Monitor::subscriberReceived | ( | variant_topic_tools::BuiltinVariant | field_value | ) | [private, slot] |
Definition at line 231 of file monitor.cpp.
bool mrta::Monitor::unsubscribe | ( | ) | [private] |
Definition at line 212 of file monitor.cpp.
virtual void mrta::Monitor::update | ( | const QString & | id | ) | [protected, pure virtual] |
Implemented in mrta::RobotMonitor.
void mrta::Monitor::update | ( | const QString & | id, |
int | state | ||
) | [protected] |
Definition at line 174 of file monitor.cpp.
void mrta::Monitor::updateSubscriber | ( | ) | [private, slot] |
Definition at line 182 of file monitor.cpp.
Config* mrta::Monitor::config_ [private] |
QString mrta::Monitor::field_ [private] |
ros::Duration mrta::Monitor::horizon_ [private] |
StateMonitorMap mrta::Monitor::monitors_ [private] |
QString mrta::Monitor::name_ [private] |
size_t mrta::Monitor::queue_size_ [private] |
ros::Duration mrta::Monitor::timeout_ [private] |
QString mrta::Monitor::type_ [private] |