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_marker_config.h" 78 void Draw(
double x,
double y,
double scale);
82 void LoadConfig(
const YAML::Node& node,
const std::string& path);
83 void SaveConfig(YAML::Emitter& emitter,
const std::string& path);
88 void MarkerReceived(
const marti_visualization_msgs::TexturedMarkerConstPtr marker);
89 void MarkersReceived(
const marti_visualization_msgs::TexturedMarkerArrayConstPtr markers);
93 void PrintInfo(
const std::string& message);
99 void ProcessMarker(
const marti_visualization_msgs::TexturedMarkerConstPtr marker);
100 void ProcessMarkers(
const marti_visualization_msgs::TexturedMarkerArrayConstPtr markers);
134 std::map<std::string, std::map<int, MarkerData> >
markers_;
138 void ProcessMarker(
const marti_visualization_msgs::TexturedMarker& marker);
140 void MarkerCallback(
const marti_visualization_msgs::TexturedMarkerConstPtr marker);
143 const marti_visualization_msgs::TexturedMarkerArrayConstPtr markers);
147 #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_
std::string source_frame_
Q_DECLARE_METATYPE(marti_visualization_msgs::TexturedMarkerConstPtr)
void ProcessMarker(const marti_visualization_msgs::TexturedMarkerConstPtr marker)
void Draw(double x, double y, double scale)