Program Listing for File GridCellsVisualization.hpp
↰ Return to documentation for file (include/grid_map_visualization/visualizations/GridCellsVisualization.hpp
)
/*
* GridCellsVisualization.hpp
*
* Created on: Mar 28, 2015
* Author: Péter Fankhauser
* Institute: ETH Zurich, ANYbotics
*/
#ifndef GRID_MAP_VISUALIZATION__VISUALIZATIONS__GRIDCELLSVISUALIZATION_HPP_
#define GRID_MAP_VISUALIZATION__VISUALIZATIONS__GRIDCELLSVISUALIZATION_HPP_
#include <grid_map_core/GridMap.hpp>
#include <nav_msgs/msg/grid_cells.hpp>
// ROS
#include <rclcpp/rclcpp.hpp>
#include <string>
#include "grid_map_visualization/visualizations/VisualizationBase.hpp"
namespace grid_map_visualization
{
class GridCellsVisualization : public VisualizationBase
{
public:
explicit GridCellsVisualization(const std::string & name, rclcpp::Node::SharedPtr nodePtr);
virtual ~GridCellsVisualization();
bool readParameters() override;
bool initialize() override;
bool visualize(const grid_map::GridMap & map) override;
private:
std::string layer_;
float lowerThreshold_, upperThreshold_;
rclcpp::Publisher<nav_msgs::msg::GridCells>::SharedPtr publisher_;
};
} // namespace grid_map_visualization
#endif // GRID_MAP_VISUALIZATION__VISUALIZATIONS__GRIDCELLSVISUALIZATION_HPP_