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

#include <marti_nav_path_plugin.h>

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

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)
 
 MartiNavPathPlugin ()
 
void SaveConfig (YAML::Emitter &emitter, const std::string &path)
 
void Shutdown ()
 
void Transform ()
 
- 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 historyChanged ()
 
void selectTopic ()
 
void topicEdited ()
 

Protected Member Functions

void handlePath (const marti_nav_msgs::Path &path)
 
void handlePathPoint (const marti_nav_msgs::PathPoint &pt)
 
void messageCallback (const topic_tools::ShapeShifter::ConstPtr &msg)
 
void PrintError (const std::string &message)
 
void PrintInfo (const std::string &message)
 
void PrintWarning (const std::string &message)
 
void setColorForDirection (const bool in_reverse)
 
- Protected Member Functions inherited from mapviz::MapvizPlugin
 MapvizPlugin ()
 

Private Attributes

QWidget * config_widget_
 
boost::circular_buffer< marti_nav_msgs::Path > items_
 
ros::Subscriber subscriber_
 
std::string topic_
 
Ui::marti_nav_path_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 55 of file marti_nav_path_plugin.h.

Constructor & Destructor Documentation

◆ MartiNavPathPlugin()

mapviz_plugins::MartiNavPathPlugin::MartiNavPathPlugin ( )

Definition at line 52 of file marti_nav_path_plugin.cpp.

Member Function Documentation

◆ Draw()

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

Implements mapviz::MapvizPlugin.

Definition at line 130 of file marti_nav_path_plugin.cpp.

◆ GetConfigWidget()

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

Reimplemented from mapviz::MapvizPlugin.

Definition at line 309 of file marti_nav_path_plugin.cpp.

◆ handlePath()

void mapviz_plugins::MartiNavPathPlugin::handlePath ( const marti_nav_msgs::Path &  path)
protected

Definition at line 415 of file marti_nav_path_plugin.cpp.

◆ handlePathPoint()

void mapviz_plugins::MartiNavPathPlugin::handlePathPoint ( const marti_nav_msgs::PathPoint &  pt)
protected

Definition at line 421 of file marti_nav_path_plugin.cpp.

◆ historyChanged

void mapviz_plugins::MartiNavPathPlugin::historyChanged ( )
protectedslot

Definition at line 93 of file marti_nav_path_plugin.cpp.

◆ Initialize()

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

Implements mapviz::MapvizPlugin.

Definition at line 83 of file marti_nav_path_plugin.cpp.

◆ LoadConfig()

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

Implements mapviz::MapvizPlugin.

Definition at line 217 of file marti_nav_path_plugin.cpp.

◆ messageCallback()

void mapviz_plugins::MartiNavPathPlugin::messageCallback ( const topic_tools::ShapeShifter::ConstPtr msg)
protected

Definition at line 389 of file marti_nav_path_plugin.cpp.

◆ PrintError()

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

Implements mapviz::MapvizPlugin.

Definition at line 344 of file marti_nav_path_plugin.cpp.

◆ PrintInfo()

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

Implements mapviz::MapvizPlugin.

Definition at line 316 of file marti_nav_path_plugin.cpp.

◆ PrintWarning()

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

Implements mapviz::MapvizPlugin.

Definition at line 330 of file marti_nav_path_plugin.cpp.

◆ SaveConfig()

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

Implements mapviz::MapvizPlugin.

Definition at line 283 of file marti_nav_path_plugin.cpp.

◆ selectTopic

void mapviz_plugins::MartiNavPathPlugin::selectTopic ( )
protectedslot

Definition at line 358 of file marti_nav_path_plugin.cpp.

◆ setColorForDirection()

void mapviz_plugins::MartiNavPathPlugin::setColorForDirection ( const bool  in_reverse)
protected

Definition at line 98 of file marti_nav_path_plugin.cpp.

◆ Shutdown()

void mapviz_plugins::MartiNavPathPlugin::Shutdown ( )
virtual

Implements mapviz::MapvizPlugin.

Definition at line 89 of file marti_nav_path_plugin.cpp.

◆ topicEdited

void mapviz_plugins::MartiNavPathPlugin::topicEdited ( )
protectedslot

Definition at line 373 of file marti_nav_path_plugin.cpp.

◆ Transform()

void mapviz_plugins::MartiNavPathPlugin::Transform ( )
virtual

Implements mapviz::MapvizPlugin.

Definition at line 213 of file marti_nav_path_plugin.cpp.

Member Data Documentation

◆ config_widget_

QWidget* mapviz_plugins::MartiNavPathPlugin::config_widget_
private

Definition at line 60 of file marti_nav_path_plugin.h.

◆ items_

boost::circular_buffer<marti_nav_msgs::Path> mapviz_plugins::MartiNavPathPlugin::items_
private

Definition at line 65 of file marti_nav_path_plugin.h.

◆ subscriber_

ros::Subscriber mapviz_plugins::MartiNavPathPlugin::subscriber_
private

Definition at line 63 of file marti_nav_path_plugin.h.

◆ topic_

std::string mapviz_plugins::MartiNavPathPlugin::topic_
private

Definition at line 61 of file marti_nav_path_plugin.h.

◆ ui_

Ui::marti_nav_path_config mapviz_plugins::MartiNavPathPlugin::ui_
private

Definition at line 59 of file marti_nav_path_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