#include <robot.h>
Public Types | |
typedef rqt_mrta::config::application::Robot | Config |
typedef QList< Task * > ::const_iterator | const_iterator |
typedef QList< Task * >::iterator | iterator |
enum | State { Idle, Busy, Offline, STATE_COUNT } |
typedef Taxonomy::RobotType | Type |
Public Slots | |
void | setId (const QString &id) |
Signals | |
void | added (size_t index) |
void | busy () |
void | changed () |
void | idChanged (const QString &id) |
void | idle () |
void | offline () |
void | removed (const QString &task_id) |
void | stateChanged (int state) |
void | taskChanged () |
void | taskIdChanged (const QString &task_id) |
Public Member Functions | |
void | addTask (Task *task) |
void | clearTasks () |
size_t | count () const |
Config * | getConfig () const |
History * | getHistory () const |
QString | getId () const |
State | getState () const |
StateMonitor * | getStateMonitor () const |
Task * | getTask (int index) const |
Type | getType () const |
Robot & | operator= (const Robot &robot) |
void | removeTask (Task *task) |
Robot (System *parent=NULL, Config *config=NULL) | |
Robot (const Robot &robot) | |
void | setConfig (Config *config) |
void | setState (State state) |
virtual | ~Robot () |
Private Slots | |
void | configDestroyed () |
void | monitorUpdated (size_t index, bool up_to_date) |
void | taskDestroyed () |
Private Attributes | |
Config * | config_ |
History * | history_ |
QString | id_ |
StateMonitor * | monitor_ |
State | state_ |
QVector< Task * > | tasks_ |
Type | type_ |
Definition at line 27 of file mrta/robot.h.
Definition at line 33 of file mrta/robot.h.
typedef QList<Task*>::const_iterator mrta::Robot::const_iterator |
Definition at line 32 of file mrta/robot.h.
typedef QList<Task*>::iterator mrta::Robot::iterator |
Definition at line 31 of file mrta/robot.h.
typedef Taxonomy::RobotType mrta::Robot::Type |
Definition at line 34 of file mrta/robot.h.
enum mrta::Robot::State |
Definition at line 35 of file mrta/robot.h.
Robot::Robot | ( | System * | parent = NULL , |
Config * | config = NULL |
||
) |
Definition at line 11 of file mrta/robot.cpp.
Robot::Robot | ( | const Robot & | robot | ) |
Definition at line 21 of file mrta/robot.cpp.
Robot::~Robot | ( | ) | [virtual] |
Definition at line 28 of file mrta/robot.cpp.
void mrta::Robot::added | ( | size_t | index | ) | [signal] |
void Robot::addTask | ( | Task * | task | ) |
Definition at line 127 of file mrta/robot.cpp.
void mrta::Robot::busy | ( | ) | [signal] |
void mrta::Robot::changed | ( | ) | [signal] |
void Robot::clearTasks | ( | ) |
Definition at line 148 of file mrta/robot.cpp.
void Robot::configDestroyed | ( | ) | [private, slot] |
Definition at line 157 of file mrta/robot.cpp.
size_t Robot::count | ( | ) | const |
Definition at line 123 of file mrta/robot.cpp.
Robot::Config * Robot::getConfig | ( | ) | const |
Definition at line 46 of file mrta/robot.cpp.
History * Robot::getHistory | ( | ) | const |
Definition at line 82 of file mrta/robot.cpp.
QString Robot::getId | ( | ) | const |
Definition at line 76 of file mrta/robot.cpp.
Robot::State Robot::getState | ( | ) | const |
Definition at line 80 of file mrta/robot.cpp.
StateMonitor * Robot::getStateMonitor | ( | ) | const |
Definition at line 84 of file mrta/robot.cpp.
Task * Robot::getTask | ( | int | index | ) | const |
Definition at line 125 of file mrta/robot.cpp.
Robot::Type Robot::getType | ( | ) | const |
Definition at line 78 of file mrta/robot.cpp.
void mrta::Robot::idChanged | ( | const QString & | id | ) | [signal] |
void mrta::Robot::idle | ( | ) | [signal] |
void Robot::monitorUpdated | ( | size_t | index, |
bool | up_to_date | ||
) | [private, slot] |
Definition at line 172 of file mrta/robot.cpp.
void mrta::Robot::offline | ( | ) | [signal] |
Definition at line 150 of file mrta/robot.cpp.
void mrta::Robot::removed | ( | const QString & | task_id | ) | [signal] |
void Robot::removeTask | ( | Task * | task | ) |
Definition at line 139 of file mrta/robot.cpp.
void Robot::setConfig | ( | Robot::Config * | config | ) |
Definition at line 48 of file mrta/robot.cpp.
void Robot::setId | ( | const QString & | id | ) | [slot] |
Definition at line 86 of file mrta/robot.cpp.
void Robot::setState | ( | Robot::State | state | ) |
Definition at line 96 of file mrta/robot.cpp.
void mrta::Robot::stateChanged | ( | int | state | ) | [signal] |
void mrta::Robot::taskChanged | ( | ) | [signal] |
void Robot::taskDestroyed | ( | ) | [private, slot] |
Definition at line 159 of file mrta/robot.cpp.
void mrta::Robot::taskIdChanged | ( | const QString & | task_id | ) | [signal] |
Config* mrta::Robot::config_ [private] |
Definition at line 80 of file mrta/robot.h.
History* mrta::Robot::history_ [private] |
Definition at line 81 of file mrta/robot.h.
QString mrta::Robot::id_ [private] |
Definition at line 76 of file mrta/robot.h.
StateMonitor* mrta::Robot::monitor_ [private] |
Definition at line 82 of file mrta/robot.h.
State mrta::Robot::state_ [private] |
Definition at line 78 of file mrta/robot.h.
QVector<Task*> mrta::Robot::tasks_ [private] |
Definition at line 79 of file mrta/robot.h.
Type mrta::Robot::type_ [private] |
Definition at line 77 of file mrta/robot.h.