Public Types | Public Member Functions | Protected Slots | Protected Member Functions | Private Member Functions | Private Attributes
mapviz_plugins::RoutePlugin Class Reference

#include <route_plugin.h>

Inheritance diagram for mapviz_plugins::RoutePlugin:
Inheritance graph
[legend]

List of all members.

Public Types

enum  DrawStyle { LINES = 0, POINTS = 1 }

Public Member Functions

void Draw (double x, double y, double scale)
void DrawRoute (const swri_route_util::Route &route)
void DrawRoutePoint (const swri_route_util::RoutePoint &point)
void DrawStopWaypoint (double x, double y)
QWidget * GetConfigWidget (QWidget *parent)
bool Initialize (QGLWidget *canvas)
void LoadConfig (const YAML::Node &node, const std::string &path)
 RoutePlugin ()
void SaveConfig (YAML::Emitter &emitter, const std::string &path)
void Shutdown ()
void Transform ()
virtual ~RoutePlugin ()

Protected Slots

void DrawIcon ()
void PositionTopicEdited ()
void SelectPositionTopic ()
void SelectTopic ()
void SetDrawStyle (QString style)
void TopicEdited ()

Protected Member Functions

void PrintError (const std::string &message)
void PrintInfo (const std::string &message)
void PrintWarning (const std::string &message)

Private Member Functions

void PositionCallback (const marti_nav_msgs::RoutePositionConstPtr &msg)
void RouteCallback (const marti_nav_msgs::RouteConstPtr &msg)

Private Attributes

QWidget * config_widget_
DrawStyle draw_style_
ros::Subscriber position_sub_
std::string position_topic_
ros::Subscriber route_sub_
swri_route_util::Route src_route_
marti_nav_msgs::RoutePositionConstPtr src_route_position_
std::string topic_
Ui::route_config ui_

Detailed Description

Definition at line 57 of file route_plugin.h.


Member Enumeration Documentation

Enumerator:
LINES 
POINTS 

Definition at line 62 of file route_plugin.h.


Constructor & Destructor Documentation

Definition at line 64 of file route_plugin.cpp.

Definition at line 91 of file route_plugin.cpp.


Member Function Documentation

void mapviz_plugins::RoutePlugin::Draw ( double  x,
double  y,
double  scale 
) [virtual]

Implements mapviz::MapvizPlugin.

Definition at line 249 of file route_plugin.cpp.

void mapviz_plugins::RoutePlugin::DrawIcon ( ) [protected, virtual, slot]

Reimplemented from mapviz::MapvizPlugin.

Definition at line 95 of file route_plugin.cpp.

Definition at line 318 of file route_plugin.cpp.

Definition at line 342 of file route_plugin.cpp.

void mapviz_plugins::RoutePlugin::DrawStopWaypoint ( double  x,
double  y 
)

Definition at line 297 of file route_plugin.cpp.

QWidget * mapviz_plugins::RoutePlugin::GetConfigWidget ( QWidget *  parent) [virtual]

Reimplemented from mapviz::MapvizPlugin.

Definition at line 232 of file route_plugin.cpp.

bool mapviz_plugins::RoutePlugin::Initialize ( QGLWidget *  canvas) [virtual]

Implements mapviz::MapvizPlugin.

Definition at line 239 of file route_plugin.cpp.

void mapviz_plugins::RoutePlugin::LoadConfig ( const YAML::Node &  node,
const std::string &  path 
) [virtual]

Implements mapviz::MapvizPlugin.

Definition at line 366 of file route_plugin.cpp.

void mapviz_plugins::RoutePlugin::PositionCallback ( const marti_nav_msgs::RoutePositionConstPtr &  msg) [private]

Definition at line 206 of file route_plugin.cpp.

Definition at line 187 of file route_plugin.cpp.

void mapviz_plugins::RoutePlugin::PrintError ( const std::string &  message) [protected, virtual]

Implements mapviz::MapvizPlugin.

Definition at line 217 of file route_plugin.cpp.

void mapviz_plugins::RoutePlugin::PrintInfo ( const std::string &  message) [protected, virtual]

Implements mapviz::MapvizPlugin.

Definition at line 222 of file route_plugin.cpp.

void mapviz_plugins::RoutePlugin::PrintWarning ( const std::string &  message) [protected, virtual]

Implements mapviz::MapvizPlugin.

Definition at line 227 of file route_plugin.cpp.

Definition at line 212 of file route_plugin.cpp.

void mapviz_plugins::RoutePlugin::SaveConfig ( YAML::Emitter &  emitter,
const std::string &  path 
) [virtual]

Implements mapviz::MapvizPlugin.

Definition at line 414 of file route_plugin.cpp.

Definition at line 153 of file route_plugin.cpp.

void mapviz_plugins::RoutePlugin::SelectTopic ( ) [protected, slot]

Definition at line 139 of file route_plugin.cpp.

void mapviz_plugins::RoutePlugin::SetDrawStyle ( QString  style) [protected, slot]

Definition at line 126 of file route_plugin.cpp.

void mapviz_plugins::RoutePlugin::Shutdown ( ) [inline, virtual]

Implements mapviz::MapvizPlugin.

Definition at line 72 of file route_plugin.h.

void mapviz_plugins::RoutePlugin::TopicEdited ( ) [protected, slot]

Definition at line 167 of file route_plugin.cpp.

void mapviz_plugins::RoutePlugin::Transform ( ) [inline, virtual]

Implements mapviz::MapvizPlugin.

Definition at line 78 of file route_plugin.h.


Member Data Documentation

Definition at line 103 of file route_plugin.h.

Definition at line 105 of file route_plugin.h.

Definition at line 111 of file route_plugin.h.

Definition at line 108 of file route_plugin.h.

Definition at line 110 of file route_plugin.h.

Definition at line 113 of file route_plugin.h.

marti_nav_msgs::RoutePositionConstPtr mapviz_plugins::RoutePlugin::src_route_position_ [private]

Definition at line 114 of file route_plugin.h.

std::string mapviz_plugins::RoutePlugin::topic_ [private]

Definition at line 107 of file route_plugin.h.

Ui::route_config mapviz_plugins::RoutePlugin::ui_ [private]

Definition at line 102 of file route_plugin.h.


The documentation for this class was generated from the following files:


mapviz_plugins
Author(s): Marc Alban
autogenerated on Thu Jun 6 2019 18:51:07