Public Types | Public Member Functions | Protected Slots | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
mapviz_plugins::DisparityPlugin Class Reference

#include <disparity_plugin.h>

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

List of all members.

Public Types

enum  Anchor {
  TOP_LEFT, TOP_CENTER, TOP_RIGHT, CENTER_LEFT,
  CENTER, CENTER_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER,
  BOTTOM_RIGHT
}
enum  Units { PIXELS, PERCENT }

Public Member Functions

 DisparityPlugin ()
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 ()
void Transform ()
virtual ~DisparityPlugin ()

Protected Slots

void SelectTopic ()
void SetAnchor (QString anchor)
void SetHeight (int height)
void SetOffsetX (int offset)
void SetOffsetY (int offset)
void SetSubscription (bool visible)
void SetUnits (QString units)
void SetWidth (int width)
void TopicEdited ()

Protected Member Functions

void PrintError (const std::string &message)
void PrintInfo (const std::string &message)
void PrintWarning (const std::string &message)

Private Member Functions

std::string AnchorToString (Anchor anchor)
void disparityCallback (const stereo_msgs::DisparityImageConstPtr &image)
void DrawIplImage (cv::Mat *image)
void ScaleImage (double width, double height)
std::string UnitsToString (Units units)

Private Attributes

Anchor anchor_
QWidget * config_widget_
stereo_msgs::DisparityImage disparity_
cv::Mat_< cv::Vec3b > disparity_color_
ros::Subscriber disparity_sub_
bool has_image_
bool has_message_
double height_
double last_height_
double last_width_
double offset_x_
double offset_y_
cv::Mat scaled_image_
std::string topic_
Ui::disparity_config ui_
Units units_
double width_

Static Private Attributes

static const unsigned char COLOR_MAP []

Detailed Description

Definition at line 60 of file disparity_plugin.h.


Member Enumeration Documentation

Enumerator:
TOP_LEFT 
TOP_CENTER 
TOP_RIGHT 
CENTER_LEFT 
CENTER 
CENTER_RIGHT 
BOTTOM_LEFT 
BOTTOM_CENTER 
BOTTOM_RIGHT 

Definition at line 65 of file disparity_plugin.h.

Enumerator:
PIXELS 
PERCENT 

Definition at line 76 of file disparity_plugin.h.


Constructor & Destructor Documentation

Definition at line 56 of file disparity_plugin.cpp.

Definition at line 91 of file disparity_plugin.cpp.


Member Function Documentation

std::string mapviz_plugins::DisparityPlugin::AnchorToString ( Anchor  anchor) [private]

Definition at line 510 of file disparity_plugin.cpp.

void mapviz_plugins::DisparityPlugin::disparityCallback ( const stereo_msgs::DisparityImageConstPtr &  image) [private]

Definition at line 235 of file disparity_plugin.cpp.

void mapviz_plugins::DisparityPlugin::Draw ( double  x,
double  y,
double  scale 
) [virtual]

Implements mapviz::MapvizPlugin.

Definition at line 363 of file disparity_plugin.cpp.

void mapviz_plugins::DisparityPlugin::DrawIplImage ( cv::Mat *  image) [private]

Definition at line 328 of file disparity_plugin.cpp.

QWidget * mapviz_plugins::DisparityPlugin::GetConfigWidget ( QWidget *  parent) [virtual]

Reimplemented from mapviz::MapvizPlugin.

Definition at line 304 of file disparity_plugin.cpp.

bool mapviz_plugins::DisparityPlugin::Initialize ( QGLWidget *  canvas) [virtual]

Implements mapviz::MapvizPlugin.

Definition at line 311 of file disparity_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 448 of file disparity_plugin.cpp.

void mapviz_plugins::DisparityPlugin::PrintError ( const std::string &  message) [protected, virtual]

Implements mapviz::MapvizPlugin.

Definition at line 289 of file disparity_plugin.cpp.

void mapviz_plugins::DisparityPlugin::PrintInfo ( const std::string &  message) [protected, virtual]

Implements mapviz::MapvizPlugin.

Definition at line 294 of file disparity_plugin.cpp.

void mapviz_plugins::DisparityPlugin::PrintWarning ( const std::string &  message) [protected, virtual]

Implements mapviz::MapvizPlugin.

Definition at line 299 of file disparity_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 499 of file disparity_plugin.cpp.

void mapviz_plugins::DisparityPlugin::ScaleImage ( double  width,
double  height 
) [private]

Definition at line 318 of file disparity_plugin.cpp.

Definition at line 184 of file disparity_plugin.cpp.

void mapviz_plugins::DisparityPlugin::SetAnchor ( QString  anchor) [protected, slot]

Definition at line 115 of file disparity_plugin.cpp.

void mapviz_plugins::DisparityPlugin::SetHeight ( int  height) [protected, slot]

Definition at line 110 of file disparity_plugin.cpp.

void mapviz_plugins::DisparityPlugin::SetOffsetX ( int  offset) [protected, slot]

Definition at line 95 of file disparity_plugin.cpp.

void mapviz_plugins::DisparityPlugin::SetOffsetY ( int  offset) [protected, slot]

Definition at line 100 of file disparity_plugin.cpp.

void mapviz_plugins::DisparityPlugin::SetSubscription ( bool  visible) [protected, slot]

Definition at line 166 of file disparity_plugin.cpp.

void mapviz_plugins::DisparityPlugin::SetUnits ( QString  units) [protected, slot]

Definition at line 155 of file disparity_plugin.cpp.

void mapviz_plugins::DisparityPlugin::SetWidth ( int  width) [protected, slot]

Definition at line 105 of file disparity_plugin.cpp.

void mapviz_plugins::DisparityPlugin::Shutdown ( ) [inline, virtual]

Implements mapviz::MapvizPlugin.

Definition at line 82 of file disparity_plugin.h.

Definition at line 202 of file disparity_plugin.cpp.

void mapviz_plugins::DisparityPlugin::Transform ( ) [inline, virtual]

Implements mapviz::MapvizPlugin.

Definition at line 86 of file disparity_plugin.h.

std::string mapviz_plugins::DisparityPlugin::UnitsToString ( Units  units) [private]

Definition at line 554 of file disparity_plugin.cpp.


Member Data Documentation

Definition at line 114 of file disparity_plugin.h.

const unsigned char mapviz_plugins::DisparityPlugin::COLOR_MAP [static, private]

Definition at line 142 of file disparity_plugin.h.

Definition at line 111 of file disparity_plugin.h.

stereo_msgs::DisparityImage mapviz_plugins::DisparityPlugin::disparity_ [private]

Definition at line 129 of file disparity_plugin.h.

Definition at line 131 of file disparity_plugin.h.

Definition at line 126 of file disparity_plugin.h.

Definition at line 121 of file disparity_plugin.h.

Definition at line 127 of file disparity_plugin.h.

Definition at line 119 of file disparity_plugin.h.

Definition at line 124 of file disparity_plugin.h.

Definition at line 123 of file disparity_plugin.h.

Definition at line 116 of file disparity_plugin.h.

Definition at line 117 of file disparity_plugin.h.

Definition at line 132 of file disparity_plugin.h.

Definition at line 113 of file disparity_plugin.h.

Ui::disparity_config mapviz_plugins::DisparityPlugin::ui_ [private]

Definition at line 110 of file disparity_plugin.h.

Definition at line 115 of file disparity_plugin.h.

Definition at line 118 of file disparity_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 18:51:07