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

#include <marti_nav_plan_plugin.h>

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

Public Types

enum  DrawStyle { STYLE_LINES = 1, STYLE_POINTS = 2 }
 

Public Member Functions

void Draw (double x, double y, double scale)
 
void DrawRoute (const marti_nav_msgs::Plan &route)
 
void DrawRoutePoint (const marti_nav_msgs::PlanPoint &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)
 
 MartiNavPlanPlugin ()
 
void SaveConfig (YAML::Emitter &emitter, const std::string &path)
 
void Shutdown ()
 
void Transform ()
 
virtual ~MartiNavPlanPlugin ()
 
- 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::PlanTrackConstPtr &msg)
 
void RouteCallback (const marti_nav_msgs::PlanConstPtr &msg)
 

Private Attributes

QWidget * config_widget_
 
int draw_style_
 
ros::Subscriber position_sub_
 
std::string position_topic_
 
ros::Subscriber route_sub_
 
marti_nav_msgs::PlanConstPtr src_route_
 
marti_nav_msgs::PlanTrackConstPtr src_route_position_
 
std::string topic_
 
Ui::marti_nav_plan_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 marti_nav_plan_plugin.h.

Member Enumeration Documentation

◆ DrawStyle

Enumerator
STYLE_LINES 
STYLE_POINTS 

Definition at line 62 of file marti_nav_plan_plugin.h.

Constructor & Destructor Documentation

◆ MartiNavPlanPlugin()

mapviz_plugins::MartiNavPlanPlugin::MartiNavPlanPlugin ( )

Definition at line 65 of file marti_nav_plan_plugin.cpp.

◆ ~MartiNavPlanPlugin()

mapviz_plugins::MartiNavPlanPlugin::~MartiNavPlanPlugin ( )
virtual

Definition at line 92 of file marti_nav_plan_plugin.cpp.

Member Function Documentation

◆ Draw()

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

Implements mapviz::MapvizPlugin.

Definition at line 254 of file marti_nav_plan_plugin.cpp.

◆ DrawIcon

void mapviz_plugins::MartiNavPlanPlugin::DrawIcon ( )
protectedslot

Definition at line 96 of file marti_nav_plan_plugin.cpp.

◆ DrawRoute()

void mapviz_plugins::MartiNavPlanPlugin::DrawRoute ( const marti_nav_msgs::Plan &  route)

Definition at line 324 of file marti_nav_plan_plugin.cpp.

◆ DrawRoutePoint()

void mapviz_plugins::MartiNavPlanPlugin::DrawRoutePoint ( const marti_nav_msgs::PlanPoint &  point)

Definition at line 354 of file marti_nav_plan_plugin.cpp.

◆ DrawStopWaypoint()

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

Definition at line 303 of file marti_nav_plan_plugin.cpp.

◆ GetConfigWidget()

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

Reimplemented from mapviz::MapvizPlugin.

Definition at line 237 of file marti_nav_plan_plugin.cpp.

◆ Initialize()

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

Implements mapviz::MapvizPlugin.

Definition at line 244 of file marti_nav_plan_plugin.cpp.

◆ LoadConfig()

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

Implements mapviz::MapvizPlugin.

Definition at line 380 of file marti_nav_plan_plugin.cpp.

◆ PositionCallback()

void mapviz_plugins::MartiNavPlanPlugin::PositionCallback ( const marti_nav_msgs::PlanTrackConstPtr &  msg)
private

Definition at line 211 of file marti_nav_plan_plugin.cpp.

◆ PositionTopicEdited

void mapviz_plugins::MartiNavPlanPlugin::PositionTopicEdited ( )
protectedslot

Definition at line 192 of file marti_nav_plan_plugin.cpp.

◆ PrintError()

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

Implements mapviz::MapvizPlugin.

Definition at line 222 of file marti_nav_plan_plugin.cpp.

◆ PrintInfo()

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

Implements mapviz::MapvizPlugin.

Definition at line 227 of file marti_nav_plan_plugin.cpp.

◆ PrintWarning()

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

Implements mapviz::MapvizPlugin.

Definition at line 232 of file marti_nav_plan_plugin.cpp.

◆ RouteCallback()

void mapviz_plugins::MartiNavPlanPlugin::RouteCallback ( const marti_nav_msgs::PlanConstPtr &  msg)
private

Definition at line 217 of file marti_nav_plan_plugin.cpp.

◆ SaveConfig()

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

Implements mapviz::MapvizPlugin.

Definition at line 433 of file marti_nav_plan_plugin.cpp.

◆ SelectPositionTopic

void mapviz_plugins::MartiNavPlanPlugin::SelectPositionTopic ( )
protectedslot

Definition at line 158 of file marti_nav_plan_plugin.cpp.

◆ SelectTopic

void mapviz_plugins::MartiNavPlanPlugin::SelectTopic ( )
protectedslot

Definition at line 144 of file marti_nav_plan_plugin.cpp.

◆ SetDrawStyle

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

Definition at line 127 of file marti_nav_plan_plugin.cpp.

◆ Shutdown()

void mapviz_plugins::MartiNavPlanPlugin::Shutdown ( )
inlinevirtual

Implements mapviz::MapvizPlugin.

Definition at line 72 of file marti_nav_plan_plugin.h.

◆ TopicEdited

void mapviz_plugins::MartiNavPlanPlugin::TopicEdited ( )
protectedslot

Definition at line 172 of file marti_nav_plan_plugin.cpp.

◆ Transform()

void mapviz_plugins::MartiNavPlanPlugin::Transform ( )
inlinevirtual

Implements mapviz::MapvizPlugin.

Definition at line 78 of file marti_nav_plan_plugin.h.

Member Data Documentation

◆ config_widget_

QWidget* mapviz_plugins::MartiNavPlanPlugin::config_widget_
private

Definition at line 103 of file marti_nav_plan_plugin.h.

◆ draw_style_

int mapviz_plugins::MartiNavPlanPlugin::draw_style_
private

Definition at line 105 of file marti_nav_plan_plugin.h.

◆ position_sub_

ros::Subscriber mapviz_plugins::MartiNavPlanPlugin::position_sub_
private

Definition at line 111 of file marti_nav_plan_plugin.h.

◆ position_topic_

std::string mapviz_plugins::MartiNavPlanPlugin::position_topic_
private

Definition at line 108 of file marti_nav_plan_plugin.h.

◆ route_sub_

ros::Subscriber mapviz_plugins::MartiNavPlanPlugin::route_sub_
private

Definition at line 110 of file marti_nav_plan_plugin.h.

◆ src_route_

marti_nav_msgs::PlanConstPtr mapviz_plugins::MartiNavPlanPlugin::src_route_
private

Definition at line 113 of file marti_nav_plan_plugin.h.

◆ src_route_position_

marti_nav_msgs::PlanTrackConstPtr mapviz_plugins::MartiNavPlanPlugin::src_route_position_
private

Definition at line 114 of file marti_nav_plan_plugin.h.

◆ topic_

std::string mapviz_plugins::MartiNavPlanPlugin::topic_
private

Definition at line 107 of file marti_nav_plan_plugin.h.

◆ ui_

Ui::marti_nav_plan_config mapviz_plugins::MartiNavPlanPlugin::ui_
private

Definition at line 102 of file marti_nav_plan_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