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

#include <OccupancyGridVisualization.hpp>

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

Public Member Functions

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

Private Attributes

float dataMax_
 
float dataMin_
 Minimum and maximum value of the grid map data (used to normalize the cell data in [min, max]). More...
 
std::string layer_
 Type that is transformed to the occupancy grid. 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

Definition at line 19 of file OccupancyGridVisualization.hpp.

Constructor & Destructor Documentation

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

Constructor.

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

Definition at line 15 of file OccupancyGridVisualization.cpp.

grid_map_visualization::OccupancyGridVisualization::~OccupancyGridVisualization ( )
virtual

Destructor.

Definition at line 22 of file OccupancyGridVisualization.cpp.

Member Function Documentation

bool grid_map_visualization::OccupancyGridVisualization::initialize ( )
virtual

Initialization.

Implements grid_map_visualization::VisualizationBase.

Definition at line 48 of file OccupancyGridVisualization.cpp.

bool grid_map_visualization::OccupancyGridVisualization::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 26 of file OccupancyGridVisualization.cpp.

bool grid_map_visualization::OccupancyGridVisualization::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 54 of file OccupancyGridVisualization.cpp.

Member Data Documentation

float grid_map_visualization::OccupancyGridVisualization::dataMax_
private

Definition at line 60 of file OccupancyGridVisualization.hpp.

float grid_map_visualization::OccupancyGridVisualization::dataMin_
private

Minimum and maximum value of the grid map data (used to normalize the cell data in [min, max]).

Definition at line 60 of file OccupancyGridVisualization.hpp.

std::string grid_map_visualization::OccupancyGridVisualization::layer_
private

Type that is transformed to the occupancy grid.

Definition at line 57 of file OccupancyGridVisualization.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