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, 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::TransformManager 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

Definition at line 64 of file move_base_plugin.h.

Constructor & Destructor Documentation

mapviz_plugins::MoveBasePlugin::MoveBasePlugin ( )

Definition at line 60 of file move_base_plugin.cpp.

mapviz_plugins::MoveBasePlugin::~MoveBasePlugin ( )
virtual

Definition at line 95 of file move_base_plugin.cpp.

Member Function Documentation

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

Implements mapviz::MapvizPlugin.

Definition at line 276 of file move_base_plugin.cpp.

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

Definition at line 132 of file move_base_plugin.cpp.

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

Reimplemented from mapviz::MapvizPlugin.

Definition at line 118 of file move_base_plugin.cpp.

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

Definition at line 213 of file move_base_plugin.cpp.

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

Definition at line 194 of file move_base_plugin.cpp.

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

Definition at line 224 of file move_base_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 124 of file move_base_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 313 of file move_base_plugin.cpp.

void mapviz_plugins::MoveBasePlugin::on_pushButtonAbort_clicked ( )
privateslot

Definition at line 361 of file move_base_plugin.cpp.

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

Definition at line 342 of file move_base_plugin.cpp.

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

Definition at line 323 of file move_base_plugin.cpp.

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.

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

Implements mapviz::MapvizPlugin.

Definition at line 103 of file move_base_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 108 of file move_base_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 113 of file move_base_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 318 of file move_base_plugin.cpp.

void mapviz_plugins::MoveBasePlugin::Shutdown ( )
inlinevirtual

Implements mapviz::MapvizPlugin.

Definition at line 70 of file move_base_plugin.h.

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

Definition at line 147 of file move_base_plugin.cpp.

void mapviz_plugins::MoveBasePlugin::Transform ( )
inlinevirtual

Implements mapviz::MapvizPlugin.

Definition at line 75 of file move_base_plugin.h.

Member Data Documentation

float mapviz_plugins::MoveBasePlugin::arrow_angle_
private

Definition at line 109 of file move_base_plugin.h.

QPointF mapviz_plugins::MoveBasePlugin::arrow_tail_position_
private

Definition at line 108 of file move_base_plugin.h.

QWidget* mapviz_plugins::MoveBasePlugin::config_widget_
private

Definition at line 101 of file move_base_plugin.h.

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

Definition at line 105 of file move_base_plugin.h.

bool mapviz_plugins::MoveBasePlugin::is_mouse_down_
private

Definition at line 107 of file move_base_plugin.h.

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

Definition at line 102 of file move_base_plugin.h.

bool mapviz_plugins::MoveBasePlugin::monitoring_action_state_
private

Definition at line 114 of file move_base_plugin.h.

MoveBaseClient mapviz_plugins::MoveBasePlugin::move_base_client_
private

Definition at line 111 of file move_base_plugin.h.

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

Definition at line 112 of file move_base_plugin.h.

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

Definition at line 104 of file move_base_plugin.h.

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

Definition at line 113 of file move_base_plugin.h.

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 Thu Jun 6 2019 19:25:16