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

#include <plan_route_plugin.h>

Inheritance diagram for mapviz_plugins::PlanRoutePlugin:
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)
 
void Paint (QPainter *painter, double x, double y, double scale)
 
 PlanRoutePlugin ()
 
void SaveConfig (YAML::Emitter &emitter, const std::string &path)
 
void Shutdown ()
 
bool SupportsPainting ()
 
void Transform ()
 
virtual ~PlanRoutePlugin ()
 
- 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
 
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 Clear ()
 
void PlanRoute ()
 
void PublishRoute ()
 
void VisibilityChanged (bool)
 

Protected Member Functions

bool eventFilter (QObject *object, QEvent *event)
 
bool handleMouseMove (QMouseEvent *)
 
bool handleMousePress (QMouseEvent *)
 
bool handleMouseRelease (QMouseEvent *)
 
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 Retry (const ros::TimerEvent &e)
 

Private Attributes

QWidget * config_widget_
 
bool failed_service_
 
bool is_mouse_down_
 
mapviz::MapCanvasmap_canvas_
 
qreal max_distance_
 
qint64 max_ms_
 
QPointF mouse_down_pos_
 
qint64 mouse_down_time_
 
ros::Timer retry_timer_
 
swri_route_util::RoutePtr route_preview_
 
ros::Publisher route_pub_
 
std::string route_topic_
 
int selected_point_
 
Ui::plan_route_config ui_
 
std::vector< geometry_msgs::Posewaypoints_
 

Additional Inherited Members

- Public Slots inherited from mapviz::MapvizPlugin
virtual void DrawIcon ()
 
- 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 61 of file plan_route_plugin.h.

Constructor & Destructor Documentation

◆ PlanRoutePlugin()

mapviz_plugins::PlanRoutePlugin::PlanRoutePlugin ( )

Definition at line 65 of file plan_route_plugin.cpp.

◆ ~PlanRoutePlugin()

mapviz_plugins::PlanRoutePlugin::~PlanRoutePlugin ( )
virtual

Definition at line 97 of file plan_route_plugin.cpp.

Member Function Documentation

◆ Clear

void mapviz_plugins::PlanRoutePlugin::Clear ( )
protectedslot

Definition at line 175 of file plan_route_plugin.cpp.

◆ Draw()

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

Implements mapviz::MapvizPlugin.

Definition at line 375 of file plan_route_plugin.cpp.

◆ eventFilter()

bool mapviz_plugins::PlanRoutePlugin::eventFilter ( QObject *  object,
QEvent *  event 
)
protected

Definition at line 214 of file plan_route_plugin.cpp.

◆ GetConfigWidget()

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

Reimplemented from mapviz::MapvizPlugin.

Definition at line 196 of file plan_route_plugin.cpp.

◆ handleMouseMove()

bool mapviz_plugins::PlanRoutePlugin::handleMouseMove ( QMouseEvent *  event)
protected

Definition at line 350 of file plan_route_plugin.cpp.

◆ handleMousePress()

bool mapviz_plugins::PlanRoutePlugin::handleMousePress ( QMouseEvent *  event)
protected

Definition at line 229 of file plan_route_plugin.cpp.

◆ handleMouseRelease()

bool mapviz_plugins::PlanRoutePlugin::handleMouseRelease ( QMouseEvent *  event)
protected

Definition at line 295 of file plan_route_plugin.cpp.

◆ Initialize()

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

Implements mapviz::MapvizPlugin.

Definition at line 203 of file plan_route_plugin.cpp.

◆ LoadConfig()

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

Implements mapviz::MapvizPlugin.

Definition at line 449 of file plan_route_plugin.cpp.

◆ Paint()

void mapviz_plugins::PlanRoutePlugin::Paint ( QPainter *  painter,
double  x,
double  y,
double  scale 
)
virtual

Reimplemented from mapviz::MapvizPlugin.

Definition at line 423 of file plan_route_plugin.cpp.

◆ PlanRoute

void mapviz_plugins::PlanRoutePlugin::PlanRoute ( )
protectedslot

Definition at line 132 of file plan_route_plugin.cpp.

◆ PrintError()

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

Implements mapviz::MapvizPlugin.

