Go to the documentation of this file.
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);
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;
common::Time GetCurrentTime() const
Get the current time listed in the timer.
A plugin loaded within the gzclient on startup.
Definition: GuiPlugin.hh:27
Forward declarations for the common classes.
Definition: Animation.hh:27
virtual ~TimerGUIPlugin()
Destructor.
A Time class, can be used to hold wall- or sim-time. stored as sec and nano-sec.
Definition: Time.hh:48
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:53
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
TimerGUIPlugin()
Constructor.
A timer class, used to time things in real world walltime.
Definition: Timer.hh:39
A GUI plugin that displays a timer.
Definition: TimerGUIPlugin.hh:54
void SetStartStopButton(QString _state)
A signal used to set the style of the start/stop button.
void Load(sdf::ElementPtr _elem)
Load function.
void SetTime(QString _string)
A signal used to set the sim time line edit.
#define GAZEBO_VISIBLE
Definition: system.hh:59