17#ifndef GAZEBO_PLUGINS_TIMERGUIPLUGIN_HH_
18#define GAZEBO_PLUGINS_TIMERGUIPLUGIN_HH_
23#include <ignition/transport/Node.hh>
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;
A plugin loaded within the gzclient on startup.
Definition GuiPlugin.hh:27
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.
virtual ~TimerGUIPlugin()
Destructor.
void SetTime(QString _string)
A signal used to set the sim time line edit.
TimerGUIPlugin()
Constructor.
void Load(sdf::ElementPtr _elem)
Load function.
common::Time GetCurrentTime() const
Get the current time listed in the timer.
A Time class, can be used to hold wall- or sim-time.
Definition Time.hh:48
A timer class, used to time things in real world walltime.
Definition Timer.hh:39
boost::shared_ptr< Subscriber > SubscriberPtr
Definition TransportTypes.hh:53
boost::shared_ptr< Node > NodePtr
Definition TransportTypes.hh:57
Forward declarations for the common classes.
Definition Animation.hh:27