17 #ifndef GAZEBO_PLUGINS_TIMERGUIPLUGIN_HH_
18 #define GAZEBO_PLUGINS_TIMERGUIPLUGIN_HH_
23 #include <ignition/transport/Node.hh>
29 #ifndef Q_MOC_RUN // See: https://bugreports.qt-project.org/browse/QTBUG-22829
30 # include <gazebo/transport/transport.hh>
31 # include <gazebo/gui/gui.hh>
65 public:
void Load(sdf::ElementPtr _elem);
73 signals:
void SetTime(QString _string);
77 signals:
void SetStartStopButton(QString _state);
82 private:
void OnTimerCtrl(ConstGzStringPtr &_msg);
85 private:
void Start();
91 private:
void Reset();
94 private slots:
void OnStartStopButton();
98 private slots:
void OnSetStartStopButton(QString _state);
101 private slots:
void OnResetButton();
104 private:
void PreRender();
110 private:
bool eventFilter(QObject *_obj, QEvent *_event);
122 private: std::vector<event::ConnectionPtr> connections;
125 private: std::mutex timerMutex;
128 private: QPushButton *startStopButton;
131 private: std::string startStyle;
134 private: std::string stopStyle;
137 private: QPushButton *resetButton;
151 private: ignition::transport::Node nodeIgn;
A plugin loaded within the gzclient on startup.
Definition: GuiPlugin.hh:26
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:53
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
A GUI plugin that displays a timer.
Definition: TimerGUIPlugin.hh:54
A timer class, used to time things in real world walltime.
Definition: Timer.hh:38
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:58
A Time class, can be used to hold wall- or sim-time.
Definition: Time.hh:44