Public Types | Public Member Functions | Protected Slots | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
mapviz_plugins::RoutePlugin Class Reference

#include <route_plugin.h>

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

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 ()
 
- Public Member Functions inherited from mapviz::MapvizPlugin
virtual void ClearHistory ()
 
int DrawOrder () const
 
void DrawPlugin (double x, double y, double scale)
 
bool GetTransform (const ros::Time &stamp, swri_transform_util::Transform &transform, bool use_latest_transforms=true)
 
bool GetTransform (const std::string &source, const ros::Time &stamp, swri_transform_util::Transform &transform)
 
virtual bool Initialize (boost::shared_ptr< tf::TransformListener > tf_listener, swri_transform_util::TransformManagerPtr tf_manager, QGLWidget *canvas)
 
std::string Name () const
 
virtual void Paint (QPainter *painter, double x, double y, double scale)
 
void PaintPlugin (QPainter *painter, double x, double y, double scale)
 
void PrintMeasurements ()
 
void SetDrawOrder (int order)
 
void SetIcon (IconWidget *icon)
 
void SetName (const std::string &name)
 
virtual void SetNode (const ros::NodeHandle &node)
 
void SetTargetFrame (std::string frame_id)
 
void SetType (const std::string &type)
 
void SetUseLatestTransforms (bool value)
 
void SetVisible (bool visible)
 
std::string Type () const
 
bool Visible () const
 
virtual ~MapvizPlugin ()
 

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)
 
- Protected Member Functions inherited from mapviz::MapvizPlugin
 MapvizPlugin ()
 

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_
 

Additional Inherited Members

- Public Slots inherited from mapviz::MapvizPlugin
virtual void DrawIcon ()
 
virtual bool SupportsPainting ()
 
- Signals inherited from mapviz::MapvizPlugin
void DrawOrderChanged (int draw_order)
 
void SizeChanged ()
 
void TargetFrameChanged (const std::string &target_frame)
 
void UseLatestTransformsChanged (bool use_latest_transforms)
 
void VisibleChanged (bool visible)
 
- Static Public Member Functions inherited from mapviz::MapvizPlugin
static void PrintErrorHelper (QLabel *status_label, const std::string &message, double throttle=0.0)
 
static void PrintInfoHelper (QLabel *status_label, const std::string &message, double throttle=0.0)
 
static void PrintWarningHelper (QLabel *status_label, const std::string &message, double throttle=0.0)
 
- Protected Attributes inherited from mapviz::MapvizPlugin
QGLWidget * canvas_
 
int draw_order_
 
IconWidgeticon_
 
bool initialized_
 
std::string name_
 
ros::NodeHandle node_
 
std::string source_frame_
 
std::string target_frame_
 
boost::shared_ptr< tf::TransformListenertf_
 
swri_transform_util::TransformManagerPtr tf_manager_
 
std::string type_
 
bool use_latest_transforms_
 
bool visible_
 

Detailed Description

Definition at line 57 of file route_plugin.h.

Member Enumeration Documentation

◆ DrawStyle

Enumerator
LINES 
POINTS 

Definition at line 62 of file route_plugin.h.

Constructor & Destructor Documentation

◆ RoutePlugin()

mapviz_plugins::RoutePlugin::RoutePlugin ( )

Definition at line 64 of file route_plugin.cpp.

◆ ~RoutePlugin()

mapviz_plugins::RoutePlugin::~RoutePlugin ( )
virtual

Definition at line 91 of file route_plugin.cpp.

Member Function Documentation

◆ Draw()

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

Implements mapviz::MapvizPlugin.

Definition at line 249 of file route_plugin.cpp.

◆ DrawIcon

void mapviz_plugins::RoutePlugin::DrawIcon ( )
protectedslot

Definition at line 95 of file route_plugin.cpp.

◆ DrawRoute()

void mapviz_plugins::RoutePlugin::DrawRoute ( const swri_route_util::Route route)

Definition at line 318 of file route_plugin.cpp.

◆ DrawRoutePoint()

void mapviz_plugins::RoutePlugin::DrawRoutePoint ( const swri_route_util::RoutePoint point)