Definition at line 181 of file plan_route_plugin.cpp.

◆ PrintInfo()

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

Implements mapviz::MapvizPlugin.

Definition at line 186 of file plan_route_plugin.cpp.

◆ PrintWarning()

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

Implements mapviz::MapvizPlugin.

Definition at line 191 of file plan_route_plugin.cpp.

◆ PublishRoute

void mapviz_plugins::PlanRoutePlugin::PublishRoute ( )
protectedslot

Definition at line 117 of file plan_route_plugin.cpp.

◆ Retry()

void mapviz_plugins::PlanRoutePlugin::Retry ( const ros::TimerEvent e)
private

Definition at line 170 of file plan_route_plugin.cpp.

◆ SaveConfig()

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

Implements mapviz::MapvizPlugin.

Definition at line 479 of file plan_route_plugin.cpp.

◆ Shutdown()

void mapviz_plugins::PlanRoutePlugin::Shutdown ( )
inlinevirtual

Implements mapviz::MapvizPlugin.

Definition at line 71 of file plan_route_plugin.h.

◆ SupportsPainting()

bool mapviz_plugins::PlanRoutePlugin::SupportsPainting ( )
inlinevirtual

Reimplemented from mapviz::MapvizPlugin.

Definition at line 85 of file plan_route_plugin.h.

◆ Transform()

void mapviz_plugins::PlanRoutePlugin::Transform ( )
inlinevirtual

Implements mapviz::MapvizPlugin.

Definition at line 78 of file plan_route_plugin.h.

◆ VisibilityChanged

void mapviz_plugins::PlanRoutePlugin::VisibilityChanged ( bool  visible)
protectedslot

Definition at line 105 of file plan_route_plugin.cpp.

Member Data Documentation

◆ config_widget_

QWidget* mapviz_plugins::PlanRoutePlugin::config_widget_
private

Definition at line 109 of file plan_route_plugin.h.

◆ failed_service_

bool mapviz_plugins::PlanRoutePlugin::failed_service_
private

Definition at line 117 of file plan_route_plugin.h.

◆ is_mouse_down_

bool mapviz_plugins::PlanRoutePlugin::is_mouse_down_
private

Definition at line 123 of file plan_route_plugin.h.

◆ map_canvas_

mapviz::MapCanvas* mapviz_plugins::PlanRoutePlugin::map_canvas_
private

Definition at line 110 of file plan_route_plugin.h.

◆ max_distance_

qreal mapviz_plugins::PlanRoutePlugin::max_distance_
private

Definition at line 128 of file plan_route_plugin.h.

◆ max_ms_

qint64 mapviz_plugins::PlanRoutePlugin::max_ms_
private

Definition at line 127 of file plan_route_plugin.h.

◆ mouse_down_pos_

QPointF mapviz_plugins::PlanRoutePlugin::mouse_down_pos_
private

Definition at line 124 of file plan_route_plugin.h.

◆ mouse_down_time_

qint64 mapviz_plugins::PlanRoutePlugin::mouse_down_time_
private

Definition at line 125 of file plan_route_plugin.h.

◆ retry_timer_

ros::Timer mapviz_plugins::PlanRoutePlugin::retry_timer_
private

Definition at line 115 of file plan_route_plugin.h.

◆ route_preview_

swri_route_util::RoutePtr mapviz_plugins::PlanRoutePlugin::route_preview_
private

Definition at line 118 of file plan_route_plugin.h.

◆ route_pub_

ros::Publisher mapviz_plugins::PlanRoutePlugin::route_pub_
private

Definition at line 114 of file plan_route_plugin.h.

◆ route_topic_

std::string mapviz_plugins::PlanRoutePlugin::route_topic_
private

Definition at line 112 of file plan_route_plugin.h.

◆ selected_point_

int mapviz_plugins::PlanRoutePlugin::selected_point_
private

Definition at line 122 of file plan_route_plugin.h.

◆ ui_

Ui::plan_route_config mapviz_plugins::PlanRoutePlugin::ui_
private

Definition at line 108 of file plan_route_plugin.h.

◆ waypoints_

std::vector<geometry_msgs::Pose> mapviz_plugins::PlanRoutePlugin::waypoints_
private

Definition at line 120 of file plan_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