#include <disparity_plugin.h>
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 | 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 [] |
Definition at line 60 of file disparity_plugin.h.
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.
Definition at line 76 of file disparity_plugin.h.
virtual mapviz_plugins::DisparityPlugin::~DisparityPlugin | ( | ) | [virtual] |
std::string mapviz_plugins::DisparityPlugin::AnchorToString | ( | Anchor | anchor | ) | [private] |
void mapviz_plugins::DisparityPlugin::disparityCallback | ( | const stereo_msgs::DisparityImageConstPtr & | image | ) | [private] |
void mapviz_plugins::DisparityPlugin::Draw | ( | double | x, |
double | y, | ||
double | scale | ||
) | [virtual] |
Implements mapviz::MapvizPlugin.
void mapviz_plugins::DisparityPlugin::DrawIplImage | ( | cv::Mat * | image | ) | [private] |
QWidget* mapviz_plugins::DisparityPlugin::GetConfigWidget | ( | QWidget * | parent | ) | [virtual] |
Reimplemented from mapviz::MapvizPlugin.
bool mapviz_plugins::DisparityPlugin::Initialize | ( | QGLWidget * | canvas | ) | [virtual] |
Implements mapviz::MapvizPlugin.
void mapviz_plugins::DisparityPlugin::LoadConfig | ( | const YAML::Node & | node, |
const std::string & | path | ||
) | [virtual] |
Implements mapviz::MapvizPlugin.
void mapviz_plugins::DisparityPlugin::PrintError | ( | const std::string & | message | ) | [protected, virtual] |
Implements mapviz::MapvizPlugin.
void mapviz_plugins::DisparityPlugin::PrintInfo | ( | const std::string & | message | ) | [protected, virtual] |
Implements mapviz::MapvizPlugin.
void mapviz_plugins::DisparityPlugin::PrintWarning | ( | const std::string & | message | ) | [protected, virtual] |
Implements mapviz::MapvizPlugin.
void mapviz_plugins::DisparityPlugin::SaveConfig | ( | YAML::Emitter & | emitter, |
const std::string & | path | ||
) | [virtual] |
Implements mapviz::MapvizPlugin.
void mapviz_plugins::DisparityPlugin::ScaleImage | ( | double | width, |
double | height | ||
) | [private] |
void mapviz_plugins::DisparityPlugin::SelectTopic | ( | ) | [protected, slot] |
void mapviz_plugins::DisparityPlugin::SetAnchor | ( | QString | anchor | ) | [protected, slot] |
void mapviz_plugins::DisparityPlugin::SetHeight | ( | int | height | ) | [protected, slot] |
void mapviz_plugins::DisparityPlugin::SetOffsetX | ( | int | offset | ) | [protected, slot] |
void mapviz_plugins::DisparityPlugin::SetOffsetY | ( | int | offset | ) | [protected, slot] |
void mapviz_plugins::DisparityPlugin::SetUnits | ( | QString | units | ) | [protected, slot] |
void mapviz_plugins::DisparityPlugin::SetWidth | ( | int | width | ) | [protected, slot] |
void mapviz_plugins::DisparityPlugin::Shutdown | ( | ) | [inline, virtual] |
Implements mapviz::MapvizPlugin.
Definition at line 82 of file disparity_plugin.h.
void mapviz_plugins::DisparityPlugin::TopicEdited | ( | ) | [protected, slot] |
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 113 of file disparity_plugin.h.
const unsigned char mapviz_plugins::DisparityPlugin::COLOR_MAP[] [static, private] |
Definition at line 141 of file disparity_plugin.h.
QWidget* mapviz_plugins::DisparityPlugin::config_widget_ [private] |
Definition at line 110 of file disparity_plugin.h.
stereo_msgs::DisparityImage mapviz_plugins::DisparityPlugin::disparity_ [private] |
Definition at line 128 of file disparity_plugin.h.
cv::Mat_<cv::Vec3b> mapviz_plugins::DisparityPlugin::disparity_color_ [private] |
Definition at line 130 of file disparity_plugin.h.
Definition at line 125 of file disparity_plugin.h.
bool mapviz_plugins::DisparityPlugin::has_image_ [private] |
Definition at line 120 of file disparity_plugin.h.
bool mapviz_plugins::DisparityPlugin::has_message_ [private] |
Definition at line 126 of file disparity_plugin.h.
double mapviz_plugins::DisparityPlugin::height_ [private] |
Definition at line 118 of file disparity_plugin.h.
double mapviz_plugins::DisparityPlugin::last_height_ [private] |
Definition at line 123 of file disparity_plugin.h.
double mapviz_plugins::DisparityPlugin::last_width_ [private] |
Definition at line 122 of file disparity_plugin.h.
double mapviz_plugins::DisparityPlugin::offset_x_ [private] |
Definition at line 115 of file disparity_plugin.h.
double mapviz_plugins::DisparityPlugin::offset_y_ [private] |
Definition at line 116 of file disparity_plugin.h.
cv::Mat mapviz_plugins::DisparityPlugin::scaled_image_ [private] |
Definition at line 131 of file disparity_plugin.h.
std::string mapviz_plugins::DisparityPlugin::topic_ [private] |
Definition at line 112 of file disparity_plugin.h.
Ui::disparity_config mapviz_plugins::DisparityPlugin::ui_ [private] |
Definition at line 109 of file disparity_plugin.h.
Units mapviz_plugins::DisparityPlugin::units_ [private] |
Definition at line 114 of file disparity_plugin.h.
double mapviz_plugins::DisparityPlugin::width_ [private] |
Definition at line 117 of file disparity_plugin.h.