Go to the documentation of this file.
18 #ifndef GZ_GUI_PLUGINS_TOPICECHO_HH_
19 #define GZ_GUI_PLUGINS_TOPICECHO_HH_
22 #pragma warning(push, 0)
24 #include <google/protobuf/message.h>
30 # define TopicEcho_EXPORTS_API
32 # if (defined(TopicEcho_EXPORTS))
33 # define TopicEcho_EXPORTS_API __declspec(dllexport)
35 # define TopicEcho_EXPORTS_API __declspec(dllimport)
49 class TopicEchoPrivate;
82 public: virtual
void LoadConfig(const
tinyxml2::XMLElement *_pluginElem);
87 public: Q_INVOKABLE
QString Topic() const;
92 public: Q_INVOKABLE
void SetTopic(const
QString &_topic);
95 signals:
void TopicChanged();
97 public slots:
void OnBuffer(const
unsigned int _steps);
101 public: Q_INVOKABLE
bool Paused() const;
105 public: Q_INVOKABLE
void SetPaused(const
bool &_paused);
108 signals:
void PausedChanged();
112 signals:
void AddMsg(
QString _msg);
116 private:
void OnMessage(const
google::protobuf::Message &_msg);
119 private:
void Stop();
122 public slots:
void OnEcho(const
bool _checked);
126 private slots:
void OnAddMsg(
QString _msg);
130 private:
std::unique_ptr<TopicEchoPrivate> dataPtr;
#define TopicEcho_EXPORTS_API
Definition: TopicEcho.hh:30
Base class for Gazebo GUI plugins.
Definition: gz/gui/Plugin.hh:54
Definition: gz/gui/Application.hh:35
Echo messages coming through an Gazebo transport topic.
Definition: TopicEcho.hh:55