31 #ifndef MAPVIZ_PLUGINS_STRING_PLUGIN_H 32 #define MAPVIZ_PLUGINS_STRING_PLUGIN_H 45 #include <QStaticText> 50 #include <std_msgs/String.h> 51 #include <marti_common_msgs/StringStamped.h> 54 #include "ui_string_config.h" 86 void Draw(
double x,
double y,
double scale);
87 void Paint(QPainter* painter,
double x,
double y,
double scale);
91 void LoadConfig(
const YAML::Node& node,
const std::string& path);
92 void SaveConfig(YAML::Emitter& emitter,
const std::string& path);
104 void PrintInfo(
const std::string& message);
151 #endif //MAPVIZ_PLUGINS_STRING_PLUGIN_H
QWidget * GetConfigWidget(QWidget *parent)
void PrintInfo(const std::string &message)
void stringCallback(const topic_tools::ShapeShifter::ConstPtr &msg)
void PrintError(const std::string &message)
static const char * COLOR_KEY
std::string AnchorToString(Anchor anchor)
bool Initialize(QGLWidget *canvas)
ros::Subscriber string_sub_
void SaveConfig(YAML::Emitter &emitter, const std::string &path)
static const char * ANCHOR_KEY
static const char * TOPIC_KEY
void PaintText(QPainter *painter)
void SetOffsetY(int offset)
void SetUnits(QString units)
void Paint(QPainter *painter, double x, double y, double scale)
static const char * FONT_KEY
static const char * UNITS_KEY
static const char * OFFSET_Y_KEY
void Draw(double x, double y, double scale)
void LoadConfig(const YAML::Node &node, const std::string &path)
std::string UnitsToString(Units units)
static const char * OFFSET_X_KEY
void SetAnchor(QString anchor)
void PrintWarning(const std::string &message)
void SetOffsetX(int offset)