#include <VectorVisualization.hpp>
Public Member Functions | |
bool | initialize () |
bool | readParameters (XmlRpc::XmlRpcValue &config) |
VectorVisualization (ros::NodeHandle &nodeHandle, const std::string &name) | |
bool | visualize (const grid_map::GridMap &map) |
virtual | ~VectorVisualization () |
Private Attributes | |
std_msgs::ColorRGBA | color_ |
Color of the vectors. | |
double | lineWidth_ |
Width of the line markers [m]. | |
visualization_msgs::Marker | marker_ |
Marker to be published. | |
std::string | positionLayer_ |
Type that is the position of the vectors. | |
double | scale_ |
Scaling of the vectors. | |
std::vector< std::string > | types_ |
Types that are transformed to vectors. |
Visualization a combination of three layers of the grid map as a vector field.
Definition at line 27 of file VectorVisualization.hpp.
grid_map_visualization::VectorVisualization::VectorVisualization | ( | ros::NodeHandle & | nodeHandle, |
const std::string & | name | ||
) |
Constructor.
nodeHandle | the ROS node handle. |
name | the name of the visualization. |
Definition at line 23 of file VectorVisualization.cpp.
Destructor.
Definition at line 28 of file VectorVisualization.cpp.
bool grid_map_visualization::VectorVisualization::initialize | ( | ) | [virtual] |
Initialization.
Implements grid_map_visualization::VisualizationBase.
Definition at line 69 of file VectorVisualization.cpp.
bool grid_map_visualization::VectorVisualization::readParameters | ( | XmlRpc::XmlRpcValue & | config | ) | [virtual] |
Read parameters from ROS.
config | the parameters as XML. |
Reimplemented from grid_map_visualization::VisualizationBase.
Definition at line 32 of file VectorVisualization.cpp.
bool grid_map_visualization::VectorVisualization::visualize | ( | const grid_map::GridMap & | map | ) | [virtual] |
Generates the visualization.
map | the grid map to visualize. |
Implements grid_map_visualization::VisualizationBase.
Definition at line 80 of file VectorVisualization.cpp.
std_msgs::ColorRGBA grid_map_visualization::VectorVisualization::color_ [private] |
Color of the vectors.
Definition at line 80 of file VectorVisualization.hpp.
double grid_map_visualization::VectorVisualization::lineWidth_ [private] |
Width of the line markers [m].
Definition at line 77 of file VectorVisualization.hpp.
visualization_msgs::Marker grid_map_visualization::VectorVisualization::marker_ [private] |
Marker to be published.
Definition at line 65 of file VectorVisualization.hpp.
std::string grid_map_visualization::VectorVisualization::positionLayer_ [private] |
Type that is the position of the vectors.
Definition at line 71 of file VectorVisualization.hpp.
double grid_map_visualization::VectorVisualization::scale_ [private] |
Scaling of the vectors.
Definition at line 74 of file VectorVisualization.hpp.
std::vector<std::string> grid_map_visualization::VectorVisualization::types_ [private] |
Types that are transformed to vectors.
Definition at line 68 of file VectorVisualization.hpp.