pose_plugin.h
Go to the documentation of this file.
1 
31 #ifndef MAPVIZ_PLUGINS_POSE_PLUGIN_H_
32 #define MAPVIZ_PLUGINS_POSE_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 
37 #include <mapviz/map_canvas.h>
39 
40 // C++ standard libraries
41 #include <list>
42 #include <string>
43 #include <vector>
44 
45 // QT libraries
46 #include <QGLWidget>
47 #include <QObject>
48 #include <QWidget>
49 
50 // ROS libraries
51 #include <ros/ros.h>
52 #include <tf/transform_datatypes.h>
53 #include <geometry_msgs/PoseStamped.h>
55 
56 // QT autogenerated files
57 #include "ui_pose_config.h"
58 
59 namespace mapviz_plugins
60 {
62  {
63  Q_OBJECT
64 
65  public:
66  PosePlugin();
67  virtual ~PosePlugin();
68 
69  bool Initialize(QGLWidget* canvas);
70  void Shutdown()
71  {
72  }
73 
74  void Draw(double x, double y, double scale);
75 
76  void LoadConfig(const YAML::Node& node, const std::string& path);
77  void SaveConfig(YAML::Emitter& emitter, const std::string& path);
78 
79  QWidget* GetConfigWidget(QWidget* parent);
80 
81  protected:
82  void PrintError(const std::string& message);
83  void PrintInfo(const std::string& message);
84  void PrintWarning(const std::string& message);
85 
86  protected Q_SLOTS:
87  void SelectTopic();
88  void TopicEdited();
89 
90  private:
91  Ui::pose_config ui_;
92  QWidget* config_widget_;
93 
94  std::string topic_;
95 
98 
99  void PoseCallback(const geometry_msgs::PoseStampedConstPtr& pose);
100  };
101 }
102 
103 #endif // MAPVIZ_PLUGINS_POSE_PLUGIN_H_
point_drawing_plugin.h
mapviz_plugins::PosePlugin::PosePlugin
PosePlugin()
Definition: pose_plugin.cpp:57
mapviz_plugins::PointDrawingPlugin
Definition: point_drawing_plugin.h:51
ros.h
mapviz_plugins::PosePlugin::config_widget_
QWidget * config_widget_
Definition: pose_plugin.h:92
mapviz_plugins::PosePlugin::SelectTopic
void SelectTopic()
Definition: pose_plugin.cpp:101
mapviz_plugins::PosePlugin::PrintWarning
void PrintWarning(const std::string &message)
Definition: pose_plugin.cpp:175
mapviz_plugins::PosePlugin::GetConfigWidget
QWidget * GetConfigWidget(QWidget *parent)
Definition: pose_plugin.cpp:180
mapviz_plugins::PosePlugin::TopicEdited
void TopicEdited()
Definition: pose_plugin.cpp:113
local_xy_util.h
mapviz_plugins::PosePlugin::pose_sub_
ros::Subscriber pose_sub_
Definition: pose_plugin.h:96
mapviz_plugins::PosePlugin::Draw
void Draw(double x, double y, double scale)
Definition: pose_plugin.cpp:195
mapviz_plugins::PosePlugin
Definition: pose_plugin.h:61
mapviz_plugins::PosePlugin::PrintError
void PrintError(const std::string &message)
Definition: pose_plugin.cpp:165
mapviz_plugins::PosePlugin::SaveConfig
void SaveConfig(YAML::Emitter &emitter, const std::string &path)
Definition: pose_plugin.cpp:291
mapviz_plugins::PosePlugin::Initialize
bool Initialize(QGLWidget *canvas)
Definition: pose_plugin.cpp:187
mapviz_plugins::PosePlugin::~PosePlugin
virtual ~PosePlugin()
Definition: pose_plugin.cpp:97
transform_datatypes.h
mapviz_plugins::PosePlugin::Shutdown
void Shutdown()
Definition: pose_plugin.h:70
mapviz_plugins::PosePlugin::has_message_
bool has_message_
Definition: pose_plugin.h:97
mapviz_plugins::PosePlugin::topic_
std::string topic_
Definition: pose_plugin.h:94
mapviz_plugins::PosePlugin::PoseCallback
void PoseCallback(const geometry_msgs::PoseStampedConstPtr &pose)
Definition: pose_plugin.cpp:135
mapviz_plugins::PosePlugin::PrintInfo
void PrintInfo(const std::string &message)
Definition: pose_plugin.cpp:170
mapviz_plugins::PosePlugin::LoadConfig
void LoadConfig(const YAML::Node &node, const std::string &path)
Definition: pose_plugin.cpp:203
mapviz_plugins::PosePlugin::ui_
Ui::pose_config ui_
Definition: pose_plugin.h:91
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