Program Listing for File MapRegionVisualization.hpp
↰ Return to documentation for file (include/grid_map_visualization/visualizations/MapRegionVisualization.hpp
)
/*
* MapRegionVisualization.hpp
*
* Created on: Jun 18, 2014
* Author: Péter Fankhauser
* Institute: ETH Zurich, ANYbotics
*/
#ifndef GRID_MAP_VISUALIZATION__VISUALIZATIONS__MAPREGIONVISUALIZATION_HPP_
#define GRID_MAP_VISUALIZATION__VISUALIZATIONS__MAPREGIONVISUALIZATION_HPP_
#include <grid_map_core/GridMap.hpp>
// ROS
#include <rclcpp/rclcpp.hpp>
#include <std_msgs/msg/color_rgba.hpp>
#include <visualization_msgs/msg/marker.hpp>
#include <string>
#include "grid_map_visualization/visualizations/VisualizationBase.hpp"
namespace grid_map_visualization
{
class MapRegionVisualization : public VisualizationBase
{
public:
explicit MapRegionVisualization(const std::string & name, rclcpp::Node::SharedPtr nodePtr);
virtual ~MapRegionVisualization();
bool readParameters() override;
bool initialize() override;
bool visualize(const grid_map::GridMap & map) override;
private:
visualization_msgs::msg::Marker marker_;
const unsigned int nVertices_;
std_msgs::msg::ColorRGBA color_;
double lineWidth_;
rclcpp::Publisher<visualization_msgs::msg::Marker>::SharedPtr publisher_;
};
} // namespace grid_map_visualization
#endif // GRID_MAP_VISUALIZATION__VISUALIZATIONS__MAPREGIONVISUALIZATION_HPP_