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

#include <move_base_plugin.h>

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

Public Types

typedef actionlib::SimpleActionClient< move_base_msgs::MoveBaseAction > MoveBaseClient
 

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)
 
 MoveBasePlugin ()
 
void Paint (QPainter *painter, double x, double y, double scale)
 
void SaveConfig (YAML::Emitter &emitter, const std::string &path)
 
void Shutdown ()
 
void Transform ()
 
virtual ~MoveBasePlugin ()
 
- 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 Member Functions

virtual bool eventFilter (QObject *object, QEvent *event) override
 
bool handleMouseMove (QMouseEvent *)
 
bool handleMousePress (QMouseEvent *)
 
bool handleMouseRelease (QMouseEvent *)
 
virtual void PrintError (const std::string &message) override
 
virtual void PrintInfo (const std::string &message) override
 
virtual void PrintWarning (const std::string &message) override
 
void timerCallback (const ros::TimerEvent &ev=ros::TimerEvent())
 
- Protected Member Functions inherited from mapviz::MapvizPlugin
 MapvizPlugin ()
 

Private Slots

void on_pushButtonAbort_clicked ()
 
void on_pushButtonGoalPose_toggled (bool checked)
 
void on_pushButtonInitialPose_toggled (bool checked)
 

Private Attributes

float arrow_angle_
 
QPointF arrow_tail_position_
 
QWidget * config_widget_
 
ros::Publisher init_pose_pub_
 
bool is_mouse_down_
 
mapviz::MapCanvasmap_canvas_
 
bool monitoring_action_state_
 
MoveBaseClient move_base_client_
 
move_base_msgs::MoveBaseAction move_base_msg_
 
ros::NodeHandle nh_
 
ros::Timer timer_
 
Ui::move_base_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 59 of file move_base_plugin.h.

Member Typedef Documentation

◆ MoveBaseClient

Definition at line 64 of file move_base_plugin.h.

Constructor & Destructor Documentation

◆ MoveBasePlugin()

mapviz_plugins::MoveBasePlugin::MoveBasePlugin ( )

Definition at line 60 of file move_base_plugin.cpp.

◆ ~MoveBasePlugin()

mapviz_plugins::MoveBasePlugin::~MoveBasePlugin ( )
virtual

Definition at line 95 of file move_base_plugin.cpp.

Member Function Documentation

◆ Draw()

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

Implements mapviz::MapvizPlugin.

Definition at line 285 of file move_base_plugin.cpp.

◆ eventFilter()

bool mapviz_plugins::MoveBasePlugin::eventFilter ( QObject *  object,
QEvent *  event 
)
overrideprotectedvirtual

Definition at line 132 of file move_base_plugin.cpp.

◆ GetConfigWidget()

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

Reimplemented from mapviz::MapvizPlugin.

Definition at line 118 of file move_base_plugin.cpp.

◆ handleMouseMove()

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

Definition at line 218 of file move_base_plugin.cpp.

◆ handleMousePress()

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

Definition at line 195 of file move_base_plugin.cpp.

◆ handleMouseRelease()

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

Definition at line 233 of file move_base_plugin.cpp.

◆ Initialize()

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

Implements mapviz::MapvizPlugin.

Definition at line 124 of file move_base_plugin.cpp.

◆ LoadConfig()

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

Implements mapviz::MapvizPlugin.

Definition at line 327 of file move_base_plugin.cpp.

◆ on_pushButtonAbort_clicked

void mapviz_plugins::MoveBasePlugin::on_pushButtonAbort_clicked ( )
privateslot

Definition at line 375 of file move_base_plugin.cpp.

◆ on_pushButtonGoalPose_toggled

void mapviz_plugins::MoveBasePlugin::on_pushButtonGoalPose_toggled ( bool  checked)
privateslot

Definition at line 356 of file move_base_plugin.cpp.

◆ on_pushButtonInitialPose_toggled

