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> 64 public:
void Load(sdf::ElementPtr _elem);
72 signals:
void SetTime(QString _string);
76 signals:
void SetStartStopButton(QString _state);
81 private:
void OnTimerCtrl(ConstGzStringPtr &_msg);
84 private:
void Start();
90 private:
void Reset();
93 private slots:
void OnStartStopButton();
97 private slots:
void OnSetStartStopButton(QString _state);
100 private slots:
void OnResetButton();
103 private:
void PreRender();
109 private:
bool eventFilter(QObject *_obj, QEvent *_event);
121 private: std::vector<event::ConnectionPtr> connections;
124 private: std::mutex timerMutex;
127 private: QPushButton *startStopButton;
130 private: std::string startStyle;
133 private: std::string stopStyle;
136 private: QPushButton *resetButton;
150 private: ignition::transport::Node nodeIgn;
Forward declarations for the common classes.
Definition: Animation.hh:26
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:53
A timer class, used to time things in real world walltime.
Definition: Timer.hh:38
A Time class, can be used to hold wall- or sim-time.
Definition: Time.hh:47