30 #ifndef MAPVIZ_PLUGINS_TEXTURED_MARKER_PLUGIN_H_ 31 #define MAPVIZ_PLUGINS_TEXTURED_MARKER_PLUGIN_H_ 46 #include <opencv2/core/core.hpp> 51 #include <marti_visualization_msgs/TexturedMarker.h> 52 #include <marti_visualization_msgs/TexturedMarkerArray.h> 58 #include "ui_textured_marker_config.h" 76 void Draw(
double x,
double y,
double scale);
80 void LoadConfig(
const YAML::Node& node,
const std::string& path);
81 void SaveConfig(YAML::Emitter& emitter,
const std::string& path);
86 void MarkerReceived(
const marti_visualization_msgs::TexturedMarkerConstPtr marker);
87 void MarkersReceived(
const marti_visualization_msgs::TexturedMarkerArrayConstPtr markers);
91 void PrintInfo(
const std::string& message);
99 void ProcessMarker(
const marti_visualization_msgs::TexturedMarkerConstPtr marker);
100 void ProcessMarkers(
const marti_visualization_msgs::TexturedMarkerArrayConstPtr markers);
128 Ui::textured_marker_config
ui_;
136 std::map<std::string, std::map<int, MarkerData> >
markers_;
140 void ProcessMarker(
const marti_visualization_msgs::TexturedMarker& marker);
142 void MarkerCallback(
const marti_visualization_msgs::TexturedMarkerConstPtr marker);
145 const marti_visualization_msgs::TexturedMarkerArrayConstPtr markers);
149 #endif // MAPVIZ_PLUGINS_TEXTURED_MARKER_PLUGIN_H_
std::vector< tf::Vector3 > transformed_quad_
void MarkersReceived(const marti_visualization_msgs::TexturedMarkerArrayConstPtr markers)
void PrintInfo(const std::string &message)
void MarkerArrayCallback(const marti_visualization_msgs::TexturedMarkerArrayConstPtr markers)
void ProcessMarkers(const marti_visualization_msgs::TexturedMarkerArrayConstPtr markers)
void LoadConfig(const YAML::Node &node, const std::string &path)
bool Initialize(QGLWidget *canvas)
TFSIMD_FORCE_INLINE const tfScalar & y() const
void PrintError(const std::string &message)
std::map< std::string, std::map< int, MarkerData > > markers_
void MarkerCallback(const marti_visualization_msgs::TexturedMarkerConstPtr marker)
std::vector< tf::Vector3 > quad_
void PrintWarning(const std::string &message)
void MarkerReceived(const marti_visualization_msgs::TexturedMarkerConstPtr marker)
TFSIMD_FORCE_INLINE const tfScalar & x() const
QWidget * GetConfigWidget(QWidget *parent)
virtual ~TexturedMarkerPlugin()
ros::Subscriber marker_sub_
void SaveConfig(YAML::Emitter &emitter, const std::string &path)
std::vector< uint8_t > texture_
void SetAlphaLevel(int alpha)
std::string source_frame_
Q_DECLARE_METATYPE(marti_visualization_msgs::TexturedMarkerConstPtr)
void ProcessMarker(const marti_visualization_msgs::TexturedMarkerConstPtr marker)
Ui::textured_marker_config ui_
void Draw(double x, double y, double scale)