void mapviz_plugins::MoveBasePlugin::on_pushButtonInitialPose_toggled ( bool  checked)
privateslot

Definition at line 337 of file move_base_plugin.cpp.

◆ Paint()

void mapviz_plugins::MoveBasePlugin::Paint ( QPainter *  painter,
double  x,
double  y,
double  scale 
)
inlinevirtual

Reimplemented from mapviz::MapvizPlugin.

Definition at line 74 of file move_base_plugin.h.

◆ PrintError()

void mapviz_plugins::MoveBasePlugin::PrintError ( const std::string &  message)
overrideprotectedvirtual

Implements mapviz::MapvizPlugin.

Definition at line 103 of file move_base_plugin.cpp.

◆ PrintInfo()

void mapviz_plugins::MoveBasePlugin::PrintInfo ( const std::string &  message)
overrideprotectedvirtual

Implements mapviz::MapvizPlugin.

Definition at line 108 of file move_base_plugin.cpp.

◆ PrintWarning()

void mapviz_plugins::MoveBasePlugin::PrintWarning ( const std::string &  message)
overrideprotectedvirtual

Implements mapviz::MapvizPlugin.

Definition at line 113 of file move_base_plugin.cpp.

◆ SaveConfig()

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

Implements mapviz::MapvizPlugin.

Definition at line 332 of file move_base_plugin.cpp.

◆ Shutdown()

void mapviz_plugins::MoveBasePlugin::Shutdown ( )
inlinevirtual

Implements mapviz::MapvizPlugin.

Definition at line 70 of file move_base_plugin.h.

◆ timerCallback()

void mapviz_plugins::MoveBasePlugin::timerCallback ( const ros::TimerEvent ev = ros::TimerEvent())
protected

Definition at line 147 of file move_base_plugin.cpp.

◆ Transform()

void mapviz_plugins::MoveBasePlugin::Transform ( )
inlinevirtual

Implements mapviz::MapvizPlugin.

Definition at line 75 of file move_base_plugin.h.

Member Data Documentation

◆ arrow_angle_

float mapviz_plugins::MoveBasePlugin::arrow_angle_
private

Definition at line 109 of file move_base_plugin.h.

◆ arrow_tail_position_

QPointF mapviz_plugins::MoveBasePlugin::arrow_tail_position_
private

Definition at line 108 of file move_base_plugin.h.

◆ config_widget_

QWidget* mapviz_plugins::MoveBasePlugin::config_widget_
private

Definition at line 101 of file move_base_plugin.h.

◆ init_pose_pub_

ros::Publisher mapviz_plugins::MoveBasePlugin::init_pose_pub_
private

Definition at line 105 of file move_base_plugin.h.

◆ is_mouse_down_

bool mapviz_plugins::MoveBasePlugin::is_mouse_down_
private

Definition at line 107 of file move_base_plugin.h.

◆ map_canvas_

mapviz::MapCanvas* mapviz_plugins::MoveBasePlugin::map_canvas_
private

Definition at line 102 of file move_base_plugin.h.

◆ monitoring_action_state_

bool mapviz_plugins::MoveBasePlugin::monitoring_action_state_
private

Definition at line 114 of file move_base_plugin.h.

◆ move_base_client_

MoveBaseClient mapviz_plugins::MoveBasePlugin::move_base_client_
private

Definition at line 111 of file move_base_plugin.h.

◆ move_base_msg_

move_base_msgs::MoveBaseAction mapviz_plugins::MoveBasePlugin::move_base_msg_
private

Definition at line 112 of file move_base_plugin.h.

◆ nh_

ros::NodeHandle mapviz_plugins::MoveBasePlugin::nh_
private

Definition at line 104 of file move_base_plugin.h.

◆ timer_

ros::Timer mapviz_plugins::MoveBasePlugin::timer_
private

Definition at line 113 of file move_base_plugin.h.

◆ ui_

Ui::move_base_config mapviz_plugins::MoveBasePlugin::ui_
private

Definition at line 100 of file move_base_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