pose_array_plugin.h
Go to the documentation of this file.
1 
31 #ifndef MAPVIZ_PLUGINS_POSE_ARRAY_PLUGIN_H_
32 #define MAPVIZ_PLUGINS_POSE_ARRAY_PLUGIN_H_
33 
34 // Include mapviz_plugin.h first to ensure GL deps are included in the right order
35 #include <mapviz/mapviz_plugin.h>
36 #include <mapviz/map_canvas.h>
39 
40 // QT libraries
41 #include <QGLWidget>
42 #include <QObject>
43 #include <QWidget>
44 
45 // ROS libraries
46 #include <ros/ros.h>
47 #include <tf/transform_datatypes.h>
48 #include <geometry_msgs/PoseArray.h>
49 #include <geometry_msgs/PoseStamped.h>
51 
52 
53 // QT autogenerated files
54 #include "ui_pose_array_config.h"
55 
56 namespace mapviz_plugins
57 {
59  {
60  Q_OBJECT
61 
62  public:
64  virtual ~PoseArrayPlugin();
65 
66  bool Initialize(QGLWidget* canvas);
67  void Shutdown()
68  {
69  }
70 
71  void Draw(double x, double y, double scale);
72 
73  void LoadConfig(const YAML::Node& node, const std::string& path);
74  void SaveConfig(YAML::Emitter& emitter, const std::string& path);
75 
76  QWidget* GetConfigWidget(QWidget* parent);
77 
78  protected:
79  void PrintError(const std::string& message);
80  void PrintInfo(const std::string& message);
81  void PrintWarning(const std::string& message);
82 
83  protected Q_SLOTS:
84  void SelectTopic();
85  void TopicEdited();
86 
87  private:
88  Ui::pose_array_config ui_;
89  QWidget* config_widget_;
90 
91  std::string topic_;
92 
95 
96  void PoseArrayCallback(const geometry_msgs::PoseArrayConstPtr& msg);
97  };
98 }
99 
100 #endif // MAPVIZ_PLUGINS_POSE_ARRAY_PLUGIN_H_
point_drawing_plugin.h
select_topic_dialog.h
mapviz_plugins::PoseArrayPlugin::PrintInfo
void PrintInfo(const std::string &message)
Definition: pose_array_plugin.cpp:145
mapviz_plugins::PoseArrayPlugin::SelectTopic
void SelectTopic()
Definition: pose_array_plugin.cpp:75
mapviz_plugins::PoseArrayPlugin::PoseArrayPlugin
PoseArrayPlugin()
Definition: pose_array_plugin.cpp:39
mapviz_plugins::PointDrawingPlugin
Definition: point_drawing_plugin.h:51
ros.h
mapviz_plugins::PoseArrayPlugin::TopicEdited
void TopicEdited()
Definition: pose_array_plugin.cpp:87
mapviz_plugins::PoseArrayPlugin::Shutdown
void Shutdown()
Definition: pose_array_plugin.h:67
mapviz_plugins::PoseArrayPlugin::PoseArrayCallback
void PoseArrayCallback(const geometry_msgs::PoseArrayConstPtr &msg)
Definition: pose_array_plugin.cpp:109
local_xy_util.h
mapviz_plugins::PoseArrayPlugin
Definition: pose_array_plugin.h:58
mapviz_plugins::PoseArrayPlugin::PrintWarning
void PrintWarning(const std::string &message)
Definition: pose_array_plugin.cpp:150
mapviz_plugins::PoseArrayPlugin::GetConfigWidget
QWidget * GetConfigWidget(QWidget *parent)
Definition: pose_array_plugin.cpp:155
mapviz_plugins::PoseArrayPlugin::topic_
std::string topic_
Definition: pose_array_plugin.h:91
mapviz_plugins::PoseArrayPlugin::pose_sub_
ros::Subscriber pose_sub_
Definition: pose_array_plugin.h:93
mapviz_plugins::PoseArrayPlugin::has_message_
bool has_message_
Definition: pose_array_plugin.h:94
mapviz_plugins::PoseArrayPlugin::PrintError
void PrintError(const std::string &message)
Definition: pose_array_plugin.cpp:140
transform_datatypes.h
mapviz_plugins::PoseArrayPlugin::LoadConfig
void LoadConfig(const YAML::Node &node, const std::string &path)
Definition: pose_array_plugin.cpp:178
mapviz_plugins::PoseArrayPlugin::SaveConfig
void SaveConfig(YAML::Emitter &emitter, const std::string &path)
Definition: pose_array_plugin.cpp:238
mapviz_plugins::PoseArrayPlugin::config_widget_
QWidget * config_widget_
Definition: pose_array_plugin.h:89
mapviz_plugins::PoseArrayPlugin::~PoseArrayPlugin
virtual ~PoseArrayPlugin()
Definition: pose_array_plugin.cpp:71
mapviz_plugins::PoseArrayPlugin::ui_
Ui::pose_array_config ui_
Definition: pose_array_plugin.h:88
mapviz_plugins::PoseArrayPlugin::Draw
void Draw(double x, double y, double scale)
Definition: pose_array_plugin.cpp:170
mapviz_plugins::PoseArrayPlugin::Initialize
bool Initialize(QGLWidget *canvas)
Definition: pose_array_plugin.cpp:162
mapviz_plugins
Definition: attitude_indicator_plugin.h:61
map_canvas.h
ros::Subscriber
mapviz_plugin.h


mapviz_plugins
Author(s): Marc Alban
autogenerated on Sun Sep 8 2024 02:27:14