Public Member Functions | Private Attributes | List of all members
grid_map_visualization::MapRegionVisualization Class Reference

#include <MapRegionVisualization.hpp>

Inheritance diagram for grid_map_visualization::MapRegionVisualization:
Inheritance graph
[legend]

Public Member Functions

bool initialize ()
 
 MapRegionVisualization (ros::NodeHandle &nodeHandle, const std::string &name)
 
bool readParameters (XmlRpc::XmlRpcValue &config)
 
bool visualize (const grid_map::GridMap &map)
 
virtual ~MapRegionVisualization ()
 
- Public Member Functions inherited from grid_map_visualization::VisualizationBase
bool isActive () const
 
 VisualizationBase (ros::NodeHandle &nodeHandle, const std::string &name)
 
virtual ~VisualizationBase ()
 

Private Attributes

std_msgs::ColorRGBA color_
 Color of the map region visualization. More...
 
double lineWidth_
 Line width of the map region marker [m]. More...
 
visualization_msgs::Marker marker_
 Marker to be published. More...
 
const unsigned int nVertices_
 Number of vertices of the map region visualization. More...
 

Additional Inherited Members

- Protected Member Functions inherited from grid_map_visualization::VisualizationBase
bool getParam (const std::string &name, std::string &value)
 
bool getParam (const std::string &name, double &value)
 
bool getParam (const std::string &name, float &value)
 
bool getParam (const std::string &name, int &value)
 
bool getParam (const std::string &name, bool &value)
 
- Protected Attributes inherited from grid_map_visualization::VisualizationBase
std::string name_
 Name of the visualization. More...
 
ros::NodeHandlenodeHandle_
 ROS nodehandle. More...
 
StringMap parameters_
 Storage of the parsed XML parameters. More...
 
ros::Publisher publisher_
 ROS publisher of the occupancy grid. More...
 

Detailed Description

Visualization of the region of the grid map as border line.

Definition at line 24 of file MapRegionVisualization.hpp.

Constructor & Destructor Documentation

grid_map_visualization::MapRegionVisualization::MapRegionVisualization ( ros::NodeHandle nodeHandle,
const std::string &  name 
)

Constructor.

Parameters
nodeHandlethe ROS node handle.
namethe name of the visualization.

Definition at line 17 of file MapRegionVisualization.cpp.

grid_map_visualization::MapRegionVisualization::~MapRegionVisualization ( )
virtual

Destructor.

Definition at line 24 of file MapRegionVisualization.cpp.

Member Function Documentation

bool grid_map_visualization::MapRegionVisualization::initialize ( )
virtual

Initialization.

Implements grid_map_visualization::VisualizationBase.

Definition at line 46 of file MapRegionVisualization.cpp.

bool grid_map_visualization::MapRegionVisualization::readParameters ( XmlRpc::XmlRpcValue config)
virtual

Read parameters from ROS.

Parameters
configthe parameters as XML.
Returns
true if successful.

Reimplemented from grid_map_visualization::VisualizationBase.

Definition at line 28 of file MapRegionVisualization.cpp.

bool grid_map_visualization::MapRegionVisualization::visualize ( const grid_map::GridMap map)
virtual

Generates the visualization.

Parameters
mapthe grid map to visualize.
Returns
true if successful.

Implements grid_map_visualization::VisualizationBase.

Definition at line 59 of file MapRegionVisualization.cpp.

Member Data Documentation

std_msgs::ColorRGBA grid_map_visualization::MapRegionVisualization::color_
private

Color of the map region visualization.

Definition at line 68 of file MapRegionVisualization.hpp.

double grid_map_visualization::MapRegionVisualization::lineWidth_
private

Line width of the map region marker [m].

Definition at line 71 of file MapRegionVisualization.hpp.

visualization_msgs::Marker grid_map_visualization::MapRegionVisualization::marker_
private

Marker to be published.

Definition at line 62 of file MapRegionVisualization.hpp.

const unsigned int grid_map_visualization::MapRegionVisualization::nVertices_
private

Number of vertices of the map region visualization.

Definition at line 65 of file MapRegionVisualization.hpp.


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


grid_map_visualization
Author(s): P├ęter Fankhauser
autogenerated on Tue Jun 25 2019 20:02:32