Go to the documentation of this file.00001 #ifndef _MRTA_ROBOT_MONITOR_H_
00002 #define _MRTA_ROBOT_MONITOR_H_
00003
00004 #include "mrta/log.h"
00005 #include <QList>
00006 #include <QObject>
00007 #include <ros/time.h>
00008
00009 namespace mrta
00010 {
00011 class History : public QObject
00012 {
00013 Q_OBJECT
00014 public:
00015 History(QObject* parent);
00016 virtual ~History();
00017 QList<Log*> getLogs() const;
00018 void log(const ros::Time& timestamp, Log::Type type, Log::Severity severity,
00019 const QString& id, int state);
00020
00021 private:
00022 typedef QList<Log*> LogList;
00023 LogList logs_;
00024 };
00025 }
00026
00027 #endif // _MRTA_ROBOT_MONITOR_H_