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

#include <occupancy_grid_plugin.h>

Inheritance diagram for mapviz_plugins::OccupancyGridPlugin:
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)
 
 OccupancyGridPlugin ()
 
void SaveConfig (YAML::Emitter &emitter, const std::string &path)
 
void Shutdown ()
 
void Transform ()
 
virtual ~OccupancyGridPlugin ()
 
- 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 colorSchemeUpdated (const QString &)
 
void DrawIcon ()
 
void FrameChanged (std::string)
 
void SelectTopicGrid ()
 
void TopicGridEdited ()
 
void upgradeCheckBoxToggled (bool)
 

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 Types

typedef std::array< uchar, 256 *4 > Palette
 

Private Member Functions

void Callback (const nav_msgs::OccupancyGridConstPtr &msg)
 
void CallbackUpdate (const map_msgs::OccupancyGridUpdateConstPtr &msg)
 
void updateTexture ()
 

Private Attributes

std::vector< uchar > color_buffer_
 
QWidget * config_widget_
 
Palette costmap_palette_
 
nav_msgs::OccupancyGridConstPtr grid_
 
ros::Subscriber grid_sub_
 
QPointF map_origin_
 
Palette map_palette_
 
std::vector< uchar > raw_buffer_
 
GLuint texture_id_
 
int32_t texture_size_
 
float texture_x_
 
float texture_y_
 
swri_transform_util::Transform transform_
 
bool transformed_
 
Ui::occupancy_grid_config ui_
 
ros::Subscriber update_sub_
 

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 use_latest_transforms_
 
bool visible_
 

Detailed Description

Definition at line 58 of file occupancy_grid_plugin.h.

Member Typedef Documentation

typedef std::array<uchar, 256*4> mapviz_plugins::OccupancyGridPlugin::Palette
private

Definition at line 62 of file occupancy_grid_plugin.h.

Constructor & Destructor Documentation

mapviz_plugins::OccupancyGridPlugin::OccupancyGridPlugin ( )

Definition at line 150 of file occupancy_grid_plugin.cpp.

mapviz_plugins::OccupancyGridPlugin::~OccupancyGridPlugin ( )
virtual

Definition at line 182 of file occupancy_grid_plugin.cpp.

Member Function Documentation

void mapviz_plugins::OccupancyGridPlugin::Callback ( const nav_msgs::OccupancyGridConstPtr &  msg)
private

Definition at line 358 of file occupancy_grid_plugin.cpp.

void mapviz_plugins::OccupancyGridPlugin::CallbackUpdate ( const map_msgs::OccupancyGridUpdateConstPtr &  msg)
private

Definition at line 402 of file occupancy_grid_plugin.cpp.

void mapviz_plugins::OccupancyGridPlugin::colorSchemeUpdated ( const QString &  )
protectedslot

Definition at line 268 of file occupancy_grid_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 425 of file occupancy_grid_plugin.cpp.

void mapviz_plugins::OccupancyGridPlugin::DrawIcon ( )
protectedslot

Definition at line 191 of file occupancy_grid_plugin.cpp.

void mapviz_plugins::OccupancyGridPlugin::FrameChanged ( std::string  )
protectedslot

Definition at line 218 of file occupancy_grid_plugin.cpp.

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

Reimplemented from mapviz::MapvizPlugin.

Definition at line 305 of file occupancy_grid_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 312 of file occupancy_grid_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 501 of file occupancy_grid_plugin.cpp.

void mapviz_plugins::OccupancyGridPlugin::PrintError ( const std::string &  message)
protectedvirtual

Implements mapviz::MapvizPlugin.

Definition at line 290 of file occupancy_grid_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 295 of file occupancy_grid_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 300 of file occupancy_grid_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 539 of file occupancy_grid_plugin.cpp.

void mapviz_plugins::OccupancyGridPlugin::SelectTopicGrid ( )
protectedslot

Definition at line 223 of file occupancy_grid_plugin.cpp.

void mapviz_plugins::OccupancyGridPlugin::Shutdown ( )
virtual

Implements mapviz::MapvizPlugin.

Definition at line 187 of file occupancy_grid_plugin.cpp.

void mapviz_plugins::OccupancyGridPlugin::TopicGridEdited ( )
protectedslot

Definition at line 235 of file occupancy_grid_plugin.cpp.

void mapviz_plugins::OccupancyGridPlugin::Transform ( )
virtual

Implements mapviz::MapvizPlugin.

Definition at line 483 of file occupancy_grid_plugin.cpp.

void mapviz_plugins::OccupancyGridPlugin::updateTexture ( )
private

Definition at line 319 of file occupancy_grid_plugin.cpp.

void mapviz_plugins::OccupancyGridPlugin::upgradeCheckBoxToggled ( bool  )
protectedslot

Definition at line 257 of file occupancy_grid_plugin.cpp.

Member Data Documentation

std::vector<uchar> mapviz_plugins::OccupancyGridPlugin::color_buffer_
private

Definition at line 113 of file occupancy_grid_plugin.h.

QWidget* mapviz_plugins::OccupancyGridPlugin::config_widget_
private

Definition at line 98 of file occupancy_grid_plugin.h.

Palette mapviz_plugins::OccupancyGridPlugin::costmap_palette_
private

Definition at line 117 of file occupancy_grid_plugin.h.

nav_msgs::OccupancyGridConstPtr mapviz_plugins::OccupancyGridPlugin::grid_
private

Definition at line 100 of file occupancy_grid_plugin.h.

ros::Subscriber mapviz_plugins::OccupancyGridPlugin::grid_sub_
private

Definition at line 102 of file occupancy_grid_plugin.h.

QPointF mapviz_plugins::OccupancyGridPlugin::map_origin_
private

Definition at line 110 of file occupancy_grid_plugin.h.

Palette mapviz_plugins::OccupancyGridPlugin::map_palette_
private

Definition at line 116 of file occupancy_grid_plugin.h.

std::vector<uchar> mapviz_plugins::OccupancyGridPlugin::raw_buffer_
private

Definition at line 112 of file occupancy_grid_plugin.h.

GLuint mapviz_plugins::OccupancyGridPlugin::texture_id_
private

Definition at line 108 of file occupancy_grid_plugin.h.

int32_t mapviz_plugins::OccupancyGridPlugin::texture_size_
private

Definition at line 114 of file occupancy_grid_plugin.h.

float mapviz_plugins::OccupancyGridPlugin::texture_x_
private

Definition at line 111 of file occupancy_grid_plugin.h.

float mapviz_plugins::OccupancyGridPlugin::texture_y_
private

Definition at line 111 of file occupancy_grid_plugin.h.

swri_transform_util::Transform mapviz_plugins::OccupancyGridPlugin::transform_
private

Definition at line 106 of file occupancy_grid_plugin.h.

bool mapviz_plugins::OccupancyGridPlugin::transformed_
private

Definition at line 105 of file occupancy_grid_plugin.h.

Ui::occupancy_grid_config mapviz_plugins::OccupancyGridPlugin::ui_
private

Definition at line 97 of file occupancy_grid_plugin.h.

ros::Subscriber mapviz_plugins::OccupancyGridPlugin::update_sub_
private

Definition at line 103 of file occupancy_grid_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