my_plugin.h
Go to the documentation of this file.
1 #ifndef rqt_gauges_my_plugin_H
2 #define rqt_gauges_my_plugin_H
3 
4 #include <QWidget>
5 #include <ros/ros.h>
6 #include <rqt_gui_cpp/plugin.h>
7 #include <ui_my_plugin.h> // This is autogenerated by Qt
9 #include <std_msgs/Float64.h>
10 
11 namespace rqt_gauges {
12 
13 class MyPlugin
14  : public rqt_gui_cpp::Plugin
15 {
16  Q_OBJECT
17 public:
18  MyPlugin();
19  virtual void initPlugin(qt_gui_cpp::PluginContext& context);
20  void newDataCallback(const std_msgs::Float64& msg);
21  virtual void restoreSettings(const qt_gui_cpp::Settings& plugin_settings, const qt_gui_cpp::Settings& instance_settings);
22  virtual void saveSettings(qt_gui_cpp::Settings& plugin_settings, qt_gui_cpp::Settings& instance_settings) const;
23  virtual void shutdownPlugin();
24 
25  // Comment in to signal that the plugin has a way to configure it
26  // bool hasConfiguration() const;
27  // void triggerConfiguration();
28 private:
29  Ui::Gauge ui_;
30  QWidget* widget_;
34 };
35 } // namespace rqt_gauges
36 #endif // rqt_gauges_my_plugin_H
virtual void initPlugin(qt_gui_cpp::PluginContext &context)
Definition: my_plugin.cpp:26
QcNeedleItem * mSpeedNeedle_
Definition: my_plugin.h:32
ros::Subscriber needleSub_
Definition: my_plugin.h:33
virtual void saveSettings(qt_gui_cpp::Settings &plugin_settings, qt_gui_cpp::Settings &instance_settings) const
Definition: my_plugin.cpp:127
virtual void restoreSettings(const qt_gui_cpp::Settings &plugin_settings, const qt_gui_cpp::Settings &instance_settings)
Definition: my_plugin.cpp:133
QWidget * widget_
Definition: my_plugin.h:30
QcGaugeWidget * mSpeedGauge_
Definition: my_plugin.h:31
virtual void shutdownPlugin()
Definition: my_plugin.cpp:122
void newDataCallback(const std_msgs::Float64 &msg)
Definition: my_plugin.cpp:12


gauges
Author(s):
autogenerated on Sat Apr 11 2020 03:54:59