30 #ifndef MAPVIZ_PLUGINS_MARKER_PLUGIN_H_ 31 #define MAPVIZ_PLUGINS_MARKER_PLUGIN_H_ 35 #include <unordered_map> 41 #include <QListWidgetItem> 46 #include <visualization_msgs/MarkerArray.h> 51 #include "ui_marker_config.h" 60 boost::hash_combine(seed, p.first);
61 boost::hash_combine(seed, p.second);
69 boost::hash_combine(seed, p);
82 bool Initialize(QGLWidget* canvas);
85 void Draw(
double x,
double y,
double scale);
86 void Paint(QPainter* painter,
double x,
double y,
double scale);
90 void LoadConfig(
const YAML::Node& node,
const std::string& path);
91 void SaveConfig(YAML::Emitter& emitter,
const std::string& path);
93 QWidget* GetConfigWidget(QWidget* parent);
101 void PrintError(
const std::string& message);
102 void PrintInfo(
const std::string& message);
103 void PrintWarning(
const std::string& message);
104 void timerEvent(QTimerEvent *);
162 std::unordered_map<MarkerId, MarkerData, MarkerIdHash>
markers_;
166 void handleMarker(
const visualization_msgs::Marker &marker);
167 void handleMarkerArray(
const visualization_msgs::MarkerArray &markers);
173 #endif // MAPVIZ_PLUGINS_MARKER_PLUGIN_H_
std::pair< std::string, int > MarkerId
tf::Point transformed_arrow_right
std::unordered_map< std::string, bool, MarkerNsHash > marker_visible_
tf::Quaternion orientation
tf::Point transformed_point
ros::Subscriber marker_sub_
tf::Point transformed_arrow_point
tf::Point transformed_arrow_left
std::size_t operator()(const MarkerId &p) const
swri_transform_util::Transform local_transform
std::unordered_map< MarkerId, MarkerData, MarkerIdHash > markers_
std::vector< StampedPoint > points