#include <MapRegionVisualization.hpp>
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 () |
Private Attributes | |
std_msgs::ColorRGBA | color_ |
Color of the map region visualization. | |
double | lineWidth_ |
Line width of the map region marker [m]. | |
visualization_msgs::Marker | marker_ |
Marker to be published. | |
const unsigned int | nVertices_ |
Number of vertices of the map region visualization. |
Visualization of the region of the grid map as border line.
Definition at line 24 of file MapRegionVisualization.hpp.
grid_map_visualization::MapRegionVisualization::MapRegionVisualization | ( | ros::NodeHandle & | nodeHandle, |
const std::string & | name | ||
) |
Constructor.
nodeHandle | the ROS node handle. |
name | the name of the visualization. |
Definition at line 17 of file MapRegionVisualization.cpp.
Destructor.
Definition at line 24 of file MapRegionVisualization.cpp.
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.
config | the parameters as XML. |
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.
map | the grid map to visualize. |
Implements grid_map_visualization::VisualizationBase.
Definition at line 59 of file MapRegionVisualization.cpp.
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.