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