Go to the documentation of this file.
18 #ifndef GZ_GUI_PLUGINS_WORLDSTATS_HH_
19 #define GZ_GUI_PLUGINS_WORLDSTATS_HH_
24 #pragma warning(push, 0)
30 #include <gz/transport.hh>
32 #include "gz/gui/Export.hh"
36 # define WorldStats_EXPORTS_API
38 # if (defined(WorldStats_EXPORTS))
39 # define WorldStats_EXPORTS_API __declspec(dllexport)
41 # define WorldStats_EXPORTS_API __declspec(dllimport)
51 class WorldStatsPrivate;
81 WRITE SetRealTimeFactor
82 NOTIFY RealTimeFactorChanged
98 NOTIFY RealTimeChanged
106 NOTIFY IterationsChanged
116 public:
void LoadConfig(const
tinyxml2::XMLElement *_pluginElem);
119 public slots:
void ProcessMsg();
123 public: Q_INVOKABLE
QString RealTimeFactor() const;
127 public: Q_INVOKABLE
void SetRealTimeFactor(const
QString &_realTimeFactor);
130 signals:
void RealTimeFactorChanged();
134 public: Q_INVOKABLE
QString SimTime() const;
138 public: Q_INVOKABLE
void SetSimTime(const
QString &_simTime);
141 signals:
void SimTimeChanged();
145 public: Q_INVOKABLE
QString RealTime() const;
149 public: Q_INVOKABLE
void SetRealTime(const
QString &_realTime);
152 signals:
void RealTimeChanged();
156 public: Q_INVOKABLE
QString Iterations() const;
160 public: Q_INVOKABLE
void SetIterations(const
QString &_iterations);
163 signals:
void IterationsChanged();
166 private:
void OnWorldStatsMsg(const
gz::msgs::WorldStatistics &_msg);
169 private:
std::unique_ptr<WorldStatsPrivate> dataPtr;
This plugin provides a time panel which may display:
Definition: WorldStats.hh:73
#define WorldStats_EXPORTS_API
Definition: WorldStats.hh:36
Base class for Gazebo GUI plugins.
Definition: gz/gui/Plugin.hh:54
Definition: gz/gui/Application.hh:35