Definition at line 342 of file route_plugin.cpp.

◆ DrawStopWaypoint()

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

Definition at line 297 of file route_plugin.cpp.

◆ GetConfigWidget()

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

Reimplemented from mapviz::MapvizPlugin.

Definition at line 232 of file route_plugin.cpp.

◆ Initialize()

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

Implements mapviz::MapvizPlugin.

Definition at line 239 of file route_plugin.cpp.

◆ LoadConfig()

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.

◆ PositionCallback()

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

Definition at line 206 of file route_plugin.cpp.

◆ PositionTopicEdited

void mapviz_plugins::RoutePlugin::PositionTopicEdited ( )
protectedslot

Definition at line 187 of file route_plugin.cpp.

◆ PrintError()

void mapviz_plugins::RoutePlugin::PrintError ( const std::string &  message)
protectedvirtual

Implements mapviz::MapvizPlugin.

Definition at line 217 of file route_plugin.cpp.

◆ PrintInfo()

void mapviz_plugins::RoutePlugin::PrintInfo ( const std::string &  message)
protectedvirtual

Implements mapviz::MapvizPlugin.

Definition at line 222 of file route_plugin.cpp.

◆ PrintWarning()

void mapviz_plugins::RoutePlugin::PrintWarning ( const std::string &  message)
protectedvirtual

Implements mapviz::MapvizPlugin.

Definition at line 227 of file route_plugin.cpp.

◆ RouteCallback()

void mapviz_plugins::RoutePlugin::RouteCallback ( const marti_nav_msgs::RouteConstPtr msg)
private

Definition at line 212 of file route_plugin.cpp.

◆ SaveConfig()

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.

◆ SelectPositionTopic

void mapviz_plugins::RoutePlugin::SelectPositionTopic ( )
protectedslot

Definition at line 153 of file route_plugin.cpp.

◆ SelectTopic

void mapviz_plugins::RoutePlugin::SelectTopic ( )
protectedslot

Definition at line 139 of file route_plugin.cpp.

◆ SetDrawStyle

void mapviz_plugins::RoutePlugin::SetDrawStyle ( QString  style)
protectedslot

Definition at line 126 of file route_plugin.cpp.

◆ Shutdown()

void mapviz_plugins::RoutePlugin::Shutdown ( )
inlinevirtual

Implements mapviz::MapvizPlugin.

Definition at line 72 of file route_plugin.h.

◆ TopicEdited

void mapviz_plugins::RoutePlugin::TopicEdited ( )
protectedslot

Definition at line 167 of file route_plugin.cpp.

◆ Transform()

void mapviz_plugins::RoutePlugin::Transform ( )
inlinevirtual

Implements mapviz::MapvizPlugin.

Definition at line 78 of file route_plugin.h.

Member Data Documentation

◆ config_widget_

QWidget* mapviz_plugins::RoutePlugin::config_widget_
private

Definition at line 103 of file route_plugin.h.

◆ draw_style_

DrawStyle mapviz_plugins::RoutePlugin::draw_style_
private

Definition at line 105 of file route_plugin.h.

◆ position_sub_

ros::Subscriber mapviz_plugins::RoutePlugin::position_sub_
private

Definition at line 111 of file route_plugin.h.

◆ position_topic_

std::string mapviz_plugins::RoutePlugin::position_topic_
private

Definition at line 108 of file route_plugin.h.

◆ route_sub_

ros::Subscriber mapviz_plugins::RoutePlugin::route_sub_
private

Definition at line 110 of file route_plugin.h.

◆ src_route_

swri_route_util::Route mapviz_plugins::RoutePlugin::src_route_
private

Definition at line 113 of file route_plugin.h.

◆ src_route_position_

marti_nav_msgs::RoutePositionConstPtr mapviz_plugins::RoutePlugin::src_route_position_
private

Definition at line 114 of file route_plugin.h.

◆ topic_

std::string mapviz_plugins::RoutePlugin::topic_
private

Definition at line 107 of file route_plugin.h.

◆ ui_

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 Fri Dec 16 2022 03:59:34