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

#include <textured_marker_plugin.h>

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

Classes

struct  MarkerData
 

Signals

void MarkerReceived (const marti_visualization_msgs::TexturedMarkerConstPtr marker)
 
void MarkersReceived (const marti_visualization_msgs::TexturedMarkerArrayConstPtr markers)
 
- 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)
 

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 SaveConfig (YAML::Emitter &emitter, const std::string &path)
 
void Shutdown ()
 
 TexturedMarkerPlugin ()
 
void Transform ()
 
virtual ~TexturedMarkerPlugin ()
 
- 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 ClearHistory ()
 
void ProcessMarker (const marti_visualization_msgs::TexturedMarkerConstPtr marker)
 
void ProcessMarkers (const marti_visualization_msgs::TexturedMarkerArrayConstPtr markers)
 
void SelectTopic ()
 
void SetAlphaLevel (int alpha)
 
void TopicEdited ()
 

Protected Member Functions

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 MarkerArrayCallback (const marti_visualization_msgs::TexturedMarkerArrayConstPtr markers)
 
void MarkerCallback (const marti_visualization_msgs::TexturedMarkerConstPtr marker)
 
void ProcessMarker (const marti_visualization_msgs::TexturedMarker &marker)
 

Private Attributes

float alphaVal_
 
QWidget * config_widget_
 
bool has_message_
 
bool is_marker_array_
 
ros::Subscriber marker_sub_
 
std::map< std::string, std::map< int, MarkerData > > markers_
 
std::string topic_
 
Ui::textured_marker_config ui_
 

Additional Inherited Members

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

Constructor & Destructor Documentation

mapviz_plugins::TexturedMarkerPlugin::TexturedMarkerPlugin ( )

Definition at line 58 of file textured_marker_plugin.cpp.

mapviz_plugins::TexturedMarkerPlugin::~TexturedMarkerPlugin ( )
virtual

Definition at line 95 of file textured_marker_plugin.cpp.

Member Function Documentation

void mapviz_plugins::TexturedMarkerPlugin::ClearHistory ( )
protectedslot

Definition at line 99 of file textured_marker_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 471 of file textured_marker_plugin.cpp.

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

Reimplemented from mapviz::MapvizPlugin.

Definition at line 457 of file textured_marker_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 464 of file textured_marker_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 543 of file textured_marker_plugin.cpp.

void mapviz_plugins::TexturedMarkerPlugin::MarkerArrayCallback ( const marti_visualization_msgs::TexturedMarkerArrayConstPtr  markers)
private

Definition at line 437 of file textured_marker_plugin.cpp.

void mapviz_plugins::TexturedMarkerPlugin::MarkerCallback ( const marti_visualization_msgs::TexturedMarkerConstPtr  marker)
private

Definition at line 432 of file textured_marker_plugin.cpp.

void mapviz_plugins::TexturedMarkerPlugin::MarkerReceived ( const marti_visualization_msgs::TexturedMarkerConstPtr  marker)
signal
void mapviz_plugins::TexturedMarkerPlugin::MarkersReceived ( const marti_visualization_msgs::TexturedMarkerArrayConstPtr  markers)
signal
void mapviz_plugins::TexturedMarkerPlugin::PrintError ( const std::string &  message)
protectedvirtual

Implements mapviz::MapvizPlugin.

Definition at line 442 of file textured_marker_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 447 of file textured_marker_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 452 of file textured_marker_plugin.cpp.

void mapviz_plugins::TexturedMarkerPlugin::ProcessMarker ( const marti_visualization_msgs::TexturedMarkerConstPtr  marker)
protectedslot

Definition at line 175 of file textured_marker_plugin.cpp.

void mapviz_plugins::TexturedMarkerPlugin::ProcessMarker ( const marti_visualization_msgs::TexturedMarker &  marker)
private

Definition at line 180 of file textured_marker_plugin.cpp.

void mapviz_plugins::TexturedMarkerPlugin::ProcessMarkers ( const marti_visualization_msgs::TexturedMarkerArrayConstPtr  markers)
protectedslot

Definition at line 423 of file textured_marker_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 560 of file textured_marker_plugin.cpp.

void mapviz_plugins::TexturedMarkerPlugin::SelectTopic ( )
protectedslot

Definition at line 127 of file textured_marker_plugin.cpp.

void mapviz_plugins::TexturedMarkerPlugin::SetAlphaLevel ( int  alpha)
protectedslot

Definition at line 107 of file textured_marker_plugin.cpp.

void mapviz_plugins::TexturedMarkerPlugin::Shutdown ( )
inlinevirtual

Implements mapviz::MapvizPlugin.

Definition at line 74 of file textured_marker_plugin.h.

void mapviz_plugins::TexturedMarkerPlugin::TopicEdited ( )
protectedslot

Definition at line 146 of file textured_marker_plugin.cpp.

void mapviz_plugins::TexturedMarkerPlugin::Transform ( )
virtual

Implements mapviz::MapvizPlugin.

Definition at line 522 of file textured_marker_plugin.cpp.

Member Data Documentation

float mapviz_plugins::TexturedMarkerPlugin::alphaVal_
private

Definition at line 103 of file textured_marker_plugin.h.

QWidget* mapviz_plugins::TexturedMarkerPlugin::config_widget_
private

Definition at line 129 of file textured_marker_plugin.h.

bool mapviz_plugins::TexturedMarkerPlugin::has_message_
private

Definition at line 134 of file textured_marker_plugin.h.

bool mapviz_plugins::TexturedMarkerPlugin::is_marker_array_
private

Definition at line 138 of file textured_marker_plugin.h.

ros::Subscriber mapviz_plugins::TexturedMarkerPlugin::marker_sub_
private

Definition at line 133 of file textured_marker_plugin.h.

std::map<std::string, std::map<int, MarkerData> > mapviz_plugins::TexturedMarkerPlugin::markers_
private

Definition at line 136 of file textured_marker_plugin.h.

std::string mapviz_plugins::TexturedMarkerPlugin::topic_
private

Definition at line 131 of file textured_marker_plugin.h.

Ui::textured_marker_config mapviz_plugins::TexturedMarkerPlugin::ui_
private

Definition at line 128 of file textured_marker_plugin.h.


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


mapviz_plugins
Author(s): Marc Alban
autogenerated on Fri Mar 19 2021 02:44:32