#include <marker_plugin.h>
Classes | |
struct | MarkerData |
struct | StampedPoint |
Public Member Functions | |
void | Draw (double x, double y, double scale) |
QWidget * | GetConfigWidget (QWidget *parent) |
bool | Initialize (QGLWidget *canvas) |
void | LoadConfig (const YAML::Node &node, const std::string &path) |
MarkerPlugin () | |
void | Paint (QPainter *painter, double x, double y, double scale) |
void | SaveConfig (YAML::Emitter &emitter, const std::string &path) |
void | Shutdown () |
bool | SupportsPainting () |
void | Transform () |
virtual | ~MarkerPlugin () |
Protected Slots | |
void | SelectTopic () |
void | TopicEdited () |
Protected Member Functions | |
void | PrintError (const std::string &message) |
void | PrintInfo (const std::string &message) |
void | PrintWarning (const std::string &message) |
void | timerEvent (QTimerEvent *) |
Private Member Functions | |
void | handleMarker (const visualization_msgs::Marker &marker) |
void | handleMarkerArray (const visualization_msgs::MarkerArray &markers) |
void | handleMessage (const topic_tools::ShapeShifter::ConstPtr &msg) |
void | transformArrow (MarkerData &markerData, const swri_transform_util::Transform &transform) |
Private Attributes | |
QWidget * | config_widget_ |
bool | connected_ |
bool | has_message_ |
ros::Subscriber | marker_sub_ |
std::map< std::string, std::map< int, MarkerData > > | markers_ |
std::string | topic_ |
Ui::marker_config | ui_ |
Definition at line 62 of file marker_plugin.h.
virtual mapviz_plugins::MarkerPlugin::~MarkerPlugin | ( | ) | [virtual] |
void mapviz_plugins::MarkerPlugin::Draw | ( | double | x, |
double | y, | ||
double | scale | ||
) | [virtual] |
Implements mapviz::MapvizPlugin.
QWidget* mapviz_plugins::MarkerPlugin::GetConfigWidget | ( | QWidget * | parent | ) | [virtual] |
Reimplemented from mapviz::MapvizPlugin.
void mapviz_plugins::MarkerPlugin::handleMarker | ( | const visualization_msgs::Marker & | marker | ) | [private] |
void mapviz_plugins::MarkerPlugin::handleMarkerArray | ( | const visualization_msgs::MarkerArray & | markers | ) | [private] |
void mapviz_plugins::MarkerPlugin::handleMessage | ( | const topic_tools::ShapeShifter::ConstPtr & | msg | ) | [private] |
bool mapviz_plugins::MarkerPlugin::Initialize | ( | QGLWidget * | canvas | ) | [virtual] |
Implements mapviz::MapvizPlugin.
void mapviz_plugins::MarkerPlugin::LoadConfig | ( | const YAML::Node & | node, |
const std::string & | path | ||
) | [virtual] |
Implements mapviz::MapvizPlugin.
void mapviz_plugins::MarkerPlugin::Paint | ( | QPainter * | painter, |
double | x, | ||
double | y, | ||
double | scale | ||
) | [virtual] |
Reimplemented from mapviz::MapvizPlugin.
void mapviz_plugins::MarkerPlugin::PrintError | ( | const std::string & | message | ) | [protected, virtual] |
Implements mapviz::MapvizPlugin.
void mapviz_plugins::MarkerPlugin::PrintInfo | ( | const std::string & | message | ) | [protected, virtual] |
Implements mapviz::MapvizPlugin.
void mapviz_plugins::MarkerPlugin::PrintWarning | ( | const std::string & | message | ) | [protected, virtual] |
Implements mapviz::MapvizPlugin.
void mapviz_plugins::MarkerPlugin::SaveConfig | ( | YAML::Emitter & | emitter, |
const std::string & | path | ||
) | [virtual] |
Implements mapviz::MapvizPlugin.
void mapviz_plugins::MarkerPlugin::SelectTopic | ( | ) | [protected, slot] |
void mapviz_plugins::MarkerPlugin::Shutdown | ( | ) | [inline, virtual] |
Implements mapviz::MapvizPlugin.
Definition at line 71 of file marker_plugin.h.
bool mapviz_plugins::MarkerPlugin::SupportsPainting | ( | ) | [inline, virtual] |
Reimplemented from mapviz::MapvizPlugin.
Definition at line 83 of file marker_plugin.h.
void mapviz_plugins::MarkerPlugin::timerEvent | ( | QTimerEvent * | ) | [protected] |
void mapviz_plugins::MarkerPlugin::TopicEdited | ( | ) | [protected, slot] |
void mapviz_plugins::MarkerPlugin::Transform | ( | ) | [virtual] |
Implements mapviz::MapvizPlugin.
void mapviz_plugins::MarkerPlugin::transformArrow | ( | MarkerData & | markerData, |
const swri_transform_util::Transform & | transform | ||
) | [private] |
QWidget* mapviz_plugins::MarkerPlugin::config_widget_ [private] |
Definition at line 136 of file marker_plugin.h.
bool mapviz_plugins::MarkerPlugin::connected_ [private] |
Definition at line 141 of file marker_plugin.h.
bool mapviz_plugins::MarkerPlugin::has_message_ [private] |
Definition at line 142 of file marker_plugin.h.
Definition at line 140 of file marker_plugin.h.
std::map<std::string, std::map<int, MarkerData> > mapviz_plugins::MarkerPlugin::markers_ [private] |
Definition at line 144 of file marker_plugin.h.
std::string mapviz_plugins::MarkerPlugin::topic_ [private] |
Definition at line 138 of file marker_plugin.h.
Ui::marker_config mapviz_plugins::MarkerPlugin::ui_ [private] |
Definition at line 135 of file marker_plugin.h.