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

#include <pose_publisher_plugin.h>

Inheritance diagram for mapviz_plugins::PosePublisherPlugin:
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)
 
 PosePublisherPlugin ()
 
void SaveConfig (YAML::Emitter &emitter, const std::string &path)
 
void Shutdown ()
 
void Transform ()
 
virtual ~PosePublisherPlugin ()
 
- 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 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 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_pushButtonPose_toggled (bool checked)
 
void topicChanged (const QString &topic)
 
void updateFrames ()
 

Private Attributes

float arrow_angle_
 
QPointF arrow_tail_position_
 
QWidget * config_widget_
 
QTimer frame_timer_
 
bool is_mouse_down_
 
mapviz::MapCanvasmap_canvas_
 
bool monitoring_action_state_
 
ros::NodeHandle nh_
 
ros::Publisher pose_pub_
 
ros::Timer timer_
 
Ui::pose_publisher_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 visible_
 

Detailed Description

Definition at line 58 of file pose_publisher_plugin.h.

Constructor & Destructor Documentation

◆ PosePublisherPlugin()

mapviz_plugins::PosePublisherPlugin::PosePublisherPlugin ( )

Definition at line 40 of file pose_publisher_plugin.cpp.

◆ ~PosePublisherPlugin()

mapviz_plugins::PosePublisherPlugin::~PosePublisherPlugin ( )
virtual

Definition at line 70 of file pose_publisher_plugin.cpp.

Member Function Documentation

◆ Draw()

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

Implements mapviz::MapvizPlugin.

Definition at line 238 of file pose_publisher_plugin.cpp.

◆ eventFilter()

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

Definition at line 109 of file pose_publisher_plugin.cpp.

◆ GetConfigWidget()

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

Reimplemented from mapviz::MapvizPlugin.

Definition at line 93 of file pose_publisher_plugin.cpp.

◆ handleMouseMove()

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

Definition at line 153 of file pose_publisher_plugin.cpp.

◆ handleMousePress()

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

Definition at line 130 of file pose_publisher_plugin.cpp.

◆ handleMouseRelease()

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

Definition at line 168 of file pose_publisher_plugin.cpp.

◆ Initialize()

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

Implements mapviz::MapvizPlugin.

Definition at line 99 of file pose_publisher_plugin.cpp.

◆ LoadConfig()

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

Implements mapviz::MapvizPlugin.

Definition at line 280 of file pose_publisher_plugin.cpp.

◆ on_pushButtonPose_toggled

void mapviz_plugins::PosePublisherPlugin::on_pushButtonPose_toggled ( bool  checked)
privateslot

Definition at line 304 of file pose_publisher_plugin.cpp.

◆ Paint()

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

Reimplemented from mapviz::MapvizPlugin.

Definition at line 72 of file pose_publisher_plugin.h.

◆ PrintError()

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

Implements mapviz::MapvizPlugin.

Definition at line 78 of file pose_publisher_plugin.cpp.

◆ PrintInfo()

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

Implements mapviz::MapvizPlugin.

Definition at line 83 of file pose_publisher_plugin.cpp.

◆ PrintWarning()

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

Implements mapviz::MapvizPlugin.

Definition at line 88 of file pose_publisher_plugin.cpp.

◆ SaveConfig()

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

Implements mapviz::MapvizPlugin.

Definition at line 298 of file pose_publisher_plugin.cpp.

◆ Shutdown()

void mapviz_plugins::PosePublisherPlugin::Shutdown ( )
inlinevirtual

Implements mapviz::MapvizPlugin.

Definition at line 68 of file pose_publisher_plugin.h.

◆ timerCallback()

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

Definition at line 124 of file pose_publisher_plugin.cpp.

◆ topicChanged

void mapviz_plugins::PosePublisherPlugin::topicChanged ( const QString &  topic)
privateslot

Definition at line 319 of file pose_publisher_plugin.cpp.

◆ Transform()

void mapviz_plugins::PosePublisherPlugin::Transform ( )
inlinevirtual

Implements mapviz::MapvizPlugin.

Definition at line 73 of file pose_publisher_plugin.h.

◆ updateFrames

void mapviz_plugins::PosePublisherPlugin::updateFrames ( )
privateslot

Definition at line 331 of file pose_publisher_plugin.cpp.

Member Data Documentation

◆ arrow_angle_

float mapviz_plugins::PosePublisherPlugin::arrow_angle_
private

Definition at line 107 of file pose_publisher_plugin.h.

◆ arrow_tail_position_

QPointF mapviz_plugins::PosePublisherPlugin::arrow_tail_position_
private

Definition at line 106 of file pose_publisher_plugin.h.

◆ config_widget_

QWidget* mapviz_plugins::PosePublisherPlugin::config_widget_
private

Definition at line 99 of file pose_publisher_plugin.h.

◆ frame_timer_

QTimer mapviz_plugins::PosePublisherPlugin::frame_timer_
private

Definition at line 110 of file pose_publisher_plugin.h.

◆ is_mouse_down_

bool mapviz_plugins::PosePublisherPlugin::is_mouse_down_
private

Definition at line 105 of file pose_publisher_plugin.h.

◆ map_canvas_

mapviz::MapCanvas* mapviz_plugins::PosePublisherPlugin::map_canvas_
private

Definition at line 100 of file pose_publisher_plugin.h.

◆ monitoring_action_state_

bool mapviz_plugins::PosePublisherPlugin::monitoring_action_state_
private

Definition at line 111 of file pose_publisher_plugin.h.

◆ nh_

ros::NodeHandle mapviz_plugins::PosePublisherPlugin::nh_
private

Definition at line 102 of file pose_publisher_plugin.h.

◆ pose_pub_

ros::Publisher mapviz_plugins::PosePublisherPlugin::pose_pub_
private

Definition at line 103 of file pose_publisher_plugin.h.

◆ timer_

ros::Timer mapviz_plugins::PosePublisherPlugin::timer_
private

Definition at line 109 of file pose_publisher_plugin.h.

◆ ui_

Ui::pose_publisher_config mapviz_plugins::PosePublisherPlugin::ui_
private

Definition at line 98 of file pose_publisher_plugin.h.


The documentation for this class was generated from the following files:


mapviz_plugins
Author(s): Marc Alban
autogenerated on Sun Sep 8 2024 02:27:15